Skip Navigation

[Resolved] Use my location for distance filter in Maps

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to show results within a certain distance from my current location.

Solution: Add a distance filter to your View. In the Filter Editor, click "New Filter" and find the "Distance" filter under Toolset Maps. If you cannot see the Filter Editor section, you can enable this section by clicking "Screen Options" in the top right corner of the admin screen. Insert the filter control, then in the Query Filter editor you can select "Distance Center is set from user Location".

Relevant Documentation: https://toolset.com/2017/12/toolset-maps-1-4-with-geolocation-filtering-by-distance-and-custom-map-styles/

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Matthias Reichl 6 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#602967
map.JPG

Hi,

I need Help.

I Created with Views Google Map check here hidden link
how to make me google map view onyle marker in the near from my location?

I added current_visitor_location="true" map_render="immediate" but dont work.

Thx

#603194
Screen Shot 2018-01-03 at 3.37.29 PM.png

Hi, you must add a distance filter to your View. In the Filter Editor, click "New Filter" and find the "Distance" filter under Toolset Maps. If you cannot see the Filter Editor section, you can enable this section by clicking "Screen Options" in the top right corner of the admin screen. Insert the filter control, then in the Query Filter editor you can select "Distance Center is set from user Location". See the attached screenshot for an example.

More information about distance filtering and geolocation here:
https://toolset.com/2017/12/toolset-maps-1-4-with-geolocation-filtering-by-distance-and-custom-map-styles/

#620889

thank you for your help