Skip Navigation

[Resolved] marker with image title

This thread is resolved. Here is a description of the problem and solution.

Problem:
Create map marker with title feature image.
this is a code:

[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_field="wpcf-address" marker_title="[wpv-post-featured-image]"][/wpv-map-marker]

Solution:
You can only display text inside the marker title attribute, but you can display image as map marker icon, for example:

[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_field="wpcf-address" marker_icon="[wpv-post-featured-image output="url"]"][/wpv-map-marker]

Relevant Documentation:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-marker

This support ticket is created 7 years, 1 month 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 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#578943

I am trying to: Create map marker with title image - [wpv-post-featured-image] this is a code:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
[wpv-map-render map_id="map-1" map_height="500px" map_width="1920px" general_zoom="14"]
<wpv-loop>
[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_field="wpcf-address" marker_title="[wpv-post-featured-image]"][/wpv-map-marker]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

what i doing wrong?
Thanks!

#578985

Dear Vitali,

You can only display text inside the marker title attribute, but you can display image as map marker icon, for example:

[wpv-map-marker map_id="map-1" marker_id="marker-[wpv-post-id]" marker_field="wpcf-address" marker_icon="[wpv-post-featured-image output="url"]"][/wpv-map-marker]

More help:
https://toolset.com/documentation/user-guides/maps-shortcodes/#wpv-map-marker
marker_icon. Optional, defaults to empty, which means using the default Google Maps icons for markers, or the one set for the whole map. Can be a complete URL pointing to an image to use as marker image.

#579383

Tnx!!!

#579741

You are welcome.