trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
211 stars 74 forks source link

added side-by-side plugin #185

Closed trafficonese closed 4 years ago

trafficonese commented 4 years ago

Adds support for the plugin:

I changed the JS-code based on this issue. So all getContainer are replaced by getPane.

This plugin works with the addMapPane leaflet-function. And it is not working correctly if the baseGroups are defined in addLayersControl. For now every side can only show 1 basemap which can not be changed interactively, but maybe in the future :)