Skip to content

Commit

Permalink
Fix split-map bug (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Apr 14, 2024
1 parent 01d3fff commit 31b067e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leafmap/foliumap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2723,7 +2723,9 @@ def split_map(
f"right_layer must be one of the following: {', '.join(basemaps.keys())} or a string url to a tif file."
)

control = SideBySideLayers(layer_left=left_layer, layer_right=right_layer)
control = folium.plugins.SideBySideLayers(
layer_left=left_layer, layer_right=right_layer
)
left_layer.add_to(self)
right_layer.add_to(self)
control.add_to(self)
Expand Down

0 comments on commit 31b067e

Please sign in to comment.