Problem:
How to feed the map marker icon from an image custom field?
Solution:
You need to use the legacy Views Maps:
https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/
Then use the Maps shortcodes to feed the custom field inside the marker_icon attribute such as:
[wpv-map-marker map_id='Dallas-Fort-Worth-Map-Test' marker_id='marker-[wpv-post-id]' marker_field='wpcf-address' marker_icon='[types field="marker-icon" size="thumbnail" url="true"]'][/wpv-map-marker]
In the code above the shortcode below:
[types field="marker-icon" size="thumbnail" url="true"]
retrieves the image URL from the custom field and you feed it to the marker_icon attribute.
Relevant Documentation:
https://toolset.com/forums/topic/custom-image-as-map-icon-marker/#post-2008503
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
This topic contains 7 replies, has 2 voices.
Last updated by michaelB-49 1 year, 6 months ago.
Assisted by: Christopher Amirian.