Open ThomasK0lasa opened 2 years ago
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);
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:
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);