Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
google map api v3 經緯度轉中文地址
Jul 23rd 2013, 20:16

我這邊已經抓到經緯度但是我一直轉不了中文
懇請大大們幫忙

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">

var map;
var markers =[];
function initialize() {
var latlng1= new google.maps.LatLng(23.69781, 120.960515);
map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP,

center: latlng1
});
google.maps.event.addListener(map, 'click',function(e) {
addMarker(e.latLng);
});

}
function addMarker(location) {
setAllMap(null);//清除標誌
markers = [];
setAllMap(map);
a=[location.lat().toFixed(6),location.lng().toFixed(6)] ;
c=[location.lat(),location.lng()];
var marker1 = new google.maps.Marker({
position: location,
map: map
});
markers.push(marker1);
document.form1.Scoor.value = a;
}
function setAllMap(map) {
for (var i = 0; i < markers.length; i++) {
markers[0].setMap(map);

}
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<style>
#map {
width: 500px;
height: 400px;
float: left;
}
</style>
<div id="map"></div>
</div>
<form name="form1" method="post" action="none">
<label for="Scoor"></label>
<textarea name="Scoor" id="Scoor" cols="45" rows="5"value=''></textarea>
</form>
<form name="form2" method="post" action="none">
<label for="Scoor"></label>
<textarea name="Scoor" id="Scoor" cols="45" rows="5"value=''></textarea>
</form>
<p>&nbsp;</p>
</body>
</html>

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 dfgfdgd 的頭像
    dfgfdgd

    pokopang外掛教學影片, ios pokopang外掛教學pokopang外掛程式 pokopang外掛程式教學 pokopang外掛教學 pokopang外掛聯合國 pokopang修改櫻桃 line pokopang外掛

    dfgfdgd 發表在 痞客邦 留言(0) 人氣()