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

Improve geocoder: #566

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Improve geocoder: #566

merged 1 commit into from
Dec 10, 2024

Conversation

dabreegster
Copy link
Contributor

  • speed up the animation
  • prefer results close to the current map center

For #536

- speed up the animation
- prefer results close to the current map center
@@ -27,6 +38,11 @@
{mapController}
apiKey={import.meta.env.VITE_MAPTILER_API_KEY}
country="gb"
proximity={[
{
type: "map-center",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.maptiler.com/sdk-js/modules/geocoding/api/types/#ProximityRule
The default was server-geolocation!! #504 first brought up results far from the study area. It's no wonder!

@dabreegster dabreegster merged commit 1e40258 into main Dec 10, 2024
2 checks passed
@dabreegster dabreegster deleted the geocoder branch December 10, 2024 13:35
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.

2 participants