2010-09-14 166 views
1

我正在尋找在其他人上顯示標記的JavaScript代碼。
可能有任何方法GMarker頂部設置標記(z-index種)。在谷歌地圖上的其他標記上顯示標記

對於解決方案,我銷燬標記並重新創建。解決方案在一段時間之前運行(當我嘗試這個解決方案時),但現在不行。

回答

1

有一個參數zIndexProcess。

var marker = new GMarker(latlng, { zIndexProcess: "your z index for marker" }); 

應該工作。

請檢查此鏈接。

http://econym.org.uk/gmap/zindex.htm

+0

感謝@anand。它工作得很好。 – 2010-09-18 07:16:37