I am using events manager to add events and associated locations. In the location map, currently it shows the info window on load. I want to hide the info window on load. So I am using the hook 'em_maps_location_hook' mentioned in the events-manager.js But for some reason the info window doesn't close. Can someone please help me with this?
jQuery(document).bind('em_maps_location_hook', function( e, map, infowindow, marker ){
infowindow.close();
map.panBy(0,0);
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
});
Thank you,
Srilatha