digidem / leaflet-side-by-side

A Leaflet control to add a split screen to compare two map overlays
http://lab.digital-democracy.org/leaflet-side-by-side/
MIT License
346 stars 108 forks source link

How to remove controller #6

Closed robohal closed 7 years ago

robohal commented 8 years ago

Doesnt seem like the typical removeFrom(map) is supported for this plugin. Am i getting it wrong? If so, could you provide an example?

benboughton1 commented 7 years ago

sbs = L.control.sideBySide(left,right); sbs.addTo(mymap) mymap.removeControl(sbs)

gmaclennan commented 7 years ago

Thanks for answering @benboughton1 !

karydja commented 7 years ago

@gmaclennan Did this solution work well in your project? I'm still getting the error issue #8 presented :/

billyhunt commented 4 years ago

I am also having the same issue. remove(), removeFrom(map), and removeControl(map) are not working.

anjula-sack commented 3 years ago

I am also having the same issue

grwise1 commented 3 years ago

Same here