Skip to content

SideBySideLayers plugin not working #1730

Closed
@giswqs

Description

@giswqs

Describe the bug
The SideBySideLayers plugin for folium v0.14.0 is not working properly. The slider can't be moved.

@Conengmo @fralc

To Reproduce

https://colab.research.google.com/github/python-visualization/folium/blob/main/examples/Plugins.ipynb

```bash
!pip install -U folium
import folium
from folium import plugins

m = folium.Map(location=(30, 20), zoom_start=4)

layer_right = folium.TileLayer('openstreetmap')
layer_left = folium.TileLayer('cartodbpositron')

sbs = plugins.SideBySideLayers(layer_left=layer_left, layer_right=layer_right)

layer_left.add_to(m)
layer_right.add_to(m)
sbs.add_to(m)

m

Peek 2023-02-18 14-43

It should work like this:

https://ipyleaflet.readthedocs.io/en/latest/controls/split_map_control.html
Peek 2023-02-18 14-45

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions