add side by side control support to dash leaflet#261
add side by side control support to dash leaflet#261hamidreza-pyn wants to merge 1 commit intoemilhe:masterfrom
Conversation
|
This is awesome, attempted setting this up prior to checking the pull requests. Will pull this and check it out. Awesome contribution! |
|
Worked like a charm!: added a side_by_side_control.py test in |
|
I like the concept of this PR, but I am but worried that the scope may be too limited (two tile layers). What if we want to compare two GeoJSON layers? Or a tile layer and a WSM layer? Or add multiple tile layers on one side... I am wondering if we could come up with a (more generic) solution that would enable these use cases also. EDIT: Maybe something like assigning an ID to the layer(s), and then passing a list of IDs to the left/right controls? An altertertive approach would be to add some kind of wrapping logic similar to the LayersControl |
|
Basically, a flash light button, when clicked, allows your mouse to be a flash light to show the second layer. When I was working on this, it was limited to a wrapper control type of solution and didn't effect the other elements on the map was solely focused on the tile layer. |
|
Hi, Thank you for this PR and for reviewing it ! I’m very interested in the SideBySide component, but I would indeed need the ability to use |

#258 a simple
SideBySideControl(https://github.com/digidem/leaflet-side-by-side) support added to dash leaflet.