2017-01-29 41 views
1
$.getJSON('http://maps.googleapis.com/maps/api/geocode/json?address=' + addresses[i] + '&sensor=false', null, function (data) { 


var p = data.results[0].geometry.location 
var latlng = new google.maps.LatLng(p.lat, p.lng); 

var marker = new google.maps.Marker({ 

    position: new google.maps.LatLng(p.lat, p.lng), 
    map: map, 
    icon: marker_icon, // This path is the custom pin to be shown. Remove this line and the proceeding comma to use default pin 

}); 


bounds.extend(marker.position); 

我應該在哪裏使用我的Google API密鑰?我應該在我的代碼庫中使用我的Google API密鑰?

是否有意爲API密鑰的標記中的新條目?

+0

我的回答對您有幫助嗎? –

回答

相關問題