GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
442 stars 128 forks source link

Helper functions and examples for the SplitMap control in pyleaflet #1139

Closed uchchwhash closed 11 months ago

uchchwhash commented 12 months ago

Not sure if this is already implemented and I am just not aware of it.

I am always envious of our ENVI (haha) users who have the ability to lock multiple views/layers together to follow the cursor around. The closest thing that I can think of in the Python world is the SplitMap control that lets you compare two different layers side-by-side.

See https://ipyleaflet.readthedocs.io/en/latest/controls/split_map_control.html

robbibt commented 12 months ago

Definitely not implemented by us yet; the leafmap package does have an implementation: https://leafmap.org/notebooks/49_split_control/

(It's a pretty cool package actually, would be great to integrate it a bit more in our repo!)

uchchwhash commented 11 months ago

The leafmap package is not currently available in the sandbox, is it? Looks cool though.

robbibt commented 11 months ago

No, it's not - I've only read about it, not used it yet.

uchchwhash commented 11 months ago

Just my luck, I may have hit a bug https://github.com/jupyter-widgets/ipyleaflet/issues/453