leaflet-locatecontrol
leaflet-locatecontrol copied to clipboard
Warning: "listener not found" for leaflet 1.8.0
Since leaflet 1.8.0 fixes the bug with Safari tap event (yay!) it also introduces new warning for leaflet-locatecontrol when removing map.
Here's codesandbox with testing env. https://codesandbox.io/s/leaflet-timeline-control-forked-8df1z1?file=/src/index.js Use "Remove map" and "Add map" to generate the warning.
I am not sure what causes this, but after brief analysis it concerns only the zoomend event:
this._map.off('zoomend', this._onZoomEnd, this);
With Leaflet 1.8.0 I can also see this, but with version 1.9.2 it no longer occurs :slightly_smiling_face: