锘?!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 鐧懼害鍦板浘API鑷畾涔夊湴鍥?/title> <!--寮曠敤鐧懼害鍦板浘API--> <style type="text/css"> html, body { margin: 0; padding: 0; } .iw_poi_title { color: #CC5522; font-size: 14px; font-weight: bold; overflow: hidden; padding-right: 13px; white-space: nowrap; } .iw_poi_content { font: 12px arial,sans-serif; overflow: visible; padding-top: 4px; white-space: -moz-pre-wrap; word-wrap: break-word; } </style> <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> </head> <body> <!--鐧懼害鍦板浘瀹瑰櫒--> <div style="width:738px;height:224px;border:#ccc solid 1px;" id="dituContent"></div> <a href="http://www.ljoiswf.buzz/"><span class="STYLE1">河北11选5四个双号一个单号的组合</span></a> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <a href="http://www.315508.tw">山西十一选五开奖结果顺序表</a> <a href="http://www.306435.tw">广东十一选五投注平台</a> <a href="http://www.309150.tw">重庆快乐十分遗留冷号查询</a> <a href="http://www.2267001.live">四肖期期中准</a> <a href="http://www.373768.tw">2019正规股票配资平台</a> <a href="http://www.372276.tw">青海十一选五怎么玩</a> <a href="http://www.394426.tw">江苏福彩6十1</a> <a href="http://www.339129.tw">黑龙江11选5走势一定牛</a> <a href="http://www.100844.tw">江西省新十一选五</a> <a href="http://www.525889.tw">体彩网首页</a> <a href="http://www.bzomou.buzz">甘肃11选5前3选号技巧</a> <a href="http://www.153092.tw">股票分析师李鑫央视</a> <a href="http://www.825706.tw">江西快三预测高手</a> <a href="http://www.721378.tw">手机可以买时时彩平台</a> <a href="http://www.629373.tw">股票配资平台是合法的么重生回古代小说</a> <a href="http://www.384358.tw">湖南快乐十分基本</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body> <script type="text/javascript"> //鍒涘緩鍜屽垵濮嬪寲鍦板浘鍑芥暟錛? function initMap() { createMap();//鍒涘緩鍦板浘 setMapEvent();//璁劇疆鍦板浘浜嬩歡 addMapControl();//鍚戝湴鍥炬坊鍔犳帶浠? addMarker();//鍚戝湴鍥句腑娣誨姞marker } //鍒涘緩鍦板浘鍑芥暟錛? function createMap() { var map = new BMap.Map("dituContent");//鍦ㄧ櫨搴﹀湴鍥懼鍣ㄤ腑鍒涘緩涓涓湴鍥? var point = new BMap.Point(113.465604, 23.172693);//瀹氫箟涓涓腑蹇冪偣鍧愭爣 map.centerAndZoom(point, 17);//璁懼畾鍦板浘鐨勪腑蹇冪偣鍜屽潗鏍囧茍灝嗗湴鍥炬樉紺哄湪鍦板浘瀹瑰櫒涓? window.map = map;//灝唌ap鍙橀噺瀛樺偍鍦ㄥ叏灞 } //鍦板浘浜嬩歡璁劇疆鍑芥暟錛? function setMapEvent() { map.enableDragging();//鍚敤鍦板浘鎷栨嫿浜嬩歡錛岄粯璁ゅ惎鐢?鍙笉鍐? map.enableScrollWheelZoom();//鍚敤鍦板浘婊氳疆鏀懼ぇ緙╁皬 map.enableDoubleClickZoom();//鍚敤榧犳爣鍙屽嚮鏀懼ぇ錛岄粯璁ゅ惎鐢?鍙笉鍐? map.enableKeyboard();//鍚敤閿洏涓婁笅宸﹀彸閿Щ鍔ㄥ湴鍥? } //鍦板浘鎺т歡娣誨姞鍑芥暟錛? function addMapControl() { //鍚戝湴鍥句腑娣誨姞緙╂斁鎺т歡 var ctrl_nav = new BMap.NavigationControl({ anchor: BMAP_ANCHOR_TOP_LEFT, type: BMAP_NAVIGATION_CONTROL_LARGE }); map.addControl(ctrl_nav); //鍚戝湴鍥句腑娣誨姞緙╃暐鍥炬帶浠? var ctrl_ove = new BMap.OverviewMapControl({ anchor: BMAP_ANCHOR_BOTTOM_RIGHT, isOpen: 1 }); map.addControl(ctrl_ove); //鍚戝湴鍥句腑娣誨姞姣斾緥灝烘帶浠? var ctrl_sca = new BMap.ScaleControl({ anchor: BMAP_ANCHOR_BOTTOM_LEFT }); map.addControl(ctrl_sca); } //鏍囨敞鐐規暟緇? var markerArr = [{ title: "騫夸笢鐪侀噸宸ュ緩絳戣璁¢櫌鏈夐檺鍏徃", content: "鍦板潃錛氬箍宸炲競縐戝鍩庢徑鏈堣礬101鍙蜂繚鍒╀腑縐戝箍鍦篈搴?-8灞?, point: "113.465326|23.171514", isOpen: 1, icon: { w: 23, h: 25, l: 46, t: 21, x: 9, lb: 12 } } ]; //鍒涘緩marker function addMarker() { for (var i = 0; i < markerArr.length; i++) { var json = markerArr[i]; var p0 = json.point.split("|")[0]; var p1 = json.point.split("|")[1]; var point = new BMap.Point(p0, p1); var iconImg = createIcon(json.icon); var marker = new BMap.Marker(point, { icon: iconImg }); var iw = createInfoWindow(i); var label = new BMap.Label(json.title, { "offset": new BMap.Size(json.icon.lb - json.icon.x + 10, -20) }); marker.setLabel(label); map.addOverlay(marker); label.setStyle({ borderColor: "#808080", color: "#333", cursor: "pointer" }); (function () { var index = i; var _iw = createInfoWindow(i); var _marker = marker; _marker.addEventListener("click", function () { this.openInfoWindow(_iw); }); _iw.addEventListener("open", function () { _marker.getLabel().hide(); }) _iw.addEventListener("close", function () { _marker.getLabel().show(); }) label.addEventListener("click", function () { _marker.openInfoWindow(_iw); }) if (!!json.isOpen) { label.hide(); _marker.openInfoWindow(_iw); } })() } } //鍒涘緩InfoWindow function createInfoWindow(i) { var json = markerArr[i]; var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>" + json.content + "</div>"); return iw; } //鍒涘緩涓涓狪con function createIcon(json) { var icon = new BMap.Icon("http://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w, json.h), { imageOffset: new BMap.Size(-json.l, -json.t), infoWindowOffset: new BMap.Size(json.lb + 5, 1), offset: new BMap.Size(json.x, json.h) }) return icon; } initMap();//鍒涘緩鍜屽垵濮嬪寲鍦板浘 </script> </html>