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

Respect marker and flyTo options when geolocating #462

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

raws
Copy link

@raws raws commented Jun 20, 2022

I noticed that the geolocation feature (added in #444) adds a marker to the map and flies the map to the new location, even if the marker and flyTo options are set to false. This PR changes that behavior to be consistent with query(). I also performed some minor cleanup on some of the related tests, and removed some hanging whitespace.

I considered further DRYing those option checks and moving them into _handleMarker() and _fly(), but decided to keep that a concern of the caller, rather than those functions themselves. I don't feel strongly about it either way, though.

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • update CHANGELOG.md with changes under master heading before merging

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

Successfully merging this pull request may close these issues.

1 participant