Skip to content

Aborting locate() and locateAndSetView() #747

@grantlucas

Description

@grantlucas

I would be really valuable to be able to call a method to abort the locateAndSetView() so that if the user clicks on a marker or does another action, their current location is no longer determined.

After doing some reading, I see that this is not possible with the geolocation API, but would it be theoretically possible to add a function to leaflet which sets a flag to abort the locating and then in _handleGeolocationResponse, if that flag was set, don't follow through with the changing of the map?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions