我有这个代码
address = "11533"
geocoder.geocode({"address" : address}, function(results, status)
{
if(status == google.maps.GeocoderStatus.OK)
{
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
var str = results[0].formatted_address + "";
var info = new google.maps.InfoWindow({
content : str
});
google.maps.event.addListener(marker, "click", function()
{
info.open(map, marker);
});
}
else
alert("Error in address");
我想添加有关城市人口及其区号的信息。有什么帮助吗?
谢谢