Skip Navigation

[Resolved] link to a map and open a marker

This support ticket is created 5 years, 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1256263

Im trying to build a link that goes to a page with a map and that also opens a marker. I have the fis code on the map page for testing which works (ive removed variables for testing)

locate Sutton

However if i move it to another page like this the marker no longer opens

locate Sutton

Is this possible to do?

#1256603

Hello,

There isn't such a built-in feature within Toolset Maps plugin, you might need to consider custom JS codes.

For example:
1) In the "another page", setup a HTML link, pass the marker ID as URL parameter to target page.

2) In the target page, setup JS codes, get the marker ID from URL parameter
https://stackoverflow.com/questions/19491336/get-url-parameter-jquery-or-how-to-get-query-string-values-in-js

3) And use JS codes to click the focus link specified URL parameter:
hidden link
https://toolset.com/documentation/user-guides/maps-shortcodes/#map-focus-on-marker

For your reference.