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

listener not found when using leafletBaseLayers #334

Open
fkontic opened this issue Jun 9, 2022 · 0 comments
Open

listener not found when using leafletBaseLayers #334

fkontic opened this issue Jun 9, 2022 · 0 comments

Comments

@fkontic
Copy link

fkontic commented Jun 9, 2022

Hi, I have an issue with leafletBaseLayers. The problem is that when the leaflet directive/element gets destroyed, it outputs a bunch of listener not found warnings into the console and the more layers there are in leafletBaseLayers, the more warnings I get. And if I don't use leafletBaseLayers or leave it empty and just add the same exact layer to leafletOptions, it works flawlessly.

I have included a Stackblitz with the minimal repro. Just toggle the map by clicking the Toggle map button and open the console to see the warnings. You can also try to comment out Layer1 and uncomment layers from leafletOptions to see that it works fine in that case. https://stackblitz.com/edit/angular-ivy-xfhrrq

My environment (on Stackblitz):
Angular 14.0.1 (although it doesn't work on Angular 13 either)
ngx-leaflet 8.1.0
Leaflet 1.8.0

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

1 participant