I am using gmap 3 for plotting map. i need to enable on click functionality on marker. am using the following code
var contact = {"lat":"26.207293", "lon":"50.583730"}; //Change a map coordinate here!
try {
var mapContainer = $('.map');
mapContainer.gmap3({
action: 'addMarker',
marker:{
options:{
icon : new google.maps.MarkerImage('img/assets/marker.png')
}
},
latLng: [contact.lat, contact.lon],
map:{
center: [contact.lat, contact.lon],
zoom: 14
},
},
{action: 'setOptions', args:[{scrollwheel:false}]}
);
} catch(err) {
}
i tried this too.eventes function.still not woring.
events:{
click:function(){
alert("I'm the last one, and i have my own click event");
}