You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Hi, I have an issue with
leafletBaseLayers
. The problem is that when theleaflet
directive/element gets destroyed, it outputs a bunch oflistener not found
warnings into the console and the more layers there are inleafletBaseLayers
, the more warnings I get. And if I don't useleafletBaseLayers
or leave it empty and just add the same exact layer toleafletOptions
, 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 outLayer1
and uncommentlayers
fromleafletOptions
to see that it works fine in that case. https://stackblitz.com/edit/angular-ivy-xfhrrqMy 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
The text was updated successfully, but these errors were encountered: