-
Notifications
You must be signed in to change notification settings - Fork 74
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
Leaflet search: limit search area? #168
Comments
Hello! @trafficonese - has this question been answered anywhere? I would like to do something similar in an RShiny app that I am working on. Thank you!! |
I dont think it's possible currently. When you search in OSM you will always query the whole world. Here is an example in the JS-library: This has to be tackled in the upstream JS repo: |
Would it be enough to just add a country or state as filter?
So the idea would be to have a
This should result in shorter search results and improve the search speed. and ideally I could make the filter as long as possible.. Unfortunately the plugin doesn't offer this option currently, but it would be a small addition and quick PR. |
Is there any way to limit the search results either to the area being viewed on the map, or by hardcoding it (for instance just for North Carolina, or a certain county)?
I'm not clear on whether the filterData would allow this, as the documentation doesn't explain the arguments/parameters.
The text was updated successfully, but these errors were encountered: