Skip Navigation

[Resolved] Highlighting a single map icon

This support ticket is created 2 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.

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 3 replies, has 2 voices.

Last updated by Luo Yang 2 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2321953

Tell us what you are trying to do?
Highlight a single map icon as different from the rest

Is there any documentation that you are following?
Toolset maps documentation at : https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render

Is there a similar example that we can see?

What is the link to your site?
hidden link – the mp is being pulled from a view which includes the listing. Can the individual listing marker being different?

#2322533

Hello,

Is there any condition for the "individual listing marker"? you can try with wpv-conditional shortcode to display different map marker, for example:
1) Find and select the map block, in block settings, section "Source for the marker", choose option: Address
2) Find and select the view block, in view's loop, use conditional block to display different marker shortcodes.

More help:
https://toolset.com/course-lesson/using-toolset-conditional-block/
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/

#2328419

The view queries all the locations, but the condition for the one I want to highlight is outside of the view, in the content templte where the view is shown. Can I pull the condition from the templated inside the view dynamically?

#2328491

In your case, you can setup the special marker shortcode manually by following our document:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
And you need to specific "map_id" attribute as the same as the Toolset map block setting.