Custom marker on global Map
-
Hi,
I am trying to use custom markers on the global map and I can’t find any examples and its a little outside my skill level.
This is what I was trying was:
jQuery(document).ready(function($) { $(document).bind('em_maps_locations_hook', function( e, map, infowindow, marker ){ marker.setOptions({"icon": "https://domain.org/wp-content/themes/themename/images/icons/marker.png"}); }); });
I got this far from the tutorial page: https://wp-events-plugin.com/tutorials/modifying-event-location-google-maps/
What is tripping me up is “For the global maps, it’s the same principle, except the hook is called em_maps_locations_hook and one variable is supplied which is an array of markers.” I found the above code on another thread and am sure it would work on a single event map, but it does not translate into the global map.
Thanks for any help that can be offered.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom marker on global Map’ is closed to new replies.