2017-01-29 42 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

我的回答对您有帮助吗? –

回答

相关问题