Tell us what you are trying to do?
Highlight a single map icon
Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
Is there a similar example that we can see?
hidden link
See how the icon is highighted compared to the others (I do not want to click to highlight)
What is the link to your site?
hidden link
Hi,
Thank you for contacting us and I'd be happy to assist.
It is possible to set a different map marker icon for an individual map marker using the "marker_icon" attribute, in the "wpv-map-marker":
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
If you don't want to link it with the 'click' event, can you please share information about selecting the highlighted map marker? I'll be in a better position to guide you, accordingly.
regards,
Waqar
Hi, my page uses a content template which shows a single CPT listing. Within that template i have a view which shows several listings from the same CPT. How do I pull the ID of the single listing into the view to differentiate the map icon from all the others
Thanks for writing back.
You can check the option "Don't include current page in query result" in the view's "Query Options", which will exclude the marker from the current post from showing.
Next, you can include a separate instance of the "wpv-map-marker" shortcode with a different/special marker icon, for the current post in the template directly, so that it is not in the view's loop.
This way, the results from the view will show the map markers with the default marker icon, while the map marker for the current post will show with a different/special marker icon.
My issue is resolved now. Thank you! Your solution worked perfectly, and allowed me to continue.