My site has a distance filter that was using Google Maps API (searching within a radius of X miles from user location), after updating all Toolset plugins I removed the Google Maps API from my Toolset settings and switched to OpenStreetMap. This caused the search filter to disappear, though maps displayed correctly. Reverting back to Google Maps and restoring the API fixed the issue. Further testing showed that the search distance filter works with OpenStreetMap only if the Google Maps API remains in place
It seems rather involved to have to create a whole new setup of views, templates, profiles and custom search on a new install. Doing so on my own site took quite some time. Is there another way to go about this?
In addition, putting any number in the Google Maps API (for example 00000000000000000000) gets the search bar displayed when set to Openstreetmap
I'm having some trouble setting up a distance filter at the sandbox url provided. It's been some time since I had to set this up and I thought it was simply choosing Distance as part of the Custom Search filter on the frontend with Blocks but that doesn't seem to be the case. Is it not possible via Blocks the way the rest of the page would be setup? I dont want to make a mess of things on the backend is there an up to date video or tutorial specific to setting up search by distance?
But you are welcome to create a legacy view if it is something you are more comfortable with:
- Go to "Toolset > Settings > General".
- Find the "Editing experience" section.
- Check the "Show both the legacy and Blocks interface and let me choose which to use for each item I build" checkbox.
- Reload the browser page.
- Go to the newly added "Toolset > Views" menu.
- There you will be able to edit the views.
Using the Filtering Markers by Distance instructions on the aforementioned page at https://toolset.com/course-lesson/filtering-and-ordering-map-markers-by-distance
To edit the following page: enlace oculto
I selected View block and added Address custom search filter.
With the View block selected, on the right side of the page I clicked Content Selection (not specified in the instructions and should be updated) to drop down the Query Filter, I then clicked the Add Filter button but there was no option for Distance. See attached images. Did I miss a step? These seems to be the way I achieved it on my website, when I checked the View Content Selection I am utilizing a Distance query filter on my site
Christopher pass this ticket to me and I'll take care of it and try to help you further. Hope this is OK.
Regaring the sandbox site, I've added the distance search field:
- enlace oculto
But the original query which you have:
My site has a distance filter that was using Google Maps API (searching within a radius of X miles from user location), after updating all Toolset plugins I removed the Google Maps API from my Toolset settings and switched to OpenStreetMap. This caused the search filter to disappear,
What you see is the expected results as OpenStreetMaps does not support geolocation-based distance filters (e.g., within X km of an address).
For address search, you will have to use the Google API key.