2012-01-30 71 views
1

我試圖在標記上放置2張圖片。 但影子不好,因爲谷歌地圖不能互相覆蓋。如何在Google Maps API V3中放置2張圖片

我該如何放2個圖標?

myMarker = new google.maps.Marker({ 
       position: latLong, 
       map: map, 
       shadow: '/images/map-shadow.png', 
       icon: 'http://maps.google.com/mapfiles/ms/icons/green-dot.png' 
      }); 

謝謝!

回答

1

看看documentation的複雜圖標示例

+0

這是使用SHADOW。我故意不想使用陰影,因爲它具有不同的渲染行爲 – Himberjack 2012-01-31 07:53:52

相關問題