Add support for as_leaflet_layer in Map.add#1033
Add support for as_leaflet_layer in Map.add#1033davidbrochart merged 8 commits intojupyter-widgets:masterfrom
as_leaflet_layer in Map.add#1033Conversation
davidbrochart
left a comment
There was a problem hiding this comment.
Thanks for the suggestion @banesullivan, I think it would make sense, including for xarray-leaflet.
|
@banesullivan I think we should document this interface. |
Agreed. If you all are happy with |
| @@ -0,0 +1,68 @@ | |||
| Layer-Like Objects | |||
There was a problem hiding this comment.
@davidbrochart and @martinRenou, please review this explanation and feel free to modify. This is what I came up with on a whim to document the interface.
Co-authored-by: David Brochart <david.brochart@gmail.com>
Co-authored-by: David Brochart <david.brochart@gmail.com>
Co-authored-by: David Brochart <david.brochart@gmail.com>
|
@banesullivan I just made a small change to the docs, otherwise it looks good to me. |
|
Thank you for the second set of eyes and improvements! |
|
Hm. I just checked the docs built from and it looks like the data are not embedded in the jupyter output |
|
I opened #1037, the code was in |

I use
ipyleafleta ton with localtileserver and I was thinking it'd be convenient ifipyleaflet.Map'sadd()method supported passing objects with anas_leaflet_layer()interface.There may be better/cleaner ways to do this, so suggestions are welcome! But, my end goal is to make it easier to go from raster file path to
ipyleaflet.Mapshowing tiles like: