在網上找了很久,都沒有成功,我想提取下面網頁中第19行 zoom:17,17這個引數,要怎么做比較好,有大神能直接給出查找的代碼嗎?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>
<head>
<title>Simple Map</title>
<meta charset="utf-8">
<style>
html, body, #map{
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAXib4MBvfgUQpwT_dzSNE1chWLhmums7Q&sensor=false"></script>
<script>
function initialize(){
var myplace=new google.maps.LatLng(22.531313, 113.933229);
var mapOptions = {zoom:17,center:myplace,mapTypeId: google.maps.MapTypeId.ROADMAP };
var map = new google.maps.Map(document.getElementById('map'),mapOptions);
var marker=new google.maps.Marker({position:myplace,map:map});
var insert=function(x,y,id,name){
var marker=new google.maps.Marker({position:new google.maps.LatLng(x,y),map:map,title:name});
var infowindow=new google.maps.InfoWindow({content:'ID:'+id+'<br/>Name:'+name+'<br/>Latitude:'+x+'<br/>Longitude:'+y});
infowindow.open(map,marker);
google.maps.event.addListener(marker,'click',function(){infowindow.open(map,marker)});
}
insert(22.531313,113.933229,1102,'New 02');
}
</script>
</head>
<body onload="initialize()">
<div id="map"></div>
</body>
</html>
uj5u.com熱心網友回復:
怎么沒人回復。。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/130813.html
標籤:基礎類
上一篇:初學者求大神幫忙
