1
marker = new google.maps.Marker({
icon: image,
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
flat: true,
optimized: false,
map: map,
visible: true,
customInfo: locations[i][0]
});
我有上述建立我的標記在我的谷歌地圖,但當點擊標記,地圖放大到的位置,我想使標記無法點擊。谷歌地圖API V3更改標記選項
我曾嘗試沒有成功以下
google.maps.event.addListener(marker, 'click', function() {
map.setZoom(17);
map.setCenter(this.getPosition());
marker.MarkerOptions ({
clickable: false
});
});