geojupyter / jupytergis

JupyterGIS
https://geojupyter.github.io/jupytergis/lab/index.html
BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

Integration with ipyleaflet/folium/ipyopenlayers #3

Open martinRenou opened 3 months ago

martinRenou commented 3 months ago

It would be great if there was some seamless integration between ipyleaflet/folium/ipyopenlayers/leafmap and jupytergis in the Notebook API:

from jupytergis_lab import GISDocument

doc = GISDocument()

from ipyleaflet import Map
m = Map()
# [...]
# User code user ipyleaflet
# [...]

doc.append_layers(m.layers)

It should fairly be easy to implement (maybe repetitive).

This would allow existing user code to already integrate with jupytergis.

martinRenou commented 3 months ago

We could even have ipyleaflet and ipyopenlayers provide the APIs to export to .jgis:

from ipyleaflet import Map
m = Map()
m.to_jgis()  # => returns the JSON object
kylebarron commented 2 months ago

I'd be happy to implement/help with integration with Lonboard, which is much more scalable than ipyleaflet. I can't find anything about ipyopenlayers?

martinRenou commented 2 months ago

That's great to hear! We're still in early stage for jupytergis, but in due time we'd be happy to collaborate :)

I can't find anything about ipyopenlayers

It is still very much in progress and we've not advertised it yet: https://github.com/QuantStack/ipyopenlayers