Title: Google Marker
Last modified: August 21, 2016

---

# Google Marker

 *  Resolved [johnnydev](https://wordpress.org/support/users/johnnydev/)
 * (@johnnydev)
 * [13 years ago](https://wordpress.org/support/topic/google-marker/)
 * Hi all!,
 * I’ve tried to change a google marker but I failed 🙁
 * I used this code:
    var image2 = ‘[http://www.4cf.pl/2.0/wordpress/wp-content/uploads/2013/05/restaurant.png&#8217](http://www.4cf.pl/2.0/wordpress/wp-content/uploads/2013/05/restaurant.png&#8217);;
 * and add a line in:
    var marker = new google.maps.Marker({ position: em_LatLng,
   icon: image2, map: maps[map_id]
 * but i didn’t work. I add those lines in both js files (events-manager.js and 
   events-manager-source.js) because I didn’t know which was the correct one. I’ve
   seen that marker declaration appeard more than once (in e-m.js in lines 741, 
   773, 846 and in e-m-s.js in lines 779, 927,962).
 * I also tried to add marker.setIcon(“[http://www.4cf.pl/2.0/wordpress/wp-content/uploads/2013/05/restaurant.png&#8221](http://www.4cf.pl/2.0/wordpress/wp-content/uploads/2013/05/restaurant.png&#8221););
 * I do not know what I’m doing wrong or what I’m missing.
 * Any thougths?
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [13 years ago](https://wordpress.org/support/topic/google-marker/#post-3782698)
 * hi,
 * you can change that by hooking into the em_maps_location_hook using javascript/
   jquery – [http://wp-events-plugin.com/tutorials/modifying-event-location-google-maps/](http://wp-events-plugin.com/tutorials/modifying-event-location-google-maps/)
 *  Thread Starter [johnnydev](https://wordpress.org/support/users/johnnydev/)
 * (@johnnydev)
 * [13 years ago](https://wordpress.org/support/topic/google-marker/#post-3782703)
 * Hi,
 * thx for the tip!
 * I manage to change the marker 🙂
    Just find in events-manager.js “jQuery(‘.em-
   locations-map’).each( function(index)…” (line 754 or 745 depend on em version)
   and add var image = … and then few line below in marker declaration just add 
   icon: image,
 * Best Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Google Marker’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)

 * 2 replies
 * 2 participants
 * Last reply from: [johnnydev](https://wordpress.org/support/users/johnnydev/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/google-marker/#post-3782703)
 * Status: resolved