0
我有一個地址,現在我需要檢索Lat/Lang座標。
在谷歌,they only have good examples爲V2而不是V3。如何使用Geocode獲取緯度/經度?
我要做到以下幾點:
var myLatLAng = getLatLang(adress);
如何修改這個代碼,以使該happend?
function showAddress(address) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}
}
);
}
是的......這就是我擔心的:(謝謝。 – Steven 2009-12-15 11:30:43