Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: "listener not found" for leaflet 1.8.0 #310

Open
ThomasK0lasa opened this issue Jul 21, 2022 · 1 comment
Open

Warning: "listener not found" for leaflet 1.8.0 #310

ThomasK0lasa opened this issue Jul 21, 2022 · 1 comment

Comments

@ThomasK0lasa
Copy link

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

@KristjanESPERANTO
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants