November 6, 2014 at 10:46 AM #25793
I do have another request. I am looking to incorporate the map feature with a display of the 2 closest locations to the users computer (by IP address if possible as I don’t want to force ask for location on page load)
So data flow would be
- user enters website
- website (preferably) fetches IP address and finds 2 closest locations to this user
- website displays a Google map of both locations (see attached png)
Do you have a module add-on for SLP that will do this functionality?
Attachments:You must be logged in to view attached files.November 18, 2014 at 2:40 PM #26074
Still waiting on a reply to this threadNovember 19, 2014 at 12:00 AM #26083
Set the max locations returned to 2. The rest of the functionality is built into the product.November 19, 2014 at 2:19 PM #26100
a little help please
the documentation is not very helpful with this
to show a 2 distinct maps with a specific location (closest to user on first, second closest to user on second) as focus, and zoomed within a reasonable distance, what would the shortcode look like?November 19, 2014 at 4:25 PM #26117
Lets start with returning 1 result
Closest location, with map zoomed reasonably
I need location name with that location centered and pinned, other locations can be pinned as well, that’s not an issue, but I want the map and location name visible
and will this work with IP address if user is not sharing location?
see attached image above for what I am going for…
I can probably convince them that 1 map/location will have to do, unless I can pull 2 results and load each one separately in an iframe, displaying like above
what would my shortcode look like for that?
November 21, 2014 at 5:15 PM #26198
- This reply was modified 2 years ago by monte.
<span style=”color: #555555; font-family: Arial, sans-serif; font-size: 14px; line-height: 21px;”>Still waiting on a reply to this thread</span>
Will be checking back on MondayNovember 25, 2014 at 12:47 PM #26271
<span style=”color: #555555; font-family: Arial, sans-serif; font-size: 14px; line-height: 21px; background-color: #fbfbfb;”>Still waiting on a reply to this thread…</span>December 2, 2014 at 9:54 PM #26404
For Store Pages:
For a general map you will need to use the center_map_at attribute with immediately show locations turned on and results set to show 1 location. That would be using the [[slplus]] shortcode. Attributes you can pass along are noted here:
[[slplus center_map_at=”111 Main Street, Chicago IL” immediately_show_locations=”true” initial_results_returned=”1″ ignore_radius=”true”]]December 3, 2014 at 10:11 AM #26409
<p class=”MsoNormal” style=”margin-bottom: 12.0pt;”>using the example code
[[slplus center_map_at=”111 Main Street, Chicago IL” immediately_show_locations=”true” initial_results_returned=”1″ ignore_radius=”true”]]
on the bottom of the store locator page
the output is code, not a map
Also, I need the code to use the viewers IP location or geo location if shared, not a specific address</p>
</div>December 10, 2014 at 1:52 PM #26504
Thank you for your reply via email
One more question on this topic
is there a way to pull the store name and display it when it is automatically selected in this way? (I would like to put the store name under the map, with possibly a link to its page)
- This reply was modified 1 year, 11 months ago by monte.
You must be logged in to reply to this topic.