Skip Navigation

[Resolved] Totop Scroll inside a Sidebar when clicked map marker

This support ticket is created 3 years, 8 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.

Our next available supporter will start replying to tickets in about 0.39 hours from now. Thank you for your understanding.

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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 8 months ago.

Assisted by: Jamal.

Author
Posts
#2001945

Hi,
Would it be easy to make the same Focus on Map link functionality the other way around, meaning, focus on the list results item when map marker clicked ?
I've created this map hidden link, with list of posts on the left and map on the right. And each item on the list focus on the map marker correctly, but would love to make each map marker show the list item it relates to, maybe with a scrolling to top to make it visible inside the sidebar.
Hope you can help us. thanks.

#2002171

Hello and thank you for contacting the Toolset support.

You can access the map markers with the following code, because the map ID is "map-1":

WPViews.view_addon_maps.markers['map-1']

Then, you can listen for a click event and execute whatever code you want. Check this example for a simple click event.
hidden link

I hope this helps. Let me know if you have any questions.