So you want your map to automatically detect the user's position/location and only load the markers around him/her?
In this next demo we'll show you how to do this with Geocode Factory
Markers are loaded near and around your position. A big radius is set by default to ensure that we don't end up without any markers at all. Of course you can also enter a custom radius, or click on the radius icon and drag the radius dynamicaly!Try it !
Loaded markers : 0
How To Configure
Please note that the user will need to allow the browser to detect his/her location when prompted.
The way to achieve this is the following:
- In your maps manager select the map of your choice.
- Then, under the "Radius options" tab simply enter the following information as seen in the image below.
What is most important is to set the following two options both to "yes":
- "Draw radius circle"
- "Markers in user radius"
Note: The markerset type is a SobiPro one but the principal is the same however in the case of Community Builder, JomSocial, Mosets, etc.