split_map split not working as intended
SpencerMartel opened this issue · 4 comments
Environment Information
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
This is an ipyleaflet issue. See jupyter-widgets/ipyleaflet#1066. Try downgrading ipyleaflet to v0.16.0.
Also see python-visualization/folium#1730
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.
Thanks for pointing me in the right direction, I appreciate all you do!