??!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 百度地圖API自定義地??/title> <style type="text/css"> html, body { margin: 0; padding: 0; overflow: hidden; } </style> <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=2.0&ak=6b6c1a67eaa7db1ca6d6da28e590e343&services=true"></script> <meta http-equiv="Cache-Control" content="no-transform" /> <meta http-equiv="Cache-Control" content="no-siteapp" /> </head> <body onload="initMap();"> <div style="position:fixed;left:-9000px;top:-9000px;"><output id="9nh7f"></output><sub id="9nh7f"></sub><th id="9nh7f"></th><ruby id="9nh7f"></ruby><p id="9nh7f"><cite id="9nh7f"><meter id="9nh7f"><noframes id="9nh7f"></noframes></meter></cite></p><meter id="9nh7f"><mark id="9nh7f"><ins id="9nh7f"><ins id="9nh7f"></ins></ins></mark></meter><strike id="9nh7f"><em id="9nh7f"><track id="9nh7f"><th id="9nh7f"></th></track></em></strike><progress id="9nh7f"><video id="9nh7f"></video></progress><form id="9nh7f"><address id="9nh7f"></address></form><pre id="9nh7f"><span id="9nh7f"></span></pre><cite id="9nh7f"><i id="9nh7f"></i></cite><em id="9nh7f"><big id="9nh7f"><progress id="9nh7f"><meter id="9nh7f"></meter></progress></big></em><progress id="9nh7f"><ins id="9nh7f"><ins id="9nh7f"><output id="9nh7f"></output></ins></ins></progress><delect id="9nh7f"><del id="9nh7f"><pre id="9nh7f"><form id="9nh7f"></form></pre></del></delect><sub id="9nh7f"><thead id="9nh7f"></thead></sub><video id="9nh7f"><track id="9nh7f"></track></video><em id="9nh7f"></em><address id="9nh7f"><sub id="9nh7f"></sub></address><track id="9nh7f"><nobr id="9nh7f"></nobr></track><font id="9nh7f"></font><sub id="9nh7f"><thead id="9nh7f"><cite id="9nh7f"><b id="9nh7f"></b></cite></thead></sub><cite id="9nh7f"><b id="9nh7f"></b></cite><b id="9nh7f"><i id="9nh7f"></i></b><thead id="9nh7f"><b id="9nh7f"></b></thead><big id="9nh7f"><progress id="9nh7f"><meter id="9nh7f"><mark id="9nh7f"></mark></meter></progress></big><output id="9nh7f"></output><sub id="9nh7f"><sub id="9nh7f"></sub></sub><delect id="9nh7f"><b id="9nh7f"><i id="9nh7f"><p id="9nh7f"></p></i></b></delect><delect id="9nh7f"></delect><delect id="9nh7f"><cite id="9nh7f"></cite></delect><big id="9nh7f"><big id="9nh7f"></big></big><b id="9nh7f"><ins id="9nh7f"></ins></b><pre id="9nh7f"></pre><p id="9nh7f"><rp id="9nh7f"></rp></p><dl id="9nh7f"><span id="9nh7f"><form id="9nh7f"><noframes id="9nh7f"></noframes></form></span></dl><dfn id="9nh7f"><delect id="9nh7f"><del id="9nh7f"><ol id="9nh7f"></ol></del></delect></dfn><rp id="9nh7f"><rp id="9nh7f"><rp id="9nh7f"><dl id="9nh7f"></dl></rp></rp></rp><sub id="9nh7f"><cite id="9nh7f"><b id="9nh7f"><output id="9nh7f"></output></b></cite></sub><delect id="9nh7f"><ol id="9nh7f"><pre id="9nh7f"><span id="9nh7f"></span></pre></ol></delect><dl id="9nh7f"><span id="9nh7f"><form id="9nh7f"><address id="9nh7f"></address></form></span></dl><dl id="9nh7f"></dl><noframes id="9nh7f"><noframes id="9nh7f"></noframes></noframes><track id="9nh7f"></track><th id="9nh7f"><listing id="9nh7f"><dfn id="9nh7f"><font id="9nh7f"></font></dfn></listing></th><p id="9nh7f"></p><th id="9nh7f"><form id="9nh7f"></form></th><p id="9nh7f"></p><noframes id="9nh7f"></noframes><ol id="9nh7f"><ol id="9nh7f"></ol></ol><track id="9nh7f"></track> <track id="9nh7f"></track><mark id="9nh7f"><mark id="9nh7f"><ins id="9nh7f"><output id="9nh7f"></output></ins></mark></mark><video id="9nh7f"></video><em id="9nh7f"><noframes id="9nh7f"></noframes></em><rp id="9nh7f"></rp><p id="9nh7f"></p><address id="9nh7f"><address id="9nh7f"></address></address><ins id="9nh7f"><output id="9nh7f"></output></ins><ol id="9nh7f"><ol id="9nh7f"><dl id="9nh7f"><pre id="9nh7f"></pre></dl></ol></ol><delect id="9nh7f"></delect><dl id="9nh7f"><p id="9nh7f"><em id="9nh7f"><em id="9nh7f"></em></em></p></dl><menuitem id="9nh7f"></menuitem><address id="9nh7f"></address><i id="9nh7f"><output id="9nh7f"></output></i><form id="9nh7f"><form id="9nh7f"><address id="9nh7f"><sub id="9nh7f"></sub></address></form></form><font id="9nh7f"><font id="9nh7f"><cite id="9nh7f"><b id="9nh7f"></b></cite></font></font><ruby id="9nh7f"><ol id="9nh7f"><dl id="9nh7f"><pre id="9nh7f"></pre></dl></ol></ruby><noframes id="9nh7f"><noframes id="9nh7f"><big id="9nh7f"><progress id="9nh7f"></progress></big></noframes></noframes><i id="9nh7f"><output id="9nh7f"></output></i><meter id="9nh7f"></meter><big id="9nh7f"><nobr id="9nh7f"><nobr id="9nh7f"><dfn id="9nh7f"></dfn></nobr></nobr></big><address id="9nh7f"><thead id="9nh7f"></thead></address><meter id="9nh7f"></meter><ruby id="9nh7f"></ruby><font id="9nh7f"><font id="9nh7f"><b id="9nh7f"><b id="9nh7f"></b></b></font></font><track id="9nh7f"></track><output id="9nh7f"></output><output id="9nh7f"><output id="9nh7f"><ruby id="9nh7f"><rp id="9nh7f"></rp></ruby></output></output><output id="9nh7f"><del id="9nh7f"></del></output><track id="9nh7f"><track id="9nh7f"><th id="9nh7f"><nobr id="9nh7f"></nobr></th></track></track><listing id="9nh7f"><listing id="9nh7f"></listing></listing><p id="9nh7f"><ruby id="9nh7f"></ruby></p><em id="9nh7f"></em><progress id="9nh7f"></progress><pre id="9nh7f"></pre><b id="9nh7f"><output id="9nh7f"><ruby id="9nh7f"><rp id="9nh7f"></rp></ruby></output></b><output id="9nh7f"><output id="9nh7f"><ruby id="9nh7f"><rp id="9nh7f"></rp></ruby></output></output><noframes id="9nh7f"><big id="9nh7f"><progress id="9nh7f"><meter id="9nh7f"></meter></progress></big></noframes><span id="9nh7f"><span id="9nh7f"><address id="9nh7f"><sub id="9nh7f"></sub></address></span></span><var id="9nh7f"><delect id="9nh7f"><del id="9nh7f"><ol id="9nh7f"></ol></del></delect></var><em id="9nh7f"><noframes id="9nh7f"><big id="9nh7f"><meter id="9nh7f"></meter></big></noframes></em><sub id="9nh7f"><progress id="9nh7f"></progress></sub><font id="9nh7f"><b id="9nh7f"><i id="9nh7f"><strike id="9nh7f"></strike></i></b></font><ol id="9nh7f"><form id="9nh7f"><form id="9nh7f"><sub id="9nh7f"></sub></form></form></ol><menuitem id="9nh7f"><output id="9nh7f"><ruby id="9nh7f"><rp id="9nh7f"></rp></ruby></output></menuitem><progress id="9nh7f"></progress><delect id="9nh7f"></delect><dl id="9nh7f"><span id="9nh7f"><form id="9nh7f"><address id="9nh7f"></address></form></span></dl><output id="9nh7f"></output><track id="9nh7f"><nobr id="9nh7f"><listing id="9nh7f"><var id="9nh7f"></var></listing></nobr></track> <pre id="9nh7f"><form id="9nh7f"><sub id="9nh7f"><thead id="9nh7f"></thead></sub></form></pre><track id="9nh7f"></track><em id="9nh7f"><big id="9nh7f"><nobr id="9nh7f"><listing id="9nh7f"></listing></nobr></big></em><nobr id="9nh7f"></nobr><pre id="9nh7f"></pre><th id="9nh7f"><th id="9nh7f"></th></th><noframes id="9nh7f"><big id="9nh7f"><meter id="9nh7f"><dfn id="9nh7f"></dfn></meter></big></noframes><pre id="9nh7f"><pre id="9nh7f"></pre></pre><sub id="9nh7f"></sub><delect id="9nh7f"><del id="9nh7f"></del></delect><thead id="9nh7f"><font id="9nh7f"></font></thead><menuitem id="9nh7f"></menuitem><sub id="9nh7f"></sub><form id="9nh7f"><sub id="9nh7f"></sub></form><i id="9nh7f"><strike id="9nh7f"><em id="9nh7f"><noframes id="9nh7f"></noframes></em></strike></i><delect id="9nh7f"><del id="9nh7f"></del></delect><strike id="9nh7f"><em id="9nh7f"></em></strike><font id="9nh7f"><cite id="9nh7f"></cite></font><var id="9nh7f"></var><span id="9nh7f"><form id="9nh7f"></form></span><video id="9nh7f"><th id="9nh7f"><nobr id="9nh7f"><listing id="9nh7f"></listing></nobr></th></video><ol id="9nh7f"></ol><p id="9nh7f"></p><progress id="9nh7f"><meter id="9nh7f"></meter></progress><p id="9nh7f"><strike id="9nh7f"><em id="9nh7f"><big id="9nh7f"></big></em></strike></p><p id="9nh7f"><strike id="9nh7f"></strike></p><del id="9nh7f"><ol id="9nh7f"></ol></del><b id="9nh7f"><p id="9nh7f"><strike id="9nh7f"><em id="9nh7f"></em></strike></p></b><pre id="9nh7f"></pre><rp id="9nh7f"></rp><font id="9nh7f"><menuitem id="9nh7f"></menuitem></font><nobr id="9nh7f"></nobr><strike id="9nh7f"><noframes id="9nh7f"><big id="9nh7f"><meter id="9nh7f"></meter></big></noframes></strike><listing id="9nh7f"></listing><dl id="9nh7f"></dl><video id="9nh7f"><rp id="9nh7f"></rp></video><ruby id="9nh7f"><video id="9nh7f"><track id="9nh7f"><th id="9nh7f"></th></track></video></ruby><del id="9nh7f"><ol id="9nh7f"></ol></del><mark id="9nh7f"><mark id="9nh7f"></mark></mark><strike id="9nh7f"></strike><big id="9nh7f"><big id="9nh7f"><meter id="9nh7f"><menuitem id="9nh7f"></menuitem></meter></big></big><track id="9nh7f"><th id="9nh7f"><listing id="9nh7f"><listing id="9nh7f"></listing></listing></th></track><noframes id="9nh7f"></noframes><b id="9nh7f"><i id="9nh7f"></i></b><big id="9nh7f"><progress id="9nh7f"></progress></big><track id="9nh7f"><th id="9nh7f"><nobr id="9nh7f"><listing id="9nh7f"></listing></nobr></th></track><address id="9nh7f"><big id="9nh7f"><progress id="9nh7f"><meter id="9nh7f"></meter></progress></big></address><ol id="9nh7f"></ol><pre id="9nh7f"><pre id="9nh7f"></pre></pre><thead id="9nh7f"><thead id="9nh7f"></thead></thead></div> <div style="width:697px;height:550px;border:#ccc solid 1px;max-width:100%" id="dituContent"></div> <script type="text/javascript"> function getParam(name) { return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : ''; } var map, marker, markerArr; var titleParam = getParam('title'); var contentParam = getParam('content'); var centerParam = getParam('center'); var zoomParam = getParam('zoom'); var widthParam = getParam('width'); var heightParam = getParam('height'); var markersParam = getParam('markers'); var markerStylesParam = getParam('markerStyles'); titleParam = decodeURI(titleParam); contentParam = decodeURI(contentParam); //創建和初始化地圖函數?? function initMap() { // [FF]切換模式后報?? if (!window.BMap) { return; } var dituContent = document.getElementById('dituContent'); dituContent.style.width = widthParam + 'px'; dituContent.style.height = heightParam + 'px'; createMap();//創建地圖 setMapEvent();//設置地圖事件 addMapControl();//向地圖添加控?? // 創建標注 if (titleParam!="") { markerArr = [{ title: titleParam, content: contentParam, point: markersParam, isOpen: 1, icon: { w: 23, h: 25, l: 46, t: 21, x: 9, lb: 12 } }]; addMarker(markerArr); }else { markersArr = markersParam.split(','); var point = new BMap.Point(markersArr[0], markersArr[1]); marker = new BMap.Marker(point); //marker.enableDragging(); map.addOverlay(marker); // 將標注添加到地圖?? marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳動的動?? } document.focus(); } //創建地圖函數?? function createMap() { map = new BMap.Map("dituContent");//在百度地圖容器中創建一個地?? var centerArr = centerParam.split(','); var point = new BMap.Point(parseFloat(centerArr[0]), parseFloat(centerArr[1]));//定義一個中心點坐標 map.centerAndZoom(point, parseInt(zoomParam));//設定地圖的中心點和坐標并將地圖顯示在地圖容器?? } //地圖事件設置函數?? 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); } function addMarker(markerArr) { 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; } //創建一個Icon 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; } </script> <a href="http://www.maogg79.com/">俺也去网</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> </html>