Support » Plugins » Events Manager – Changing Google Maps Marker

  • Hello I am using Events Manager in a WordPress site and am trying to change the Google Maps Marker.

    The Events manager site gives some support but I am having trouble getting my head around it..

    Any help appreciated!



Viewing 1 replies (of 1 total)
  • Add your own custom Google map marker, can be done with a single line of code.

    First you have to hook into em_maps_location_hook for single event pages or em_maps_locations_hook for global events

    jQuery(document).bind('em_maps_location_hook', function( e, map, infowindow, marker ){		
    // Custom Google map marker icon
    marker.setOptions({'icon': 'http://localhost/wordpress/wp-content/themes/Mysite/images/location-marker.png'});			

    After ‘icon’ you have to typ your url. And you have added your own marker.

    Question to developers.

    Is there a way to use something like ({‘icon’: ‘images/location-marker.png’});

    Might be handy when I go online when i am finished developing my site

Viewing 1 replies (of 1 total)
  • The topic ‘Events Manager – Changing Google Maps Marker’ is closed to new replies.