我這邊已經抓到經緯度但是我一直轉不了中文
懇請大大們幫忙
<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> </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
留言列表