试图向地图添加 45 个不同的点,但我只是OVER_QUERY_LIMIT
返回,没有地图。
我通过字符串搜索获取位置,然后将返回的 LatLng 对象分配给新的 google Marker 对象
字符串搜索
var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': x}, function(results, status) {
if (status === google.maps.GeocoderStatus.OK) {
var result = results[0].geometry.location;
return result;
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});