leaflet-locatecontrol icon indicating copy to clipboard operation
leaflet-locatecontrol copied to clipboard

Warning: "listener not found" for leaflet 1.8.0

Open ThomasK0lasa opened this issue 2 years ago • 1 comments

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);

ThomasK0lasa avatar Jul 21 '22 18:07 ThomasK0lasa

With Leaflet 1.8.0 I can also see this, but with version 1.9.2 it no longer occurs :slightly_smiling_face:

KristjanESPERANTO avatar Oct 23 '22 22:10 KristjanESPERANTO