stefanocudini / leaflet-search

Search stuff in a Leaflet map
https://opengeo.tech/maps/leaflet-search/
MIT License
783 stars 333 forks source link

Limit search results to viewed area or to hard coded boundaries? #231

Open jzadra opened 5 years ago

jzadra commented 5 years ago

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.

alenastern commented 4 months ago

Hi @stefanocudini - I wanted to follow up on this question! I'd be very interested in the answer, or a working example of using filterData in searchOptions . Thanks so much!