Hello,
First I would really like to thank you guys for developing the search by distance function for Views. What a great, and long awaited feature!
I have been looking at your Real Estate Demo site trying to figure out how you guys set it up.
I need help setting the url parameter for the radius and units. I am able to pass the url paramter for the location to the filter (from the input box) but I can't find how you guys pass the parameter for radius and units. Currently it uses a fixed radius around the user input for distance center. See attached picture.
I'm using the following code from the demo site (changed the "compare-field"):
[wpv-control-distance compare_field="location-city" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit"]
How do I change the filter radius and units from the front end?
Thanks,
Tom
Dear Tom,
You can customize the "Distance filter" in view's "Filter Editor" section, see our document:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#filtering-markers-by-distance
section "Filtering Markers by Distance"
And screenshot
hidden link