日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

[html] Google map的地理编码javascript例子 -- Google map geocoder example

發布時間:2025/4/14 52 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [html] Google map的地理编码javascript例子 -- Google map geocoder example 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

代碼 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Google Maps API key for http://localhost/ [key] [googlemaps]</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />?
</head>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA"></script>
<script type="text/javascript">
function displayLatLng()
{
var geocoder = null;
geocoder
= new GClientGeocoder();
var addrObj = document.getElementById("address_63833");
var address = addrObj.value;
geocoder.getLatLng(
address,
function(point)
{
alert(point.lat());
alert(point.lng());
}
)
}

</script>
<body>
<input type="text" size="42" id="address_63833">
<input type="button" value="Find Address" id="button_63833" onclick="displayLatLng();" >
</body>
</html>

?

轉載于:https://www.cnblogs.com/davidhhuan/archive/2010/06/01/1749446.html

總結

以上是生活随笔為你收集整理的[html] Google map的地理编码javascript例子 -- Google map geocoder example的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。