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

Fix bug in GeolocateControl when trackUserLocation is false and control has been removed #9290

Closed
andrewharvey opened this issue Feb 12, 2020 · 0 comments · Fixed by #9291
Closed
Assignees
Labels

Comments

@andrewharvey
Copy link
Collaborator

andrewharvey commented Feb 12, 2020

In the GeolocateControl when trackUserLocation is false, then if the control is removed from the map sometimes the onSuccess callback can still be called after the control has been removed and then this._map is undefined.

This was introduced in #8756. it could well have existed before this

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