2011-07-08 54 views

回答

0

也許,你尋找可以做什麼的Places API的

http://code.google.com/apis/maps/documentation/places/

有,但是,一些對請求的數量限制每小時,每個用戶。總之:你在附近的地方搜索一個特定的LatLng點。然後,您將收到一個json(或xml)地點列表,這些列表又可以(由您)轉換爲地圖上的標記。

+0

好吧,我understend,謝謝。所以如果它已經存在......我無法顯示? – Netinel

+0

默認情況下,您顯示的地圖不包含標記。這些標記是在外部創建的。我想maps.google.com上顯示的地圖包含當時創建的多個標記。我想他們使用相同的地方api來創建這些標記,它們本身並不存在。 –

0
var yourMarker = new google.maps.Marker({ 
     'position': some_where.latLng, 
     'map': map, 
     'title': 'set map in option' 
    }); 

var yourMarker = new google.maps.Marker({ 
     'position': some_where.latLng, 
     'title': 'set map later' 
    }); 
    yourMarker.setMap(map)