在谷歌地圖中,標記圖像的中心底部通常是其必須標記點的緯度。如何對齊谷歌地圖上的標記圖標
想象我的標記圖標是一個圓,我想它的中心是在給定的點的緯度和經度...
代碼:
var image_hotspot = 'img/icons/bank_euro.png';
var marker = new google.maps.Marker({
map: map,
position: placeLoc,
icon: image_hotspot
});
https://groups.google.com/forum/#!topic/google-maps-js- api-v3/D-7uLsch28c表示MarkerImage對象不贊成使用google.maps.Icon對象 –