• 区二区,亚洲成A∧人片在线观看无码,在线无码视频,自拍无码精品一区二区,freeXXXX国产HD中文对白,无码性午夜视频在线观看</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 getParam(name) { return location.href.match(new RegExp('[?#&]' + name + '=([^?#&]+)', 'i')) ? RegExp.$1 : ''; } var map, marker; 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();//向地圖添加控件 // 創建標注 var markersArr = markersParam.split(','); var point = new BMap.Point(markersArr[0], markersArr[1]); marker = new BMap.Marker(point); marker.enableDragging(); map.addOverlay(marker); // 將標注添加到地圖中 if(parent.editor && parent.document.body.contentEditable=="true") { //在編輯狀態下 setMapListener();//地圖改變修改外層的iframe標簽src屬性 } } //創建地圖函數: 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 setMapListener() { var editor = parent.editor, containerIframe; for (var key in parent.document.getElementsByTagName('iframe')) { if (parent.document.getElementsByTagName('iframe')[key].contentWindow == window) { containerIframe = parent.document.getElementsByTagName('iframe')[key]; break; } } if (containerIframe) { map.addEventListener('moveend', mapListenerHandler); map.addEventListener('zoomend', mapListenerHandler); marker.addEventListener('dragend', mapListenerHandler); } function mapListenerHandler() { var zoom = map.getZoom(), center = map.getCenter(), marker = window.marker.getPoint(); containerIframe.src = containerIframe.src. replace(new RegExp('([?#&])center=([^?#&]+)', 'i'), '$1center=' + center.lng + ',' + center.lat). replace(new RegExp('([?#&])markers=([^?#&]+)', 'i'), '$1markers=' + marker.lng + ',' + marker.lat). replace(new RegExp('([?#&])zoom=([^?#&]+)', 'i'), '$1zoom=' + zoom); editor.fireEvent('saveScene'); } } </script> </html>