Google map輸入住址後直接show map的應用 - Google
By Ethan
at 2009-09-12T01:22
at 2009-09-12T01:22
Table of Contents
之前做專案的時候有找過相關的資訊,不知道是不是你要的效果
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert("很抱歉,我們找不到"" + address + ""這個地址。");
} else {
map.setCenter(point, 15);
var marker = new GMarker(point);
}
}
);
}
}
--
<form action="#" onsubmit="showAddress(this.address_sreach.value); return fal
se">
<input type="text" name="address_sreach" value=""/>
<input type="submit" value="Go!"/>
</form>
--
Tags:
Google
All Comments
By Ingrid
at 2009-09-13T12:53
at 2009-09-13T12:53
By Selena
at 2009-09-17T09:46
at 2009-09-17T09:46
By Jessica
at 2009-09-22T08:37
at 2009-09-22T08:37
By Daniel
at 2009-09-26T16:22
at 2009-09-26T16:22
Related Posts
請教如何搜尋所有附件檔
By Joe
at 2009-09-11T17:09
at 2009-09-11T17:09
XLS 轉 KML 有可能乎?
By Edwina
at 2009-09-11T15:27
at 2009-09-11T15:27
Google map輸入住址後直接show map的應用
By Donna
at 2009-09-11T13:30
at 2009-09-11T13:30
想請教關於協作平台
By Madame
at 2009-09-11T11:42
at 2009-09-11T11:42
協作平台的檔案櫃
By Carol
at 2009-09-11T10:50
at 2009-09-11T10:50