2012-06-04 26 views
-1

我要讓多個標記谷歌地圖的地址或PIN碼類似使多個標記谷歌地圖的地址或PIN碼

我只是在陣列中添加地址或PIN碼,我會做出對多個標記谷歌地圖

例如

var address = new Array('Canada','Newyourk') 

      or may be pincode 

    var address = new Array('123456','654321') 

我基本是htmljavascript

+0

我有一些密碼沒有。和我必須設置多個標記谷歌地圖或pincode – Veer

+0

我找到了一個示例https://google-developers.appspot.com/maps/documentation/javascript/v2/examples/geocoding-simple,但它不是多個 – Veer

+0

[Fusion Tables Google Map API Layers](http://hpneo.github.com/gmaps/examples/fusion_tables.html) [Google Dev](https://developers.google.com/maps/documentation/javascript/layers #FusionTables) 閱讀API並嘗試一些並更新您的問題。謝謝。 – matthewnreid

回答

0

這是利用地理編碼服務進行API。更多關於此topis:https://developers.google.com/maps/documentation/javascript/geocoding和這裏:https://developers.google.com/maps/faq#geocoder_exists

我還建議您閱讀整個API文檔。它是那裏最好的API文檔,有很多有用的示例和指南。

+0

他,'揚Wrm'你給我一個標記的例子,但我想多個 – Veer

+1

至少它是一個很好的起點。您可能必須爲此創建一個函數 - 循環遍歷記錄並將其轉換爲地理編碼。 –