Skip to content

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

Closed

Description

@andrewharvey

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions