Skip Navigation

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

This support ticket is created hace 3 años, 8 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Jamal hace 3 años, 8 meses.

Asistido por: Jamal.

Autor
Mensajes
#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 enlace oculto, 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.
enlace oculto

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