phloose / leaflet-compare

A Leaflet control to compare two map layers
MIT License
11 stars 3 forks source link

_updateLayers not available on L.geoJSON types #3

Open crhoover-maxar opened 2 months ago

crhoover-maxar commented 2 months ago

It seems that plotting an L.geoJSON layer causes an error and layer is not rendered.

image

Tracing back, I couldn't find any where in the source where _updateLayers is defined either which seems to be the root cause of the issue,. This is using Leaflet 1.7.1

crhoover-maxar commented 2 months ago

It seems there is a missing call from split map: https://github.com/QuantStack/leaflet-splitmap/blob/2fa719b418c16d0b25d098d7a8400afe4354872b/src/leaflet-splitmap.js#L144