0
我正在使用gmap 3繪製地圖。我需要啓用標記上的點擊功能。 現在用的是下面的代碼如何將點擊功能添加到gmap3功能?
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) {
}
我想這too.eventes function.still不是迴環。
events:{
click:function(){
alert("I'm the last one, and i have my own click event");
}
謝謝你...我得到它的工作... :) –