Getting startedΒΆ

In order to show a DataArray (say, da) on a Leaflet map, all you need to do is create a map:

import xarray_leaflet
from ipyleaflet import Map

m = Map()
m

And pass it to the plotting function, which returns a layer:

l = da.leaflet.plot(m)

You can then interact with the layer and e.g. control its opacity:

l.interact(opacity=(0., 1.)

For more advanced examples, please have a look at the Notebooks.