Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split_map split not working as intended #1483

Closed
SpencerMartel opened this issue Apr 2, 2023 · 4 comments
Closed

split_map split not working as intended #1483

SpencerMartel opened this issue Apr 2, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@SpencerMartel
Copy link

Environment Information

image

Description

While trying to use the Map.split_map() function the center divider was not working as intended. I have used it in the past and it has behaved as expected though now it no longer moves more than a few pixels left or right and moves the maps as well. I added a video for claritry

What I Did

left_layer = geemap.ee_tile_layer(dataset, vis_natural, 'Landsat9 Natural (432)')
right_layer = geemap.ee_tile_layer(dataset, vis_nir, 'Landsat9 NIR (543)')

Map.split_map(left_layer = left_layer,
              right_layer = right_layer,
              left_label = 'Landsat 9 Natural Color (432)',
              right_label = 'Landsat 9 Infrared Color (543)',
            )
Map

Output

2023-04-02.17-17-43.mp4
@SpencerMartel SpencerMartel added the bug Something isn't working label Apr 2, 2023
@giswqs
Copy link
Member

giswqs commented Apr 2, 2023

This is an ipyleaflet issue. See jupyter-widgets/ipyleaflet#1066. Try downgrading ipyleaflet to v0.16.0.

@giswqs
Copy link
Member

giswqs commented Apr 2, 2023

Also see python-visualization/folium#1730

@giswqs
Copy link
Member

giswqs commented Apr 2, 2023

The root cause is the leaflet-side-by-side plugin. See digidem/leaflet-side-by-side#47. It needs to be fixed by the upstream. There is not much geemap can do here. I suggest downgrading ipyleaflet to an older version.

@giswqs giswqs closed this as completed Apr 2, 2023
@SpencerMartel
Copy link
Author

Thanks for pointing me in the right direction, I appreciate all you do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants