function showAddress(address,dec)
{
if (geocoder)
{
geocoder.getLatLng(
address,
function(point)
{
if (!point)
{
alert(address + " not found");
}
else
{
alert(point) //顯示(25,31)
}
}
}
}
point會是(25,31),好像有包含括號
不知道有辦法各別取其緯度和經度存成變數嗎?
例如:
Lat=25
Lng=31
不知道這樣該怎樣寫呢?
--
{
if (geocoder)
{
geocoder.getLatLng(
address,
function(point)
{
if (!point)
{
alert(address + " not found");
}
else
{
alert(point) //顯示(25,31)
}
}
}
}
point會是(25,31),好像有包含括號
不知道有辦法各別取其緯度和經度存成變數嗎?
例如:
Lat=25
Lng=31
不知道這樣該怎樣寫呢?
--
All Comments