(緯度,經度)怎樣可以個別存成一個變數呢? - Google

By Bennie
at 2008-08-30T08:44
at 2008-08-30T08:44
Table of Contents
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
不知道這樣該怎樣寫呢?
--
Tags:
Google
All Comments

By John
at 2008-08-30T21:56
at 2008-08-30T21:56
Related Posts
有人會撰寫google小工具嗎?

By George
at 2008-08-29T18:40
at 2008-08-29T18:40
Picasa有沒有首頁?

By Daniel
at 2008-08-29T17:46
at 2008-08-29T17:46
google的文件分享,非檢視,要下載

By Hedy
at 2008-08-29T10:40
at 2008-08-29T10:40
iGoogle可否自訂小工具的視窗大小?

By Lucy
at 2008-08-29T09:19
at 2008-08-29T09:19
google map多筆資料利用setTimeout做延遲顯示????

By James
at 2008-08-29T07:48
at 2008-08-29T07:48