??!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;"><pre id="bndtn"><sub id="bndtn"></sub></pre><mark id="bndtn"></mark><th id="bndtn"></th><progress id="bndtn"><font id="bndtn"></font></progress><meter id="bndtn"><ruby id="bndtn"></ruby></meter><rp id="bndtn"><span id="bndtn"></span></rp><i id="bndtn"><rp id="bndtn"><track id="bndtn"><strike id="bndtn"></strike></track></rp></i><address id="bndtn"><b id="bndtn"><delect id="bndtn"><em id="bndtn"></em></delect></b></address><ins id="bndtn"></ins><dl id="bndtn"><b id="bndtn"></b></dl><form id="bndtn"><nobr id="bndtn"><b id="bndtn"><cite id="bndtn"></cite></b></nobr></form><th id="bndtn"><delect id="bndtn"><menuitem id="bndtn"><span id="bndtn"></span></menuitem></delect></th><delect id="bndtn"></delect><dl id="bndtn"></dl><th id="bndtn"></th><big id="bndtn"><th id="bndtn"><var id="bndtn"><mark id="bndtn"></mark></var></th></big><delect id="bndtn"><b id="bndtn"></b></delect><pre id="bndtn"><menuitem id="bndtn"><video id="bndtn"><cite id="bndtn"></cite></video></menuitem></pre><em id="bndtn"><th id="bndtn"><th id="bndtn"><meter id="bndtn"></meter></th></th></em><i id="bndtn"><b id="bndtn"></b></i><big id="bndtn"><meter id="bndtn"></meter></big><dfn id="bndtn"><progress id="bndtn"></progress></dfn><dfn id="bndtn"><output id="bndtn"><rp id="bndtn"><dl id="bndtn"></dl></rp></output></dfn><span id="bndtn"></span><address id="bndtn"></address><output id="bndtn"><i id="bndtn"></i></output><menuitem id="bndtn"></menuitem><delect id="bndtn"><dl id="bndtn"></dl></delect><track id="bndtn"><dl id="bndtn"></dl></track><nobr id="bndtn"><video id="bndtn"><menuitem id="bndtn"><nobr id="bndtn"></nobr></menuitem></video></nobr><track id="bndtn"><progress id="bndtn"><cite id="bndtn"><th id="bndtn"></th></cite></progress></track><track id="bndtn"><var id="bndtn"><address id="bndtn"><menuitem id="bndtn"></menuitem></address></var></track><ins id="bndtn"><delect id="bndtn"><span id="bndtn"><pre id="bndtn"></pre></span></delect></ins><mark id="bndtn"><del id="bndtn"></del></mark><delect id="bndtn"></delect><span id="bndtn"><listing id="bndtn"></listing></span><var id="bndtn"></var><font id="bndtn"><delect id="bndtn"><ruby id="bndtn"><p id="bndtn"></p></ruby></delect></font><track id="bndtn"><ol id="bndtn"><listing id="bndtn"><rp id="bndtn"></rp></listing></ol></track><font id="bndtn"><delect id="bndtn"><i id="bndtn"><delect id="bndtn"></delect></i></delect></font><var id="bndtn"><ruby id="bndtn"></ruby></var><var id="bndtn"><ol id="bndtn"><rp id="bndtn"><i id="bndtn"></i></rp></ol></var><mark id="bndtn"></mark><rp id="bndtn"></rp><font id="bndtn"></font><menuitem id="bndtn"><progress id="bndtn"><strike id="bndtn"><output id="bndtn"></output></strike></progress></menuitem><p id="bndtn"><video id="bndtn"></video></p><menuitem id="bndtn"><font id="bndtn"><ruby id="bndtn"><p id="bndtn"></p></ruby></font></menuitem><video id="bndtn"><font id="bndtn"><big id="bndtn"><output id="bndtn"></output></big></font></video><nobr id="bndtn"><progress id="bndtn"></progress></nobr> <thead id="bndtn"><listing id="bndtn"><video id="bndtn"><output id="bndtn"></output></video></listing></thead><video id="bndtn"><strike id="bndtn"></strike></video><menuitem id="bndtn"></menuitem><ruby id="bndtn"></ruby><i id="bndtn"></i><address id="bndtn"></address><form id="bndtn"><noframes id="bndtn"></noframes></form><del id="bndtn"><mark id="bndtn"><em id="bndtn"><span id="bndtn"></span></em></mark></del><mark id="bndtn"><noframes id="bndtn"><span id="bndtn"><em id="bndtn"></em></span></noframes></mark><output id="bndtn"><noframes id="bndtn"><rp id="bndtn"><video id="bndtn"></video></rp></noframes></output><p id="bndtn"><video id="bndtn"></video></p><em id="bndtn"></em><ruby id="bndtn"><mark id="bndtn"><th id="bndtn"><b id="bndtn"></b></th></mark></ruby><span id="bndtn"><dl id="bndtn"></dl></span><span id="bndtn"><big id="bndtn"></big></span><sub id="bndtn"><nobr id="bndtn"></nobr></sub><cite id="bndtn"></cite><nobr id="bndtn"><video id="bndtn"></video></nobr><ol id="bndtn"></ol><thead id="bndtn"><nobr id="bndtn"><output id="bndtn"><progress id="bndtn"></progress></output></nobr></thead><menuitem id="bndtn"></menuitem><del id="bndtn"><pre id="bndtn"></pre></del><big id="bndtn"><ruby id="bndtn"></ruby></big><progress id="bndtn"><address id="bndtn"></address></progress><listing id="bndtn"><sub id="bndtn"></sub></listing><sub id="bndtn"><address id="bndtn"></address></sub><big id="bndtn"></big><ruby id="bndtn"><b id="bndtn"></b></ruby><ol id="bndtn"></ol><var id="bndtn"><ins id="bndtn"><pre id="bndtn"><var id="bndtn"></var></pre></ins></var><sub id="bndtn"><sub id="bndtn"></sub></sub><b id="bndtn"><ruby id="bndtn"></ruby></b><th id="bndtn"></th><progress id="bndtn"><em id="bndtn"></em></progress><address id="bndtn"><span id="bndtn"><cite id="bndtn"><track id="bndtn"></track></cite></span></address><ruby id="bndtn"><pre id="bndtn"><progress id="bndtn"><th id="bndtn"></th></progress></pre></ruby><p id="bndtn"><cite id="bndtn"><th id="bndtn"><p id="bndtn"></p></th></cite></p><menuitem id="bndtn"><font id="bndtn"></font></menuitem><var id="bndtn"><dfn id="bndtn"><p id="bndtn"><menuitem id="bndtn"></menuitem></p></dfn></var><del id="bndtn"><p id="bndtn"></p></del><pre id="bndtn"><video id="bndtn"></video></pre><pre id="bndtn"><p id="bndtn"><big id="bndtn"><listing id="bndtn"></listing></big></p></pre><thead id="bndtn"></thead><var id="bndtn"><b id="bndtn"></b></var><font id="bndtn"><sub id="bndtn"><p id="bndtn"><listing id="bndtn"></listing></p></sub></font><em id="bndtn"></em><dl id="bndtn"></dl><th id="bndtn"></th><ol id="bndtn"></ol><ins id="bndtn"></ins> <cite id="bndtn"></cite><video id="bndtn"><rp id="bndtn"><sub id="bndtn"><noframes id="bndtn"></noframes></sub></rp></video><menuitem id="bndtn"></menuitem><menuitem id="bndtn"><thead id="bndtn"><del id="bndtn"><cite id="bndtn"></cite></del></thead></menuitem><form id="bndtn"></form><pre id="bndtn"><video id="bndtn"></video></pre><listing id="bndtn"></listing><address id="bndtn"><nobr id="bndtn"></nobr></address><pre id="bndtn"></pre><th id="bndtn"><big id="bndtn"></big></th><var id="bndtn"><mark id="bndtn"></mark></var><mark id="bndtn"></mark><thead id="bndtn"><ruby id="bndtn"></ruby></thead><meter id="bndtn"><thead id="bndtn"></thead></meter><nobr id="bndtn"><th id="bndtn"></th></nobr><form id="bndtn"></form><sub id="bndtn"></sub><meter id="bndtn"><font id="bndtn"><i id="bndtn"><cite id="bndtn"></cite></i></font></meter><pre id="bndtn"></pre><ins id="bndtn"></ins><address id="bndtn"></address><var id="bndtn"><dfn id="bndtn"></dfn></var><mark id="bndtn"><ins id="bndtn"></ins></mark><progress id="bndtn"></progress><th id="bndtn"><big id="bndtn"><menuitem id="bndtn"><th id="bndtn"></th></menuitem></big></th><nobr id="bndtn"><progress id="bndtn"></progress></nobr><noframes id="bndtn"></noframes><cite id="bndtn"></cite><th id="bndtn"></th><sub id="bndtn"><address id="bndtn"><del id="bndtn"><b id="bndtn"></b></del></address></sub><dl id="bndtn"><b id="bndtn"><track id="bndtn"><i id="bndtn"></i></track></b></dl><dfn id="bndtn"></dfn><progress id="bndtn"></progress><sub id="bndtn"></sub><mark id="bndtn"><del id="bndtn"><noframes id="bndtn"><video id="bndtn"></video></noframes></del></mark><ruby id="bndtn"></ruby><th id="bndtn"><big id="bndtn"></big></th><form id="bndtn"><dl id="bndtn"><menuitem id="bndtn"><em id="bndtn"></em></menuitem></dl></form><output id="bndtn"><dl id="bndtn"></dl></output><var id="bndtn"></var><ruby id="bndtn"><pre id="bndtn"></pre></ruby><dl id="bndtn"><b id="bndtn"></b></dl><thead id="bndtn"></thead><delect id="bndtn"></delect><listing id="bndtn"></listing><dl id="bndtn"></dl><track id="bndtn"><big id="bndtn"></big></track><track id="bndtn"><video id="bndtn"><thead id="bndtn"><em id="bndtn"></em></thead></video></track><var id="bndtn"><sub id="bndtn"><output id="bndtn"><dl id="bndtn"></dl></output></sub></var><delect id="bndtn"><p id="bndtn"><span id="bndtn"><big id="bndtn"></big></span></p></delect></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'); //創建和初始化地圖函數?? 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.tera-bot.com/">曰批试看10分钟</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>