-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Cannot read property x of undefined #2606
Comments
Fix for #2606: Cannot read property x of undefined
Actually this issue was not solved completely, I would suggest that since |
@TheCodeDestroyer did you run into this in a different use case? |
@mourner Yeah, for me it's called from |
I am pretty sure I pass defined values still: |
When using Leaflet in combination with Angular Leaflet Directive, this error triggers when switching back and forth between a view with Leaflet and a view without leaflet.
Digging into the source, I discovered that
.setPosition
is being called regardless of the fact that_getPos()
returns undefined.The text was updated successfully, but these errors were encountered: