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

Change map search to leaflet-control-geocoder with Nominatim #2221

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

TomGoBravo
Copy link
Contributor

@TomGoBravo TomGoBravo commented Feb 2, 2022

This PR removes code using Google Maps API and adds leaflet-control-geocoder. By default it uses the OSM Nominatim service which seems to work without an API key. Enable search control by default in example config.

Tested

Setup postgis and ran the demo app following examples/geo_alchemy/README.rst then created an object in the polygon table. With this change http://127.0.0.1:5000/admin/polygon/edit/?id=1&url=%2Fadmin%2Fpolygon%2F there is now a little search icon in the top right that can find place names.

@TomGoBravo
Copy link
Contributor Author

@mrjoes Please take a look. Thank you.

@samuelhwilliams
Copy link
Contributor

Hey 👋 this feels like a good change to default behaviour - would you be willing to update this PR? 🙏

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

Successfully merging this pull request may close these issues.

2 participants