-1
喜,所以我試圖讓dragend事件谷歌未定義dragend事件映射,同時單擊Works
map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
google.maps.event.addListener(map,'dragend',function(event) {
//stuff
});
的保持現在奇怪的是,當我使用這個事件監聽器「事件」是不確定的,但如果我例如用「mouseup」替換「dragend」,那麼我在我的函數中得到一個定義的事件。有人知道爲什麼這是,我怎麼能得到dragend事件的舉行?
你所需要的功能在dragend事件實現..? – sunil