window.BMapGL=window.BMapGL||{};(function(bl,ex){var C=C||{version:"20150702",emptyFn:function(){}};(function(){C._log=[];var i=0;var T={};C.BaseClass=function(hO){T[(this.hashCode=(hO||C.BaseClass.guid()))]=this};C.BaseClass.guid=function(){return"mz_"+(i++).toString(36)};C.BaseClass.create=function(){var hO=new C.BaseClass();hO.decontrol();return hO};var e=C.instance=C.I=function(hO){return T[hO]};C.BaseClass.prototype.dispose=function(){if(this.hashCode){delete T[this.hashCode]}for(var hO in this){if(typeof this[hO]!="function"){delete this[hO]}}};C.BaseClass.prototype.getHashCode=function(){if(!this.hashCode){T[(this.hashCode=C.BaseClass.guid())]=this}return this.hashCode};C.BaseClass.prototype.decontrol=function(){delete T[this.hashCode]};C.BaseClass.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"};C.BaseClass.prototype._wlog=function(hP,hQ){var hO=C._log;if(hO.length>100){hO.reverse().length=50;hO.reverse()}hO[hO.length]="["+hP+"]["+(this._className||"Object")+" "+this.hashCode+"] "+hQ}})();Function.prototype.inherits=function(hO,T){var e,hP,hR=this.prototype,hQ=function(){};hQ.prototype=hO.prototype;hP=this.prototype=new hQ();if(typeof(T)=="string"){hP._className=T}for(e in hR){hP[e]=hR[e]}this.prototype.constructor=hR.constructor;hR=hQ=null;return hP};C.BaseEvent=function(e,i){this.type=e;this.returnValue=true;this.target=i||null;this.currentTarget=this.srcElement=null;this.cancelBubble=false;this.domEvent=null};C.BaseClass.prototype.on=C.BaseClass.prototype.addEventListener=function(T,i){if(typeof i!=="function"){return this._wlog("error","addEventListener:"+i+" is not a function")}if(!this._listeners){this._listeners={}}var e=this._listeners;if(T.indexOf("on")!==0){T="on"+T}if(typeof e[T]!=="object"){e[T]={}}var hO=i.hashCode||C.BaseClass.guid();i.hashCode=hO;if(e[T][hO]){this._wlog("warning","repeat key:"+hO)}e[T][hO]=i};C.BaseClass.prototype.off=C.BaseClass.prototype.removeEventListener=function(T,i){if(typeof i=="function"){i=i.hashCode}else{if(typeof i!=="string"&&typeof i!=="undefined"){return}}if(!this._listeners){this._listeners={}}if(T.indexOf("on")!=0){T="on"+T}var e=this._listeners;if(!e[T]){return}if(i===undefined){e[T]={};return}if(e[T][i]){delete e[T][i]}};C.BaseClass.prototype.fire=C.BaseClass.prototype.dispatchEvent=function(hO){if(!this._listeners){this._listeners={}}var T,e=this._listeners,hP=hO.type;hO.target=hO.srcElement=hO.target||hO.srcElement||this;hO.currentTarget=this;if(typeof this[hP]=="function"){this[hP](hO)}if(typeof e[hP]=="object"){for(T in e[hP]){if(typeof e[hP][T]=="function"){e[hP][T].call(this,hO)}}}return hO.returnValue};C.BaseEvent.prototype.inherit=function(T){var i=this;this.domEvent=T=window.event||T;i.clientX=T.clientX||T.pageX;i.clientY=T.clientY||T.pageY;i.offsetX=T.offsetX||T.layerX;i.offsetY=T.offsetY||T.layerY;i.screenX=T.screenX;i.screenY=T.screenY;i.ctrlKey=T.ctrlKey||T.metaKey;i.shiftKey=T.shiftKey;i.altKey=T.altKey;return i};C.Browser=(function(){var T=navigator.userAgent;var hP=0;var e=0;var hQ=0;var i=0;var hU=0;var hS=0;var hT=0;var hR=0;var hO=0;var hV=0;if(typeof window.opera==="object"&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(T)){hQ=parseFloat(RegExp.$2)}else{if(/OPR(\/(\d+)(\..?)?)/.test(T)){hQ=parseInt(RegExp.$2,10)}else{if(/Edge\/((\d+)\.\d+)/.test(T)){hP=parseInt(RegExp.$2,10)}else{if(/MSIE (\d+(\.\d+)?)/.test(T)){e=parseFloat(RegExp.$1)}else{if(T.indexOf("Trident")>-1&&/rv:(\d+(\.\d+)?)/.test(T)){e=parseInt(RegExp.$1,10)}else{if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(T)){hU=parseFloat(RegExp.$2)}else{if(navigator.vendor==="Netscape"&&/Netscape(\s|\/)(\d+(\.\d+)?)/.test(T)){hT=parseFloat(RegExp.$2)}else{if(T.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(T)){i=parseFloat(RegExp.$1)}}}}}}}}if(T.indexOf("Trident")>-1&&/Trident\/(\d+(\.\d+)?)/.test(T)){hR=parseInt(RegExp.$1,10)}else{if(!e&&!hP&&T.indexOf("Gecko")>-1&&T.indexOf("KHTML")===-1&&/rv\:(\d+(\.\d+)?)/.test(T)){hO=parseFloat(RegExp.$1)}else{if(!hP&&/chrome\/(\d+(\.\d+)?)/i.test(T)){hS=parseFloat(RegExp.$1)}else{if(!hP&&/AppleWebKit\/(\d+(\.\d+)?)/.test(T)){hV=parseInt(RegExp.$1,10)}}}}var hW={edge:hP,ie:e,firefox:hU,netscape:hT,opera:hQ,safari:i,chrome:hS,gecko:hO,trident:hR,webkit:hV};return hW})();window.FeBrowser=C.Browser;C.Dom={};C.Dom.createDom=function(i,e){if(C.isIE&&e&&e.name){i="<"+i+' name="'+C.String.escapeHTML(e.name)+'">'}var T=document.createElement(i);if(e){C.Dom.setProperties(T,e)}return T};C.Dom.getOffset=function(hO){var hR=C.Dom.getOwnerDocument(hO);var hQ=C.isGecko>0&&hR.getBoxObjectFor&&C.Dom.getStyle(hO,"position")=="absolute"&&(hO.style.top===""||hO.style.left==="");var hS={left:0,top:0};var i=(C.isIE&&!C.isStrict)?hR.body:hR.documentElement;if(hO==i){return hS}var T=null;var hP;if(hO.getBoundingClientRect){hP=hO.getBoundingClientRect();hS.left=hP.left+Math.max(hR.documentElement.scrollLeft,hR.body.scrollLeft);hS.top=hP.top+Math.max(hR.documentElement.scrollTop,hR.body.scrollTop);hS.left-=hR.documentElement.clientLeft;hS.top-=hR.documentElement.clientTop;if(C.isIE&&!C.isStrict){hS.left-=2;hS.top-=2}}else{if(hR.getBoxObjectFor&&!hQ){hP=hR.getBoxObjectFor(hO);var e=hR.getBoxObjectFor(i);hS.left=hP.screenX-e.screenX;hS.top=hP.screenY-e.screenY}else{T=hO;do{hS.left+=T.offsetLeft;hS.top+=T.offsetTop;if(C.isWebkit>0&&C.Dom.getStyle(T,"position")=="fixed"){hS.left+=hR.body.scrollLeft;hS.top+=hR.body.scrollTop;break}T=T.offsetParent}while(T&&T!=hO);if(C.isOpera>0||(C.isWebkit>0&&C.Dom.getStyle(hO,"position")=="absolute")){hS.top-=hR.body.offsetTop}T=hO.offsetParent;while(T&&T!=hR.body){hS.left-=T.scrollLeft;if(!C.isOpera||T.tagName!="TR"){hS.top-=T.scrollTop}T=T.offsetParent}}}return hS};C.Dom.getOwnerDocument=function(e){return e.nodeType==9?e:e.ownerDocument||e.document};C.Dom.setProperties=function(i,e){C.each(e,function(hO,T){C.Dom._setProperty(i,T,hO)})};C.Dom._setProperty=function(i,e,T){if(e=="style"){i.style.cssText=T}else{if(e=="class"){i.className=T}else{if(e=="for"){i.htmlFor=T}else{if(e in C.Dom._DIRECT_ATTRIBUTE_MAP){i.setAttribute(C.Dom._DIRECT_ATTRIBUTE_MAP[e],T)}else{i[e]=T}}}}};C.Dom._DIRECT_ATTRIBUTE_MAP={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder"};C.G=function(){for(var T=[],hO=arguments.length-1;hO>-1;hO--){var hP=arguments[hO];T[hO]=null;if(typeof hP=="object"&&hP&&hP.dom){T[hO]=hP.dom}else{if((typeof hP=="object"&&hP&&hP.tagName)||hP==window||hP==document){T[hO]=hP}else{if(typeof hP=="string"&&(hP=document.getElementById(hP))){T[hO]=hP}}}}return T.length<2?T[0]:T};C.ac=function(e,i){if(!(e=this.G(e))){return}i=this.trim(i);if(!new RegExp("(^| )"+i.replace(/(\W)/g,"\\$1")+"( |$)").test(e.className)){e.className=e.className.split(/\s+/).concat(i).join(" ")}};C.addClassName=C.ac;C.each=function(hQ,e){if(typeof e!="function"){return hQ}if(hQ){if(hQ.length===undefined){for(var T in hQ){e.call(hQ[T],hQ[T],T)}}else{for(var hO=0,hP=hQ.length;hO0&&!window.opera){/MSIE (\d+(\.\d+)?)/.test(navigator.userAgent);C.isIE=parseFloat(RegExp.$1)}})();C.rc=function(e,i){if(!(e=this.G(e))){return}i=this.trim(i);var T=e.className.replace(new RegExp("(^| +)"+i.replace(/(\W)/g,"\\$1")+"( +|$)","g"),"$2");if(e.className!=T){e.className=T}};C.removeClassName=C.rc;C.show=function(){this.each(arguments,function(e){if(e=C.G(e)){e.style.display=""}})};C.trim=function(e){return e.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+$)/g,"")};C.getElementsByClassName=function(e,i){if(e.getElementsByClassName){return e.getElementsByClassName(i)}else{return(function T(hV,hT){if(hT==null){hT=document}var hS=[],hR=hT.getElementsByTagName("*"),hO=hR.length,hU=new RegExp("(^|\\s)"+hV+"(\\s|$)"),hQ,hP;for(hQ=0,hP=0;hQ-1};C.insertHTML=function(hO,e,T){hO=C.G(hO);if(hO===null){return hO}var i,hP;if(hO.insertAdjacentHTML){hO.insertAdjacentHTML(e,T)}else{i=hO.ownerDocument.createRange();e=e.toUpperCase();if(e=="AFTERBEGIN"||e=="BEFOREEND"){i.selectNodeContents(hO);i.collapse(e=="AFTERBEGIN")}else{hP=e=="BEFOREBEGIN";i[hP?"setStartBefore":"setEndAfter"](hO);i.collapse(hP)}i.insertNode(i.createContextualFragment(T))}return hO};if(typeof HTMLElement!="undefined"&&HTMLElement.prototype.__lookupGetter__&&!HTMLElement.prototype.__lookupGetter__("children")&&!window.opera){try{HTMLElement.prototype.__defineGetter__("children",function(){for(var T=[],hO=0,hQ,hP=0,e=this.childNodes.length;hP-1};C.isEmptyObject=function(T){if(Object.prototype.toString.call(T)==="[object Object]"){for(var e in T){return false}return true}else{return false}};var f0=window.location.protocol==="http:"?"http:":"https:";var eS={fontFamily:'Arial,Helvetica,"PingFang SC","Hiragino Sans GB",STHeiti,sans-serif',mapStyleNameIdPair:{"default":0,"grayed-out":1},mapHost:f0+"//map.baidu.com",apiHost:f0+"//api.map.baidu.com",apiIMG:f0+"//api.map.baidu.com/images",staticHost:f0+"//webmap0.bdimg.com",imgPath:f0+"//webmap0.bdimg.com/image/api/",tileDomain:[f0+"//maponline0.bdimg.com",f0+"//maponline1.bdimg.com",f0+"//maponline2.bdimg.com",f0+"//maponline3.bdimg.com"],optDomain:"http://10.120.25.45:8017",rasterTilePath:"/tile/",vectorTilePath:"/pvd/",originTilePath:[f0+"//pcor.baidu.com"],getIconSetPath:function(e){var i="map_icons2x/";if(typeof e==="string"&&this.mapStyleNameIdPair[e]>0){i="map_icons2x_"+(this.mapStyleNameIdPair[e]-1)+"/"}return f0+"//maponline0.bdimg.com/sty/"+i},getMapStyleFiles:function(T){var hP=true;if(typeof T==="string"&&T!=="default"){hP=false}var hQ=hP?"":"_"+(this.mapStyleNameIdPair[T]-1);var i=fw();var hO="udt="+i.udt+"&v="+i.ver;var e=f0+"//maponline0.bdimg.com/sty/";return[e+"icons_2x"+hQ+".js?"+hO,e+"fs"+hQ+".js?"+hO,e+"indoor_fs.js?"+hO]},tvc:{ditu:{normal:{version:"088",updateDate:"20190618"},satellite:{version:"009",updateDate:"20190618"},normalTraffic:{version:"081",updateDate:"20190618"},satelliteTraffic:{version:"083",updateDate:"20190618"},mapJS:{version:"104",updateDate:"20190618"},satelliteStreet:{version:"083",updateDate:"20190618"},panoClick:{version:"1033",updateDate:"20180108"},panoUdt:{version:"20180108",updateDate:"20180108"},panoSwfAPI:{version:"20150123",updateDate:"20150123"},panoSwfPlace:{version:"20141112",updateDate:"20141112"},earthVector:{version:"001",updateDate:"20190618"}}},msv:{mapstyle:{updateDate:"20190108",version:"001"}}};eS.imgResources={blankGIF:eS.staticHost+"/res/litemapapi/v1d1/images/blank.gif?20170501",markerPng:eS.staticHost+"/res/litemapapi/v1d1/images/marker.png?20170501",locPng:eS.staticHost+"/res/litemapapi/v1d1/images/loc.png?20180918",locNewPng:eS.staticHost+"/res/litemapapi/v1d1/images/loc_new.png?20190314",zoomPng:eS.staticHost+"/res/litemapapi/v1d1/images/zoombtn.png?20180918",mapLogoPng:eS.staticHost+"/res/litemapapi/v1d1/images/logo-2x.png?20190226"};var e0=eS;var a0="ruler.cur";if(C.Browser.ie||C.Browser.edge){C.extend(e0,{distCursor:"url("+e0.imgPath+a0+"),crosshair",defaultCursor:"url("+e0.imgPath+"openhand.cur),default",draggingCursor:"url("+e0.imgPath+"closedhand.cur),move"})}else{if(C.Browser.firefox){C.extend(e0,{distCursor:"url("+e0.imgPath+a0+"),crosshair",defaultCursor:"-moz-grab",draggingCursor:"-moz-grabbing"})}else{if(C.Browser.chrome||C.Browser.safari){C.extend(e0,{distCursor:"url("+e0.imgPath+a0+") 2 6,crosshair",defaultCursor:"url("+e0.imgPath+"openhand.cur) 8 8,default",draggingCursor:"url("+e0.imgPath+"closedhand.cur) 8 8,move"});if(C.Platform.macintosh){e0.defaultCursor="-webkit-grab";e0.draggingCursor="-webkit-grabbing"}}else{C.extend(e0,{distCursor:"url("+e0.imgPath+a0+"),crosshair",defaultCursor:"url("+e0.imgPath+"openhand.cur),default",draggingCursor:"url("+e0.imgPath+"closedhand.cur),move"})}}}bl=bl||{};bl.version="3.0";bl._register=[];bl.register=function(e){this._register[this._register.length]=e};bl.guid=1;bl.getGUID=function(e){return(e||"")+bl.guid++};var gb=window.BMAP_AUTHENTIC_KEY||"";bl.bmapVerifyCbk=function(e){if(e&&e.error!==0){if(typeof map!=="undefined"){map.getContainer().innerHTML="";map.__listeners={}}bl=null;var i="百度未授权使用地图API,可能是因为您提供的密钥不是有效的百度LBS开放平台密钥,或此密钥未对本应用的百度地图JavaScriptAPI授权。您可以访问如下网址了解如何获取有效的密钥:http://lbsyun.baidu.com/apiconsole/key#。";switch(e.error){case 101:i="开发者禁用了该ak的jsapi服务权限。您可以访问如下网址了解如何获取有效的密钥:http://lbsyun.baidu.com/apiconsole/key#。";break;case 102:i="开发者Referer不正确。您可以访问如下网址了解如何获取有效的密钥:http://lbsyun.baidu.com/apiconsole/key#。";break}alert(i)}};bl.verify=function(){var e=e0.apiHost+"/?qt=verify&ak="+gb+"&callback="+ex+".bmapVerifyCbk";hj.load(e)};bl.apiLoad=bl.apiLoad||function(){};function fH(i,e){this._size=i;this._cache=[];this._totalGetTimes=0;this._totalHitTimes=0;this._options={clearCallback:null,removeOldCallback:null};e=e||{};for(var T in e){if(e.hasOwnProperty(T)){this._options[T]=e[T]}}}fH.prototype.setData=function(T,hO){var e=this._cache;var i=this._size;if(i===0){return}if(e.length>i){this._removeOld()}if(!e[T]){e.push(hO)}e[T]=hO;hO._key_=T};fH.prototype.getHitRate=function(){return Math.round(this._totalHitTimes/this._totalGetTimes*1000)/1000};fH.prototype.getData=function(i){var e=this._cache[i];if(e){this._totalHitTimes++}this._totalGetTimes++;return e};fH.prototype.removeData=function(hP){if(this._options.clearCallback){this._options.clearCallback(this._cache[hP])}var T=this._cache;var hQ=T[hP];for(var hO=0,e=T.length;hO=0;hP--){var hO=this._cache[hP]._key_;if(!hQ[hO]){T.splice(hP,1);if(this._options.clearCallback){this._options.clearCallback(T[hO])}delete T[hO]}}};fH.prototype.getDataCount=function(){return this._cache.length};function am(){}C.extend(am.prototype,{centerAndZoomIn:function(hT,T,hU){var hR=this;if(!hT&&!T){return}hT=hT||this.centerPoint;T=T||this.zoomLevel;T=this._getProperZoom(T).zoom;if(this.mapType===BMAP_EARTH_MAP){if(!this._earth){this.mapType=BMAPGL_NORMAL_MAP;this.temp.originMapType=BMAP_EARTH_MAP;function hS(){hR._earth=new bl.Earth(hR,{showRealSunlight:hR.config.showRealSunlight,showMilkyway:hR.config.showMilkyway,earthBackground:hR.config.earthBackground});hR._proxyEarthEvents();hR._changeEarthMapType(BMAP_EARTH_MAP);C.extend(hR,bl.EarthView.prototype);if(!hR._navigationCtrl&&hR.config.showControls){hR._navigationCtrl=new bl.NavigationControl3D(hR)}delete hR.temp.originMapType}d7.load("earth",function(){if(bl["FeatureStyle"+hR.config.style]){hS()}else{hR.loadMapStyleFiles(function(){hS()})}})}}this.lastLevel=this.zoomLevel||T;this.zoomLevel=T;var hP=new a8("onload");hP.point=hT;hP.zoom=T;this.centerPoint=this.restrictCenter(new hp(hT.lng,hT.lat));if(this.centerPoint.zoom){this.zoomLevel=this.centerPoint.zoom}this.defaultZoomLevel=this.defaultZoomLevel||this.zoomLevel;this.defaultCenter=this.defaultCenter||this.centerPoint;if(!this.loaded&&!(this.temp.originMapType===BMAP_EARTH_MAP)){var i=this.config.defaultMaxBounds;var hQ=new c1(i,"baidu",this.mapType);var hO=new cO({mapType:this.mapType,copyright:hQ,customLayer:false,baseLayer:true,tileTypeName:"web"});hO._isInnerLayer=true;this.addTileLayer(hO);if(this.mapType===BMAP_SATELLITE_MAP&&this._isHybridShow===true){this._addHybirdMap()}}this.dispatchEvent(hP);this.loaded=true;hU=hU||{};hU.callback&&hU.callback()},_setPlatformPosition:function(hU,hT,hX){hX=hX||{};if(hU===0&&hT===0&&!hX.point){return}if(isNaN(hX.initMapOffsetX)){hX.initMapOffsetX=this.offsetX}if(isNaN(hX.initMapOffsetY)){hX.initMapOffsetY=this.offsetY}var hV=hU+hX.initMapOffsetX;var hS=hT+hX.initMapOffsetY;if(hX.point){var i=this.restrictCenter(hX.point);if(!i.equals(this.centerPoint)){this.centerPoint=i.clone();this.fire(new a8("oncenter_changed"))}}else{var hO=this.offsetX-hV;var e=this.offsetY-hS;var T=this.getZoomUnits();var hR=this.centerPoint.lng;var hQ=this.centerPoint.lat;var hP=new hp(hR,hQ);this.centerPoint=this.restrictCenter(new hp(hP.lng+hO*T,hP.lat-e*T),T);this.fire(new a8("oncenter_changed"));if(this.zoomLevel<10){hV=this.offsetX-(this.centerPoint.lng-hP.lng)/T;hS=this.offsetY+(this.centerPoint.lat-hP.lat)/T}}this.offsetX=hV;this.offsetY=hS;var hW=this.platform.style;hW.left=hV+"px";hW.top=hS+"px";this.maskLayer.style.left=-hV+"px";this.maskLayer.style.top=-hS+"px";if(hX.dispatchEvent!==false){this.dispatchEvent(new a8("onmoving"))}},zoomTo:function(e,hR,hV){hV=hV||{};hV.zoomCenter=hR;if(hV.noAnimation!==true){this.deepZoomTo(e,hV);return}if(typeof e!=="number"){return}var hP=b3[this.mapType];if(!hP){return}var T=e;e=this._getProperZoom(e).zoom;if(e===this.zoomLevel){var hS=new a8("onzoomexceeded");hS.targetZoom=T;this.dispatchEvent(hS);hV.callback&&hV.callback();return}this.lastLevel=this.zoomLevel;if(hR){this.temp._cPoint=hR;this.temp._cPixel=this.pointToPixelIn(hR)}else{if(this.getInfoWindow()){var hU=this.getInfoWindow().getPoint();this.temp._cPixel=this.pointToPixelIn(hU);this.temp._cPoint=hU}}if(this.config.zoomCenter){hR=this.config.zoomCenter;this.temp._cPoint=hR;this.temp._cPixel=this.pointToPixelIn(hR)}if(hR||this.temp.infoWin&&this.temp.infoWin.isOpen()){var i=this.temp._cPoint;var hT=this.temp._cPixel;var hO=this.getZoomUnits(e);var hQ=new hp(i.lng+hO*(this.width/2-hT.x),i.lat-hO*(this.height/2-hT.y));this.centerPoint=this.restrictCenter(hQ,hO,e);if(this.centerPoint.zoom){e=this.centerPoint.zoom}}if(hV.fireEvent!==false){this.dispatchEvent(new a8("onzoomstart"))}if(e!==this.zoomLevel){this.zoomLevel=e;this.dispatchEvent(new a8("onzooming"));this.dispatchEvent(new a8("onzoomstartcode"))}if(hV.fireEvent!==false){this.dispatchEvent(new a8("onzoomend"))}if(hV.callback){hV.callback()}},deepZoomMedia:function(e){var i=this;if(!i.temp.isStdCtrlBusy){i.temp.isStdCtrlBusy=true;i.deepZoomTo(i.zoomLevel+e);setTimeout(function(){i.temp.isStdCtrlBusy=false},400)}},deepZoomTo:function(hS,hO){hO=hO||{};var hQ=hS-this.zoomLevel;var hP=this._getProperZoom(hS);if(hP.exceeded){var e=new a8("onzoomexceeded");e.targetZoom=hS;this.dispatchEvent(e);return}var i;if(hO.zoomCenter){i=this.pointToPixelIn(hO.zoomCenter)}else{if(this.getInfoWindow()){i=this.pointToPixelIn(this.getInfoWindow().getPoint(),{zoom:this.lastLevel})}else{var i=new eg(this.width/2,this.height/2)}}this.lastLevel=this.zoomLevel;var hR=this.deepZoom||new bB(this);var T=hQ>0?1:-1;hR.zoomMap(i,hQ,T,null,hO)},flyToIn:function(hT,e){if(e===this.zoomLevel){this.panToIn(hT);return}var hQ=this._getProperZoom(e);if(hQ.exceeded){var hU=new a8("onzoomexceeded");hU.targetZoom=e;this.dispatchEvent(hU);return}var hS=e-this.zoomLevel;var T=new eg(this.width/2,this.height/2);var i=this.pointToPixelIn(hT);var hR=new d6(i.x-T.x,i.y-T.y);this.lastLevel=this.zoomLevel;if(Math.abs(hS)>=4||Math.abs(hR.width)>this.width||Math.abs(hR.height)>this.height){this.centerAndZoomIn(hT,e);return}var hP=this.deepZoom||new bB(this);var hO=hS>0?1:-1;hP.zoomMap(i,hS,hO,hR)},panToIn:function(i,T){T=T||{};if(!i||i.equals(this.centerPoint)){T.callback&&T.callback();return}var hO=this.pointToPixelIn(i);var e=Math.round(this.width/2);var hP=Math.round(this.height/2);if(Math.abs(e-hO.x)>this.width||Math.abs(hP-hO.y)>this.height||T.noAnimation===true){this._panToIn(e-hO.x,hP-hO.y,i);T.callback&&T.callback()}else{this._panBy(e-hO.x,hP-hO.y,T)}},_panToIn:function(i,e,hO){var T=this.temp;if(T.operating===true){return}if(T.dragAni){T.dragAni.stop();T.dragAni=null;this.dispatchEvent(new a8("onmoveend"))}this.dispatchEvent(new a8("onmovestart"));this._setPlatformPosition(i,e,{point:hO});this.dispatchEvent(new a8("onmoveend"))},panBy:function(i,e,T){T=T||{};i=Math.round(i)||0;e=Math.round(e)||0;if(Math.abs(i)<=this.width&&Math.abs(e)<=this.height&&T.noAnimation!==true){this._panBy(i,e,T)}else{this._panToIn(i,e);T.callback&&T.callback()}},_panBy:function(i,e,hP){if(this.temp.operating===true){return}hP=hP||{};this.dispatchEvent(new a8("onmovestart"));var hO=this;var T=hO.temp;T.pl=hO.offsetX;T.pt=hO.offsetY;if(T.tlPan){T.tlPan.cancel()}if(T.dragAni){T.dragAni.stop();T.dragAni=null;this.dispatchEvent(new a8("onmoveend"))}T.tlPan=new o({fps:hP.fps||hO.config.fps,duration:hP.duration||hO.config.actionDuration,transition:hP.transition||ck.easeInOutQuad,render:function(hQ){this.terminative=hO.temp.operating;if(hO.temp.operating){return}hO._setPlatformPosition(Math.ceil(i*hQ),Math.ceil(e*hQ),{initMapOffsetX:T.pl,initMapOffsetY:T.pt})},finish:function(hQ){hO.dispatchEvent(new a8("onmoveend"));hO.temp.tlPan=false;if(hO.temp.stopArrow===true){hO.temp.stopArrow=false;if(hO.temp.arrow!==0){hO._arrow()}}hP.callback&&hP.callback()}})},getCenterIn:function(){return this.centerPoint},getZoom:function(){return this.zoomLevel},setTilt:function(){},getTilt:function(){return this._tilt},setHeading:function(){},getHeading:function(){return this._heading},restrictCenter:function(hS,hP,hT){this.isRestrict=false;hP=hP||this.getZoomUnits();hT=hT||this.zoomLevel;var T=this.pixelToPointIn(new eg(0,0),{center:hS,zoom:hT});var hQ=this.pixelToPointIn(new eg(0,this.height),{center:hS,zoom:hT});if(this.zoomLevel<5){if(T.lat>c5.MAX_LAT&&hQ.latc5.MAX_LAT){this.isRestrict=true;hS.lat=c5.MAX_LAT-this.height/2*hP}else{if(hQ.lat=1.5?2:1,enableEarth:a5.ifEnableEarth(),defaultMaxBounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),showControls:false,showRealSunlight:true,showMilkyway:true,earthBackground:null,showStreetLayer:true,minZoom:null,maxZoom:null,style:"default",enableIconClick:false,autoSafeArea:false,ak:null,webgl2:false,restrictCenter:true,smaa:true,preserveDrawingBuffer:false};for(var T in i){if(i.hasOwnProperty(T)){this.config[T]=i[T];if(T==="fixCenterWhenResize"){this.config.enableResizeOnCenter=i[T]}}}if(i.style){if(i.style["styleId"]&&i.style["styleId"].length<32){this.config.style=i.style["styleId"]}else{this.config.style=i.style}}this._setTextRenderType();this._displayOptions={poi:true,poiText:true,poiIcon:true,overlay:true,layer:true,building:true,indoor:true,street:true,skyColors:["rgba(226, 237, 248, 0)","rgba(186, 211, 252, 1)"],isFlat:false,labelMargin:0};if(i.displayOptions){for(var e in i.displayOptions){if(i.displayOptions.hasOwnProperty(e)){this._displayOptions[e]=i.displayOptions[e]}}}if(this.config.restrictCenter===false){this._enableTiltZoom=0;this._enableHeadingZoom=0}},getMinZoom:function(){var T;if(b3[this.mapType][this._renderType]){T=b3[this.mapType][this._renderType].minZoom}else{T=b3[this.mapType].minZoom}if(this.config.minZoom!==null&&this.config.minZoom>=T){T=this.config.minZoom}if(this.mapType==="B_EARTH_MAP"){return T}var i=this.getSize();var e=this.worldSize(T);while(ee){hO=true;T=e}if(this._renderType!=="webgl"){T=Math.round(T)}return{zoom:T,exceeded:hO}},getContainer:function(){return this.container},getZoomUnits:function(T){if(this.mapType===BMAP_EARTH_MAP){return Math.pow(2,18-this._earth.getImageZoom())}var e=b3[this.mapType];if(typeof e!=="object"){return null}var i=T||this.zoomLevel;return Math.pow(2,(e.zoomLevelBase-i))},pointToPixelIn:function(hX,hZ){if(!hX){return}hZ=hZ||{};if(this.mapType===BMAP_EARTH_MAP){var hO;if(!hX._llPt){hO=ek.convertMC2LL(hX);hX._llPt=hO}hO=hX._llPt;var hT=null;var T=null;if(typeof hZ.zoom==="number"){var hW=this._earth;var hY=hW._getEarthZoomByImgZoom(hZ.zoom);if(hY<=3){hT=hW._generateTmpPMatrix(hY)}T=hW._generateTmpMVMatrix(hW.getCenter(),hY)}var hP=this._earth.fromLatLngToPixel(hO,{useRound:false,isCalcOnBack:true,matrixInfo:{modelViewMatrix:T,projectionMatrix:hT}});return hP}if((this._heading%360===0&&this._tilt===0)||!this._webglMapCamera){var hV=this.getZoomUnits(hZ.zoom);var hR=hZ.center||this.centerPoint;var i=this.width/2;var hQ=this.height/2;var hU=(hX.lng-hR.lng)/hV+i;var hS=(hR.lat-hX.lat)/hV+hQ;if(hZ.useRound!==false){hU=Math.round(hU);hS=Math.round(hS)}return new eg(hU,hS)}var e=this._webglMapCamera.fromMCToScreenPixel(hX.lng,hX.lat,hZ);if(hZ.useRound===false){return e}e.x=Math.round(e.x);e.y=Math.round(e.y);return e},pixelToPointIn:function(e,hV){if(!e){return}hV=hV||{};if(this.mapType===BMAP_EARTH_MAP){if(typeof hV.zoom==="number"){var hT=this._earth;var hQ=null;var T=null;var hU=hT._getEarthZoomByImgZoom(hV.zoom);if(hU<=3){hQ=hT._generateTmpPMatrix(hU)}T=hT._generateTmpMVMatrix(hT.getCenter(),hU)}var i=this._earth.fromPixelToLatLng(e,{matrixInfo:{modelViewMatrix:T,projectionMatrix:hQ}});if(i===null){return null}return ek.convertLL2MC(i)}if((this._heading%360!==0||this._tilt>0)&&this._webglMapCamera){return this._webglMapCamera.fromScreenPixelToMC(e.x,e.y,hV)}var hR=hV.center||this.centerPoint;var hS=this.getZoomUnits(hV.zoom);var hP=hR.lng+hS*(e.x-this.width/2);var hO=hR.lat-hS*(e.y-this.height/2);return new hp(hP,hO)},pointToOverlayPixelIn:function(e,hO){hO=hO||{};var T=this.pointToPixelIn(e,{zoom:hO.zoom,center:hO.center,forLabel:true,frustumTest:true,useRound:hO.useRound});if(!T){return}if(hO.fixPosition&&this.mapType!=="B_EARTH_MAP"){var hP=this.getSize();var i=this.worldSize(hO.zoom);if(T.x>hP.width){while(T.x>hP.width){T.x-=i}}else{if(T.x<0){while(T.x<0){T.x+=i}}}}if(this._renderType==="webgl"){return T}T.x-=this.offsetX;T.y-=this.offsetY;return T},overlayPixelToPointIn:function(i,e){if(!i){return}var T=i.clone();if(this._renderType!=="webgl"){T.x+=this.offsetX;T.y+=this.offsetY}return this.pixelToPointIn(T,e)},getProjection:function(){return new ek()},lnglatToMercator:function(e,hO){var i=new hp(e,hO);var T=ek.convertLL2MC(i);return[T.lng,T.lat]},mercatorToLnglat:function(i,e){if(isNaN(i)||isNaN(e)){return[]}i=parseFloat(i);e=parseFloat(e);var hO=new hp(i,e);var T=ek.convertMC2LL(hO);return[T.lng,T.lat]},getBoundsIn:function(){var h1=arguments[0];if(this.mapType===BMAP_EARTH_MAP&&this._earth){var hV=this._earth.getCustomBounds();if(!hV){return this.config.defaultMaxBounds}var hU=hV.getSouthWest();var e=hV.getNorthEast();if(hU.lng>e.lng){e.lng=180}var ij=ek.convertLL2MC(hU);var h8=ek.convertLL2MC(e);var hY=this.config.defaultMaxBounds;var h7=Math.max(ij.lng,hY.sw.lng);var h6=Math.max(ij.lat,hY.sw.lat);var h0=Math.min(h8.lng,hY.ne.lng);var hZ=Math.min(h8.lat,hY.ne.lat);var h3=new dP(new hp(h7,h6),new hp(h0,hZ));h3.pointBottomLeft=new hp(h7,h6);h3.pointBottomRight=new hp(h0,h6);h3.pointTopLeft=new hp(h7,hZ);h3.pointTopRight=new hp(h0,hZ);h3.setMinMax();h3.makeNormalizedPoint(this._earth.getHeading());return h3}h1=h1||{};var hP=h1.margins||[0,0,0,0];var id=this.pixelToPointIn({x:hP[3],y:this.height-hP[2]},h1);var ii=this.pixelToPointIn({x:this.width-hP[1],y:hP[0]},h1);var h5=typeof h1.heading==="number"?h1.heading:(this._heading%360);var T=typeof h1.tilt==="number"?h1.tilt:this._tilt;var hX=this._webglMapCamera;if((h5===0&&T===0)||!hX){this._bounds.setSouthWest(id);this._bounds.setNorthEast(ii);this._bounds.pointBottomLeft=id;this._bounds.pointBottomRight=new hp(ii.lng,id.lat);this._bounds.pointTopRight=ii;this._bounds.pointTopLeft=new hp(id.lng,ii.lat);this._bounds.setMinMax();this._bounds.makeNormalizedPoint(h5);return this._bounds}var h4=this.pixelToPointIn({x:hP[3],y:hP[0]},h1);var hO=hX.getPosition();var ik=Math.sqrt(Math.pow(h4.lng-hO[0],2)+Math.pow(h4.lat-hO[1],2));var ie=this.getZoomUnits();var im=ik/ie;var ib=hX._frustumSideLen;var hT=hX._fovy;if(im>ib||(90-T)hR){hR=ia[ig].lng}if(ia[ig].lathW){hW=ia[ig].lat}}this._bounds.setSouthWest(new hp(ih,io));this._bounds.setNorthEast(new hp(hR,hW));this._bounds.pointTopLeft=h4;this._bounds.pointTopRight=ii;this._bounds.pointBottomRight=h2;this._bounds.pointBottomLeft=id;this._bounds.makeNormalizedPoint(h5);this._bounds.setMinMax();return this._bounds},isLoaded:function(){return !!this.loaded},_getBestLevel:function(i,hX){var hQ=0;if(this._renderType==="webgl"&&!f2()){hQ=100}var hR=hX.margins||[10,10,10,10];var hO=hX.zoomFactor||0;var hS=hR[1]+hR[3];var hP=hR[0]+hR[2];var e=this.getMinZoom();var hW=this.getMaxZoom();var hV=i.toSpan();var hU=hV.width/(this.width-hS-hQ);var hT=hV.height/(this.height-hP-hQ);var T=18-ez(Math.max(hU,hT));if(ThW){T=hW}T+=hO;if(this._renderType!=="webgl"){T=Math.floor(T)}return T},getViewportIn:function(hZ,h2){if(this.mapType===BMAP_EARTH_MAP){hZ=hZ||[];var hY=[];for(var hP=0;hP=0;hP--){T.extend(hU[hP])}if(T.isEmpty()){return h1}}var e=T.getCenter();var h0=this._getBestLevel(T,h2);if(h2.margins){var hT=h2.margins;var hS=(hT[1]-hT[3])/2;var hW=(hT[0]-hT[2])/2;var hO=this.getZoomUnits(h0);e.lng=e.lng+hO*hS;e.lat=e.lat+hO*hW}return{center:e,zoom:h0}},setViewportIn:function(hO,hP){if(this.mapType===BMAP_EARTH_MAP){var hT;if(hO&&hO.center){var T=ek.convertMC2LL(hO.center);var hR=this._earth._getEarthZoomByImgZoom(hO.zoom,T);hT={center:T,zoom:hR}}else{hT=[];for(var hQ=0;hQc5.MAX_DRAG_TILT_L2){i.setTilt(c5.MAX_DRAG_TILT_L2,{callback:function(){i._changeEarthMapType(e)}})}else{i._changeEarthMapType(e)}},_changeEarthMapType:function(T){var hO=this;var hR=hO.tileMgr.tileLayers;if(this._mapTypeChangAni){this._mapTypeChangAni.stop()}var hQ;if(this._earth){hQ=this._earth.getEarthCanvas()}if(!this._earth){this.maskLayer.style.opacity=1;this.maskLayer.style.zIndex=999;this.maskLayer.style.background="#000"}this._mapTypeChangAni=new o({duration:400,render:function(e){if(!hO._earth){return}hQ.style.opacity=e},finish:function(){for(var e=hR.length-1,hS=e;hS>=0;hS--){var hU=hR[hS].tilesDiv;if(hU){hU.style.visibility="hidden"}if(hR[hS]._isInnerLayer&&hO._renderType!=="webgl"){hO.removeTileLayer(hR[hS])}}hO._mapTypeChangAni=null;hO._mapTypeChanging=false;function hT(){var hY=hO.getZoom()-2;var hZ=hO.getCenterIn();var hW=ek.convertMC2LL(hZ);hO._earth=new bl.Earth(hO,{center:hW,zoom:hY,showRealSunlight:hO.config.showRealSunlight,showMilkyway:hO.config.showMilkyway,earthBackground:hO.config.earthBackground});hO._proxyEarthEvents();var hV=hO.mapType;hO.mapType=T;var hX=new a8("onmaptypechange");hX.zoomLevel=this.zoomLevel;hX.mapType=T;hX.exMapType=hV;hO.dispatchEvent(hX);hO._setMapTypeStatus(T);C.extend(hO,bl.EarthView.prototype);if(!hO._navigationCtrl&&hO.config.showControls){hO._navigationCtrl=new eR(hO)}}if(!hO._earth){if(bl["FeatureStyle"+hO.config.style]){hT()}else{hO.loadMapStyleFiles(function(){hT()})}}if(parseInt(hO.maskLayer.style.opacity,10)===1){setTimeout(function(){hO.maskLayer.style.zIndex=9;hO.maskLayer.style.opacity=0},1000)}}});if(!this._earth){return}var i=this.mapType;this.mapType=T;var hP=new a8("onmaptypechange");hP.zoomLevel=this.zoomLevel;hP.mapType=T;hP.exMapType=i;this.dispatchEvent(hP);hO._setMapTypeStatus(T);C.extend(hO,bl.EarthView.prototype)},getMapStyleId:function(){if(typeof this.config.style==="string"){return this.config.style}return this.config.mapStyleId||"custom"},_setMapTypeStatus:function(T){var hS=arguments[1];if(T===BMAP_EARTH_MAP){var hQ=this._earth.getEarthCanvas();if(hQ){hQ.style.display=""}var hT={noAnimation:true};this._earth.setCenter(ek.convertMC2LL(this.centerPoint),hT);this._earth.setImageZoom(this.zoomLevel,hT);this._earth.setTilt(this.getTilt(),hT);this._earth.setHeading(this.getHeading(),hT)}else{if(this.preMapType===BMAP_EARTH_MAP&&this._earth){var hR=this._earth;var hO=hR.getMapZoom();var hP=hR._imageRawZoom||hO;var i=hP-hO;var e=hR.getCenter();if(this._renderType==="webgl"){this._tilt=hR.getTilt();if(this.zoomLevel>7){this._heading=hR.getHeading();hS&&hS(e,hO);return}if(hR.getHeading()!==0){hR.setTilt(this.getTilt());hR.setHeading(this.getHeading(),{callback:function(){hS&&hS(e,hO)}})}else{hS&&hS(e,hO)}return}if(i<0.1&&hR.getTilt()===0&&hR.getHeading()===0){hS&&hS(e,hO);return}hR.setTilt(0);hR.setHeading(0);hR.setZoom(hR.getZoom()-i,{callback:function(){hS&&hS(e,hO)}})}}},_proxyEarthEvents:function(){var hP=this;var hQ=this._earth;hQ.on("tilesload",function(i){hP.fire(i)});hQ.on("centerandzoom",function(i){hP.dispatchEvent(new a8("onmoveend"));hP.dispatchEvent(new a8("onzoomend"))});function hO(i){hP.fire(i)}var e=["zoomstart","zoomend","tilesload","sunlighttime_change","sunlighttime_clear","centerandzoom","animation_start","animation_stop","movestart","moveend","moving","dragstart","dragend","dragging"];for(var T=0;T=3?e:3},setCenterIn:function(e,i){this.panToIn(e,i)},getRenderType:function(){return this._renderType},getSolarInfo:function(hO){hO=hO||this._initDate;var T=bw(hO);var e=ek.convertLL2MC(new hp(T[0],T[1]));var hW=e.latLng;var hR=bl.Projection.convertMC2LL(this.centerPoint);var hT=hO.getUTCHours();var hV=hT+24*hR.lng/360;var hU=hV-12;var hS=hU*60*0.25;var hQ=Math.asin(Math.sin(dH(hR.lat))*Math.sin(dH(hW.lat))+Math.cos(dH(hR.lat))*Math.cos(dH(hW.lat))*Math.cos(dH(hS)));var hP=Math.asin(Math.sin(dH(hS))*Math.cos(dH(hW.lat))/Math.cos(hQ));var i="north";if(hR.lat=19){return c5.MAX_DRAG_TILT}else{if(e<=18){if(e=this._enableTiltZoom-2){return(1-(this._enableTiltZoom-e)/2)*c5.MAX_DRAG_TILT_L2}return 0}return c5.MAX_DRAG_TILT_L2}else{return(c5.MAX_DRAG_TILT-c5.MAX_DRAG_TILT_L2)*(e-18)+c5.MAX_DRAG_TILT_L2}}},worldSize:function(i){var e=i||this.zoomLevel;return c5.WORLD_SIZE_MC/this.getZoomUnits(e)},setTrafficOn:function(){this.addTileLayer(cb)},setTrafficOff:function(){this.removeTileLayer(cb)},showOverlayContainer:function(){this.setDisplayOptions({overlay:true})},hideOverlayContainer:function(){this.setDisplayOptions({overlay:false})},addLabelsToMapTile:function(T){for(var e=0;e"-1"){hj.load(hQ)}else{bl.customStyleInfo.xhr=gx.post(hQ,hV,styleCbk)}})}else{if(hQ.indexOf("jsonp")>"-1"){hj.load(hQ)}else{bl.customStyleInfo.xhr=gx.post(hQ,hV,styleCbk)}}})}},setCopyrightOffset:function(hO,i){var T=new a8("oncopyrightoffsetchange",{logo:hO,cpy:i});this.dispatchEvent(T)},_setTextRenderType:function(e){if(e){this.config.textRenderType=e;return}if(this.config.textRenderType!==null){return}if(f2()){this.config.textRenderType="canvas"}else{if(typeof this.config.style==="string"){this.config.textRenderType="image"}else{this.config.textRenderType="canvas"}}},destroy:function(){this._destroyed=true;this.fire(new a8("ondestroy"))},centerAndZoom:function(e,hQ,T){if(Object.prototype.toString.call(hQ)!=="[object Undefined]"){hQ=parseInt(hQ)}if(typeof e==="string"){var hO=this;var hP=new V();hP.getPoint(e,function(hR){e=hR;var hS=ek.convertLL2MC(e);hO.centerAndZoomIn(hS,hQ,T)})}else{var i=ek.convertLL2MC(e);this.centerAndZoomIn(i,hQ,T)}},pointToPixel:function(e,T){var i=ek.convertLL2MC(e);var hO={};C.extend(hO,T);if(hO&&hO.center){hO.center=ek.convertLL2MC(hO.center)}return this.pointToPixelIn(i,hO)},pixelToPoint:function(T,i){var hO={};C.extend(hO,i);if(hO&&hO.center){hO.center=ek.convertLL2MC(hO.center)}var e=this.pixelToPointIn(T,hO);return ek.convertMC2LL(e)},pointToOverlayPixel:function(e,T){var i=ek.convertLL2MC(e);var hO={};C.extend(hO,T);if(hO&&hO.center){hO.center=ek.convertLL2MC(hO.center)}return this.pointToOverlayPixelIn(i,hO)},overlayPixelToPoint:function(T,i){var hO={};C.extend(hO,i);if(hO&&hO.center){hO.center=ek.convertLL2MC(hO.center)}var e=this.overlayPixelToPointIn(T,hO);return ek.convertMC2LL(e)},setViewport:function(T,hO){var e;if(T&&T.center){e={};C.extend(e,T);e.center=ek.convertLL2MC(e.center)}else{e=[];for(var hP=0;hP2){hX.push(hQ.join("|"))}}return hX.join(",")},getFrontZoom:function(i,e){var T=i.stylers["level"];if(T===undefined){return"main"}else{return parseInt(T,10)}},isZoomConfig:function(e){var i=e.stylers["level"];if(i===undefined){return false}else{return true}},isOnlyZoomStyler:function(e){var i={};C.extend(i,e.stylers);delete i.curZoomRegionId;delete i.curZoomRegion;delete i.level;if(C.isEmptyObject(i)){return true}else{return false}},isSelectZoom:function(i,e){var T=i.stylers["level"];if(T===undefined){return true}else{if(T===e+""){return true}else{return false}}},isEditorZoomKeys:function(e){var i={curZoomRegionId:true,curZoomRegion:true};if(i[e]){return true}else{return false}},getZoomRegion:function(e,i){var hO=e.stylers["level"];var T={};C.extend(T,i);if(hO===undefined){return T}else{T[parseInt(hO,10)]=true;return T}},onStyleDataBack:function(hO,e,i,T,hQ){if(hO.status!==0){return}if(hO.data.style.length===3){if(!bl.customStyleInfo.baseFs){bl.customStyleInfo.baseFs=hO.data.style}bl.StyleBody=hO.data.style[2]}else{bl.StyleBody=hO.data.style}var hP=bl.customStyleInfo.baseFs;bl["FeatureStyle"+i]=hP;this.updateFrontFeatureStyle()},updateFrontFeatureStyle:function(){if(bl.customStyleInfo.zoomFrontStyle.main["bmapRoadarrowVisibility"]){for(var e=this.map.getMinZoom();e<=this.map.getMaxZoom();e++){if(!bl.customStyleInfo.zoomFrontStyle[e]["bmapRoadarrowVisibility"]){bl.customStyleInfo.zoomFrontStyle[e]["bmapRoadarrowVisibility"]=bl.customStyleInfo.zoomFrontStyle.main["bmapRoadarrowVisibility"]}}}}};var bG={map:null,labelCache:{},calcDrawMc:function(T,i,e){var hO=[];switch(i){case"fill":hO=this.calcFill(T,e);break;case"line":break;case"building3d":hO=this.calcBuilding3d(T,e);break}return hO},calcFill:function(hP,T){var hQ=[];for(var hO=0;hO0){hS=hP.verticesLength[T-1]}end=hP.verticesLength[T];var hQ=[];var hO="";if(hP.vertex){hQ=hP.vertex;hO="building3d"}else{if(hP.data[0]){hQ=hP.data[0];hO=hP.type}else{continue}}var hR=this.calcDrawMc(hQ.slice(hS,end),hO,e);this.map.addAreaSpot(hR,{userData:{styleId:hP.styleIds[T],type:"mapstyle"}})}},addLabelIntoAreaSpots:function(e){if(f.environment!=="customEditor"){return}for(var hP=0;hPhR){return hR}while(hST){hS=hP}else{hR=hP}hP=(hR-hS)*0.5+hS}return hP};bO.prototype.solve=function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))};var ck={};function o(T){var e={duration:1000,fps:30,delay:0,transition:ck.linear,dropLastAnimation:false};if(T){for(var hO in T){e[hO]=T[hO]}}if(T.beginTime){this._beginTime=T.beginTime}this._callbacks=[];this._options=e;if(e.delay){var hP=this;setTimeout(function(){hP._doStart()},e.delay)}else{this._doStart()}this._pauseTime=0}o.INFINITE="INFINITE";o.prototype._doStart=function(){if(this._isPausing){var e=performance.now()||new Date().getTime();this._pauseTime+=e-this._isPausing;this._isPausing=undefined}if(window.requestAnimationFrame){var i=this;i._timer=window.requestAnimationFrame(function(T){i._loop(T)})}else{this._beginTime=new Date().getTime();if(this._options.duration===o.INFINITE){this._endTime=null}else{this._endTime=this._beginTime+this._options.duration}this._loop()}};o.prototype._loop=function(hO){var hR=this;hO=hO||new Date().getTime();hO=hO-this._pauseTime;if(!this._beginTime){this._beginTime=hO}if(!this._endTime&&typeof this._options.duration==="number"){this._endTime=this._beginTime+this._options.duration}if(hR._endTime!==null&&hO>=hR._endTime){if(hR._options.dropLastAnimation===false){hR._options.render(hR._options.transition(1),1,hO)}if(typeof hR._options.finish==="function"){hR._options.finish(hO,this)}for(var hQ=0,e=hR._callbacks.length;hQ=hP.percentage&&hO0){i.unselectable="on";i.selectstart=function(){return false};i.onmousedown=function(T){T.preventDefault();return false}}else{var e=da(i);e.MozUserSelect="none";e.WebkitUserSelect="none";i.addEventListener("mousedown",function(T){T.preventDefault()},false)}}function ha(e){return e&&e.parentNode&&e.parentNode.nodeType!==11}function dF(i,e){i.insertAdjacentHTML("beforeEnd",e);return i.lastChild}function hy(T,i){var hO=document.createElement("div");hO.innerHTML=i;var e=hO.childNodes[0];return T.parentNode.insertBefore(e,T)}function h(i){i=i||window.event;i.stopPropagation?i.stopPropagation():i.cancelBubble=true}function bR(i){i=i||window.event;i.preventDefault?i.preventDefault():i.returnValue=false;return false}function c8(i){h(i);return bR(i)}function fG(){var e=document.documentElement;var i=document.body;if(e&&(e.scrollTop||e.scrollLeft)){return[e.scrollTop,e.scrollLeft]}else{if(i){return[i.scrollTop,i.scrollLeft]}else{return[0,0]}}}function fn(hP){if(!hP){return}hP.onload=hP.onerror=null;var T=hP.attributes,hO,e,hQ;if(T){e=T.length;for(hO=0;hO>4);hU=((hT&15)<<4)|(hR>>2);hS=((hR&3)<<6)|hQ;T=T+String.fromCharCode(hW);if(hR!==64){T=T+String.fromCharCode(hU)}if(hQ!==64){T=T+String.fromCharCode(hS)}hW=hU=hS="";hV=hT=hR=hQ=""}while(hO-1||e.indexOf("iPad")>-1){return true}return false}function ey(){var e=navigator.userAgent;if(e.indexOf("Android")>-1){return true}return false}function dH(e){return e*Math.PI/180}function db(e){return e/Math.PI*180}function dL(e,hP){var hO=Math.pow(10,hP);if(typeof e==="number"){return Math.round(e*hO)/hO}for(var T=0;Te){T=e}}return T}function fW(e,i){while(e<0){e+=i}return e%i}function d5(i,e){return(i>=0&&e>=0)||(i<0&&e<0)}function a2(i){if(i._gl){return i._gl}var e={alpha:true,antialias:false,failIfMajorPerformanceCaveat:false,preserveDrawingBuffer:false,stencil:false};var T=i.getContext("webgl",e)||i.getContext("experimental-webgl",e);i._gl=T;return T}function eH(hO,T){for(var e=0;ehO||T.lati){return false}return true}function gu(hS,hR,hQ,hO){var hP=gs(hQ,hO,hS);var T=gs(hQ,hO,hR);var i=gs(hS,hR,hQ);var e=gs(hS,hR,hO);if(hP*T<0&&i*e<0){return true}else{if(hP===0&&ce(hQ,hO,hS)){return true}else{if(T===0&&ce(hQ,hO,hR)){return true}else{if(i===0&&ce(hS,hR,hQ)){return true}else{if(e===0&&ce(hS,hR,hO)){return true}else{return false}}}}}}function hw(T,i){var e=i.parentNode;if(e.lastChild===i){e.appendChild(T)}else{e.insertBefore(T,i.nextSibling)}}function hC(hU,hV){if(hV===0){return hU}var hT=0;var hR=0;if(!hU){throw"异常"}if(hU.length===0){return[]}for(var hP=1,T=hU.length-1;hPhT){hR=hP;hT=hS}}var e=[];if(hT>=hV){var hX=hU.slice(0,hR);var hW=hU.slice(hR,hU.length);var hQ=hC(hX,hV);var hO=hC(hW,hV);for(var hP=0,T=hQ.length;hP=0){hO=Math.floor(T/65536)*65536;i=hO;e=T-hO}else{hO=Math.floor(-T/65536)*65536;i=-hO;e=T+hO}return[i,e]}function G(e){if(e.lng>=0&&e.lat>=0){return new hp(e.lng-10000000,e.lat-6000000)}if(e.lng>=0&&e.lat<0){return new hp(e.lng-10000000,e.lat+6000000)}if(e.lng<0&&e.lat>=0){return new hp(e.lng+10000000,e.lat-6000000)}if(e.lng<0&&e.lat<0){return new hp(e.lng+10000000,e.lat+6000000)}}var fx=null;if(window.performance&&window.performance.now){fx=function(){return performance.now()}}else{if(Date.now){fx=function(){return Date.now()}}else{fx=function(){return(new Date).getTime()}}}function bI(hO,e,i){var T="mouseWheel";if(C.Platform.macintosh){if(!isNaN(hO)&&(hO<10||hO!==120)&&(e%1===0&&e<5)){T="padScroll"}if(C.Browser.firefox&&(e%1===0&&e<5&&i===0)){T="padScroll"}}if(C.Browser.safari&&hO===12){T="mouseWheel"}return T}function dd(hX,hS){var hW=hX[0];var hV=hX[1];var hO=false;for(var hR=0,hQ=hS.length-2;hRhV)!==(T>hV))&&(hW<(hT-hU)*(hV-hP)/(T-hP)+hU);if(e){hO=!hO}hQ=hR}return hO}function cB(T,e,i,hO){hO=hO||0.4;if(T>i){T=Math.pow(T-i+1,hO)+i-1}else{if(Ti-iV?iV:iW},e.offset=function(i,iV){return iU(i=new Date(+i),null==iV?1:Math.floor(iV)),i},e.range=function(iW,i,iV){var iX=[];if(iW=e.ceil(iW),iV=null==iV?1:Math.floor(iV),!(i>iW&&iV>0)){return iX}do{iX.push(new Date(+iW))}while(iU(iW,iV),iT(iW),i>iW);return iX},e.filter=function(i){return iN(function(iV){for(;iT(iV),!i(iV);){iV.setTime(iV-1)}},function(iV,iW){for(;--iW>=0;){for(;iU(iV,1),!i(iV);){}}})},T&&(e.count=function(i,iV){return ix.setTime(+i),iB.setTime(+iV),iT(ix),iT(iB),Math.floor(T(ix,iB))},e.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?e.filter(it?function(iV){return it(iV)%i===0}:function(iV){return e.count(0,iV)%i===0}):e:null}),e}function iC(e){return iN(function(i){i.setDate(i.getDate()-(i.getDay()+7-e)%7),i.setHours(0,0,0,0)},function(i,T){i.setDate(i.getDate()+7*T)},function(i,T){return(T-i-(T.getTimezoneOffset()-i.getTimezoneOffset())*iw)/iK})}function iu(e){return iN(function(i){i.setUTCDate(i.getUTCDate()-(i.getUTCDay()+7-e)%7),i.setUTCHours(0,0,0,0)},function(i,T){i.setUTCDate(i.getUTCDate()+7*T)},function(i,T){return(T-i)/iK})}var ix=new Date,iB=new Date,iI=iN(function(){},function(i,T){i.setTime(+i+T)},function(i,T){return T-i});iI.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?iN(function(i){i.setTime(Math.floor(i/e)*e)},function(i,T){i.setTime(+i+T*e)},function(i,T){return(T-i)/e}):iI:null};var iR=iI.range,iP=1000,iw=60000,iM=3600000,iE=86400000,iK=604800000,hU=iN(function(e){e.setTime(Math.floor(e/iP)*iP)},function(i,T){i.setTime(+i+T*iP)},function(i,T){return(T-i)/iP},function(e){return e.getUTCSeconds()}),iO=hU.range,iD=iN(function(e){e.setTime(Math.floor(e/iw)*iw)},function(i,T){i.setTime(+i+T*iw)},function(i,T){return(T-i)/iw},function(e){return e.getMinutes()}),h2=iD.range,io=iN(function(i){var T=i.getTimezoneOffset()*iw%iM;0>T&&(T+=iM),i.setTime(Math.floor((+i-T)/iM)*iM+T)},function(i,T){i.setTime(+i+T*iM)},function(i,T){return(T-i)/iM},function(e){return e.getHours()}),iJ=io.range,ic=iN(function(e){e.setHours(0,0,0,0)},function(i,T){i.setDate(i.getDate()+T)},function(i,T){return(T-i-(T.getTimezoneOffset()-i.getTimezoneOffset())*iw)/iE},function(e){return e.getDate()-1}),hT=ic.range,h9=iC(0),ib=iC(1),hP=iC(2),h7=iC(3),hW=iC(4),ir=iC(5),iA=iC(6),hR=h9.range,iq=ib.range,h0=hP.range,im=h7.range,iF=hW.range,ip=ir.range,iQ=iA.range,iH=iN(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(i,T){i.setMonth(i.getMonth()+T)},function(i,T){return T.getMonth()-i.getMonth()+12*(T.getFullYear()-i.getFullYear())},function(e){return e.getMonth()}),iS=iH.range,h6=iN(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(i,T){i.setFullYear(i.getFullYear()+T)},function(i,T){return T.getFullYear()-i.getFullYear()},function(e){return e.getFullYear()});h6.every=function(e){return isFinite(e=Math.floor(e))&&e>0?iN(function(i){i.setFullYear(Math.floor(i.getFullYear()/e)*e),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,T){i.setFullYear(i.getFullYear()+T*e)}):null};var hZ=h6.range,iy=iN(function(e){e.setUTCSeconds(0,0)},function(i,T){i.setTime(+i+T*iw)},function(i,T){return(T-i)/iw},function(e){return e.getUTCMinutes()}),ie=iy.range,id=iN(function(e){e.setUTCMinutes(0,0,0)},function(i,T){i.setTime(+i+T*iM)},function(i,T){return(T-i)/iM},function(e){return e.getUTCHours()}),ia=id.range,h8=iN(function(e){e.setUTCHours(0,0,0,0)},function(i,T){i.setUTCDate(i.getUTCDate()+T)},function(i,T){return(T-i)/iE},function(e){return e.getUTCDate()-1}),h5=h8.range,h4=iu(0),h3=iu(1),h1=iu(2),hY=iu(3),hX=iu(4),hS=iu(5),hQ=iu(6),hO=h4.range,il=h3.range,iL=h1.range,iz=hY.range,iG=hX.range,ik=hS.range,ij=hQ.range,ii=iN(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(i,T){i.setUTCMonth(i.getUTCMonth()+T)},function(i,T){return T.getUTCMonth()-i.getUTCMonth()+12*(T.getUTCFullYear()-i.getUTCFullYear())},function(e){return e.getUTCMonth()}),ih=ii.range,hV=iN(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(i,T){i.setUTCFullYear(i.getUTCFullYear()+T)},function(i,T){return T.getUTCFullYear()-i.getUTCFullYear()},function(e){return e.getUTCFullYear()});hV.every=function(e){return isFinite(e=Math.floor(e))&&e>0?iN(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/e)*e),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,T){i.setUTCFullYear(i.getUTCFullYear()+T*e)}):null};var ig=hV.range;iv.timeInterval=iN,iv.timeMillisecond=iI,iv.timeMilliseconds=iR,iv.utcMillisecond=iI,iv.utcMilliseconds=iR,iv.timeSecond=hU,iv.timeSeconds=iO,iv.utcSecond=hU,iv.utcSeconds=iO,iv.timeMinute=iD,iv.timeMinutes=h2,iv.timeHour=io,iv.timeHours=iJ,iv.timeDay=ic,iv.timeDays=hT,iv.timeWeek=h9,iv.timeWeeks=hR,iv.timeSunday=h9,iv.timeSundays=hR,iv.timeMonday=ib,iv.timeMondays=iq,iv.timeTuesday=hP,iv.timeTuesdays=h0,iv.timeWednesday=h7,iv.timeWednesdays=im,iv.timeThursday=hW,iv.timeThursdays=iF,iv.timeFriday=ir,iv.timeFridays=ip,iv.timeSaturday=iA,iv.timeSaturdays=iQ,iv.timeMonth=iH,iv.timeMonths=iS,iv.timeYear=h6,iv.timeYears=hZ,iv.utcMinute=iy,iv.utcMinutes=ie,iv.utcHour=id,iv.utcHours=ia,iv.utcDay=h8,iv.utcDays=h5,iv.utcWeek=h4,iv.utcWeeks=hO,iv.utcSunday=h4,iv.utcSundays=hO,iv.utcMonday=h3,iv.utcMondays=il,iv.utcTuesday=h1,iv.utcTuesdays=iL,iv.utcWednesday=hY,iv.utcWednesdays=iz,iv.utcThursday=hX,iv.utcThursdays=iG,iv.utcFriday=hS,iv.utcFridays=ik,iv.utcSaturday=hQ,iv.utcSaturdays=ij,iv.utcMonth=ii,iv.utcMonths=ih,iv.utcYear=hV,iv.utcYears=ig,Object.defineProperty(iv,"__esModule",{value:!0})});function gk(e){this._elemType=e;this._objCollection={}}gk.prototype.get=function(){var i=null;for(var e in this._objCollection){if(this._objCollection[e]&&this._objCollection[e]._free===true){this._objCollection[e]._free=false;return this._objCollection[e]}}i=S(this._elemType);e=bl.getGUID("obj_pool_");this._objCollection[e]=i;return i};gk.prototype.free=function(e){if(!e){return}e._free=true;if(e.tagName.toLowerCase()==="img"){e.src="";e.crossOrigin=null;e.onload=e.onerror=null}};gk.prototype.clear=function(){for(var e in this._objCollection){if(this._objCollection[e]&&this._objCollection[e].tagName.toLowerCase==="img"){this._objCollection[e].onload=this._objCollection[e].onerror=null}}this._objCollection={}};var gx={get:function(i,hP,e,T){var hO=new XMLHttpRequest();hO.open("GET",i,true);hO.timeout=10000;hO.ontimeout=function(){T&&T()};hO.onreadystatechange=function(hQ){if(this.readyState===4){if(this.status===200){hP&&hP(hO.responseText)}else{e&&e()}}};hO.send()},post:function(i,hQ,hP,e,T){var hO=new XMLHttpRequest();hO.open("POST",i,true);hO.setRequestHeader("Content-type","application/x-www-form-urlencoded");hO.timeout=10000;hO.ontimeout=function(){T&&T()};hO.onreadystatechange=function(hR){if(this.readyState===4){if(this.status===200){hP&&hP(hO.responseText,hQ)}else{e&&e()}}};hO.send(hQ);return hO}};var hj=(function(e){function i(hQ,T,hP){var hO=S("script",{src:hQ,type:"text/javascript",charset:"utf-8"});if(hO.addEventListener){hO.addEventListener("load",function(hS){var hR=hS.target;hR.parentNode.removeChild(hR);T&&T()},false);hO.addEventListener("error",function(hR){hP&&hP(null)},false)}else{if(hO.attachEvent){hO.attachEvent("onreadystatechange",function(hS){var hR=window.event.srcElement;if(hR&&(hR.readyState==="loaded"||hR.readyState==="complete")){hR.parentNode.removeChild(hR)}T&&T()})}}e.getElementsByTagName("head")[0].appendChild(hO)}return{load:function(hR,T,hO){if(typeof hR==="string"){i(hR,T,hO)}else{if(hR.length>0){var hQ=hR.length;for(var hP=0;hP-1){return{col:hO,row:hU,zoom:hT,useZoom:T}}else{var hR=df.mapZoomBaseIndex[hT];var hQ=df.baseScaleZoom[hR+1];if(!hQ){return null}var hS=this.getFactorByZooms(hQ,hT);var e=df.baseZoomInfo[hQ];return{col:Math.floor(hO/hS),row:Math.floor(hU/hS),zoom:hQ,useZoom:e[e.length-1]}}return null}if(hT-1-1){return[{col:hP,row:hR,zoom:e,useZoom:T}]}else{var h2=0;var hZ=e;while(h2hY){return null}var hX=Math.pow(2,h4);var i=hP*hX;var hW=hR*hX;var hT=e+h4;var hV=[];for(var h1=0;h1<2;h1++){var hQ=i+h1;for(var h0=0;h0<2;h0++){var hS=hW+h0;hV.push({col:hQ,row:hS,zoom:hT,useZoom:hT})}}return hV},getFactorByZooms:function(i,hO){var T=df.mapZoomBaseIndex[i];var hP=df.mapZoomBaseIndex[hO];var e=df.baseScaleZoomMercatorSize[T];var hQ=df.baseScaleZoomMercatorSize[hP];return e/hQ}};var a5={};var ag=["swiftshader","microsoft basic render driver"];var ci=["intel","nvidia","amd","apple","geforce"];function ds(e){e=e.toLowerCase();if(ag.indexOf(e)>=0){return true}if(e.indexOf("mobile")>=0){return true}return false}function fA(T){T=T.toLowerCase();for(var e=0;e=0){return true}}return false}function dV(e){if(!e){return false}if(ds(e)){return false}if(fA(e)){return true}return false}a5.ifEnableEarth=function(i){var e=a5.ifEnableEarth;if(!i&&typeof e._enable==="boolean"){return e._enable}if(a5.ifSupportWebGL()){e._enable=true;return true}e._enable=false;return false};a5.ifEnableWebGLMap=function(i){var e=a5.ifEnableWebGLMap;if(!i&&typeof e._enable==="boolean"){return e._enable}if(a5.ifSupportWebGL()){if(dt.inMapHost){e._enable=true;return true}else{if(window.Blob||window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder){e._enable=true;return true}else{e._enable=false;return false}}}e._enable=false;return false};a5.params={};a5.ifSupportWebGL=function(){var i=a5.ifSupportWebGL;if(typeof i._supportWebGL==="boolean"){return i._supportWebGL}if(!window.WebGLRenderingContext){i._supportWebGL=false;return false}var T=document.createElement("canvas");T.width=300;T.height=150;var hP=null;var hV={alpha:true,antialias:false,failIfMajorPerformanceCaveat:true,preserveDrawingBuffer:false,stencil:false};try{hP=T.getContext("webgl",hV)||T.getContext("experimental-webgl",hV)}catch(hR){i._supportWebGL=false}if(hP===null){i._supportWebGL=false}else{i._supportWebGL=true;var hT=hP.getExtension("WEBGL_debug_renderer_info");var hS="";if(hT){hS=hP.getParameter(hT.UNMASKED_RENDERER_WEBGL);if(dV(hS)===true){i._supportWebGL=true}var hU=hP.getParameter(hT.UNMASKED_VENDOR_WEBGL);i._renderer=hS;i._vendor=hU}if(!hT&&C.Browser.firefox){i._supportWebGL=true}if(!hT&&C.Platform.macintosh){i._supportWebGL=true}if(hS){if(hS.toLowerCase().indexOf("mali")>=0){i._supportWebGL=false}}if(hP.drawingBufferWidth!==T.width||hP.drawingBufferHeight!==T.height){i._supportWebGL=false}if(hP.getParameter(hP.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<4){i._supportWebGL=false}var hO=hP.getParameter(hP.MAX_TEXTURE_SIZE);a5.params.maxTextureSize=hO;if(hO<4096){i._supportWebGL=false}var hQ=hP.getParameter(hP.MAX_TEXTURE_IMAGE_UNITS);if(hQ<8){i._supportWebGL=false}if(!hP.getShaderPrecisionFormat||hP.getShaderPrecisionFormat(hP.FRAGMENT_SHADER,hP.HIGH_FLOAT).precision<23){i._supportWebGL=false}}return i._supportWebGL};a5.ifSupportCanvas2d=function(){var hP=a5.ifSupportCanvas2d;if(typeof hP.supportCanvas2d==="boolean"){return hP.supportCanvas2d}var T=document.createElement("canvas");var i=null;try{i=T.getContext("2d")}catch(hO){hP.supportCanvas2d=false}if(i===null){hP.supportCanvas2d=false}else{hP.supportCanvas2d=true}return hP.supportCanvas2d};a5.ifEnableCanvas2dMap=function(){var i=navigator.userAgent;var e=0;var hO=0;var hP=0;if(/macintosh/ig.test(i)){var T=0;if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(i)&&!/chrome/i.test(i)){T=parseInt((RegExp["\x241"]||RegExp["\x242"]),10)}if(T>0){return false}return true}if(/windows nt (\d+\.\d)/ig.test(i)){hO=parseFloat(RegExp.$1);if(hO>=6.1){if(/chrome\/(\d+\.\d)/i.test(i)){e=parseFloat(RegExp.$1);if(e>=31){return true}}if(/MSIE (\d+(\.\d+)?)/.test(i)){hP=parseFloat(RegExp.$1);if(hP>=10){return true}}if(/Firefox/.test(i)){return true}if(/rv:11.0/ig.test(i)){return true}if(/edge/ig.test(i)){return true}}}return false};a5.ifSupportCSS3=function(hS,i){var hR=document.createElement("div");var hQ="Webkit Moz O ms".split(" ");var e=hQ.length;var T="";var hO=hR.style;if(hS in hO){T=hS}hS=hS.replace(/^[a-z]/,function(hT){return hT.toUpperCase()});while(e--){var hP=hQ[e]+hS;if(hP in hO){T=hP;break}}if(i){return T}else{return T.length>0?true:false}};a5.isModernBrowser=a5.ifSupportCanvas2d()&&a5.ifSupportCSS3("transform");function eW(i,e){this._size=i;this._curSize=0;this._cache={};this._least=null;this._most=null;this._options={clearCallback:null,removeOldCallback:null};e=e||{};for(var T in e){this._options[T]=e[T]}this._getDataTimes=0;this._hitTimes=0}eW.prototype.setData=function(hO,hQ){var i=this._cache;var T=this._size;if(T===0){return}var e=this._curSize;if(e===T){this._removeOld()}var hP;if(!i[hO]){hP={key:hO,data:hQ,older:null,newwer:null};i[hO]=hP;if(this._least===null){this._least=hP}if(this._most===null){this._most=hP}this._curSize++}else{hP=i[hO];hP.data=hQ;if(this._most===hP){return}hP.older&&(hP.older.newer=hP.newer);hP.newer&&(hP.newer.older=hP.older);if(this._least===hP){this._least=hP.newer}}if(this._most&&this._most!==hP){this._most.newer=hP;hP.older=this._most;this._most=hP;hP.newer=null}};eW.prototype.getData=function(e){var i=this._cache[e];this._getDataTimes++;if(i){this._hitTimes++;var T=i.data;if(this._most===i){return T}i.older&&(i.older.newer=i.newer);i.newer&&(i.newer.older=i.older);if(this._least===i){this._least=i.newer}this._most.newer=i;i.older=this._most;i.newer=null;this._most=i;return T}return null};eW.prototype.getAllData=function(){return this._cache};eW.prototype.getHitRate=function(){return this._hitTimes/this._getDataTimes};eW.prototype.removeData=function(i){var e=this._cache;var T=e[i];if(!T){return}if(this._options.clearCallback){this._options.clearCallback(T.data,T.key)}T.older&&(T.older.newer=T.newer);T.newer&&(T.newer.older=T.older);if(this._least===T){this._least=T.newer}if(this._most===T){this._most=T.older}delete e[i];this._curSize--};eW.prototype._removeOld=function(){var e=this._cache;var hO=Math.round(this._size*0.6);var T=0;while(this._least&&T=0&&hP<60){hR=hS;hQ=T;e=0}else{if(hP>=60&&hP<120){hR=T;hQ=hS;e=0}else{if(hP>=120&&hP<180){hR=0;hQ=hS;e=T}else{if(hP>=180&&hP<240){hR=0;hQ=T;e=hS}else{if(hP>=240&&hP<300){hR=T;hQ=0;e=hS}else{if(hP>=300&&hP<360){hR=hS;hQ=0;e=T}}}}}}hR=(hR+i)*255>255?255:(hR+i)*255;hQ=(hQ+i)*255>255?255:(hQ+i)*255;e=(e+i)*255>255?255:(e+i)*255;return[Math.round(hR),Math.round(hQ),Math.round(e)]}};var cy={request:function(hR,hO,i,hT,T){var hP=(Math.random()*100000).toFixed(0);bl._rd["_cbk"+hP]=function(hU){if(hU.result&&hU.result["error"]&&hU.result["error"]===202){alert("该AK因为恶意行为已经被管理员封禁!");return}i=i||{};hR&&hR(hU,i);delete bl._rd["_cbk"+hP]};hT=hT||"";var hS;if(i&&i.useEncodeURI){hS=hg(hO,encodeURI)}else{hS=hg(hO,encodeURIComponent)}var hQ=this;var e=e0.apiHost+"/"+hT+"?"+hS+"&ie=utf-8&oue=1&fromproduct=jsapi";if(!T){e+="&res=api"}e+="&callback="+ex+"._rd._cbk"+hP;e+="&ak="+gb;hj.load(e)}};bl._rd={};var D={request:function(hO,e){if(e){var T=(Math.random()*100000).toFixed(0);BMapGL._rd["_cbk"+T]=function(hP){e&&e(hP);delete BMapGL._rd["_cbk"+T]};hO+="&callback=BMapGL._rd._cbk"+T}var i=S("script",{src:hO,type:"text/javascript",charset:"utf-8"});if(i.addEventListener){i.addEventListener("load",function(hQ){var hP=hQ.target;hP.parentNode.removeChild(hP)},false);i.addEventListener("error",function(hP){e&&e([,,,,,])},false)}else{if(i.attachEvent){i.attachEvent("onreadystatechange",function(hQ){var hP=window.event.srcElement;if(hP&&(hP.readyState=="loaded"||hP.readyState=="complete")){hP.parentNode.removeChild(hP)}})}}document.getElementsByTagName("head")[0].appendChild(i);i=null}};function a4(){this._map=null;this._container;this._type="control";this.blockInfoWindow=true;this._visible=true}a4.inherits(ea,"Control");C.extend(a4.prototype,{initialize:function(e){this._map=e;if(this._container){if(this._opts&&this._opts.container){this._opts.container.appendChild(this._container)}else{e.container.appendChild(this._container)}return this._container}return},_i:function(e){if(!this._container&&this.initialize&&bS(this.initialize)){this._container=this.initialize(e)}this._opts=this._opts||{printable:false};this._setStyle();this._setPosition();if(this._container){this._container._jsobj=this}},_setStyle:function(){var i=this._container;if(i){var e=i.style;e.position="absolute";e.zIndex=this._cZIndex||"10";e.MozUserSelect="none";if(!this._opts.printable){C.ac(i,"BMap_noprint")}C.on(i,"contextmenu",c8)}},remove:function(){this._map=null;if(!this._container){return}this._container.parentNode&&this._container.parentNode.removeChild(this._container);this._container._jsobj=null;this._container=null},_render:function(e){if(this._opts&&this._opts.container){this._container=dF(this._opts.container,'
')}else{var i='
';if(e&&e.config.autoSafeArea&&bs()){this._safeAreaContainer=dF(this._map.container,i);this._safeAreaContainer.style.position="absolute";this._safeAreaContainer.style.bottom="env(safe-area-inset-bottom)";this._container=dF(this._safeAreaContainer,i)}else{this._container=dF(this._map.container,i)}}if(this._visible===false){this._container.style.display="none"}return this._container},_setPosition:function(){this.setAnchor(this._opts.anchor)},setAnchor:function(hO){if(this.anchorFixed||typeof hO!=="number"||isNaN(hO)||hOBMAP_ANCHOR_BOTTOM_RIGHT){hO=this.defaultAnchor}this._opts.offset=this._opts.offset||this.defaultOffset;var T=this._opts.anchor;this._opts.anchor=hO;if(!this._container){return}var hQ=this._container;var e=this._opts.offset.width;var hP=this._opts.offset.height;hQ.style.left=hQ.style.top=hQ.style.right=hQ.style.bottom="auto";switch(hO){case BMAP_ANCHOR_TOP_LEFT:hQ.style.top=hP+"px";hQ.style.left=e+"px";break;case BMAP_ANCHOR_TOP_RIGHT:hQ.style.top=hP+"px";hQ.style.right=e+"px";break;case BMAP_ANCHOR_BOTTOM_LEFT:hQ.style.bottom=hP+"px";hQ.style.left=e+"px";break;case BMAP_ANCHOR_BOTTOM_RIGHT:hQ.style.bottom=hP+"px";hQ.style.right=e+"px";break;default:break}var i=["TL","TR","BL","BR"];C.rc(this._container,"anchor"+i[T]);C.ac(this._container,"anchor"+i[hO])},getAnchor:function(){return this._opts.anchor},setOffset:function(e){if(!e){return}this._opts=this._opts||{};this._opts.offset=new d6(e.width,e.height);if(!this._container){return}this.setAnchor(this._opts.anchor)},getOffset:function(){return this._opts.offset},getDom:function(){return this._container},show:function(){if(this._visible===true){return}this._visible=true;if(this._container){this._container.style.display=""}this.dispatchEvent(new a8("onshow"))},hide:function(){if(this._visible===false){return}this._visible=false;if(this._container){this._container.style.display="none"}this.dispatchEvent(new a8("onhide"))},isPrintable:function(){return !!this._opts.printable},isVisible:function(){if(!this._container&&!this._map){return false}return !!this._visible},_asyncLoadCode:function(){var e=this;d7.load("control",function(){if(e._asyncDraw){e._asyncDraw()}})}});var hA={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3};bl.ControlAnchor=hA;window.BMAP_ANCHOR_TOP_LEFT=0;window.BMAP_ANCHOR_TOP_RIGHT=1;window.BMAP_ANCHOR_BOTTOM_LEFT=2;window.BMAP_ANCHOR_BOTTOM_RIGHT=3;function dE(e){a4.call(this);e=e||{};this._opts={printable:false};C.extend(this._opts,e);this._copyrightCollection=[];this.defaultAnchor=BMAP_ANCHOR_BOTTOM_LEFT;this.defaultOffset=new d6(5,2);this.setAnchor(e.anchor);this._canShow=true;this.sateMapStyle=false;this.blockInfoWindow=false;this._asyncLoadCode()}dE.inherits(a4,"CopyrightControl");C.extend(dE.prototype,{initialize:function(e){this._map=e;return this._container},addCopyright:function(hO){var e={minZoom:0,bounds:null,content:"",mapType:""};for(var T in hO){e[T]=hO[T]}if(this._map){var hR=e.minZoom;if(hR===-1||hRthis._map.getMaxZoom()){e.minZoom=this._map.getMinZoom()}if(e.mapType!==""&&!b3[e.mapType]){e.mapType=BMAPGL_NORMAL_MAP}}var hP=this.getCopyright(hO.id);if(hP){for(var hQ in e){hP[hQ]=e[hQ]}}else{this._copyrightCollection.push(e)}},getCopyright:function(hO){for(var T=0,e=this._copyrightCollection.length;T=BMAP_NAVIGATION_CONTROL_LARGE&&e<=BMAP_NAVIGATION_CONTROL_ANIM){this._opts.type=e}else{this._opts.type=BMAP_NAVIGATION_CONTROL_LARGE}},getType:function(){return this._opts.type}});function bz(i){a4.call(this);i=i||{};this._opts={printable:false};this.defaultAnchor=BMAP_ANCHOR_TOP_RIGHT;this.defaultOffset=new d6(10,10);this.setAnchor(i.anchor);this._opts=C.extend(C.extend(this._opts,{offset:this.defaultOffset,enableSwitch:true}),i);var e=this;d7.load("control",function(){e._asyncDraw()})}bz.inherits(a4,"MapTypeControl");C.extend(bz.prototype,{initialize:function(e){this._map=e;return this._container},showStreetLayer:function(e){this._map.showStreetLayer(e)}});function cv(e){a4.call(this);e=e||{};this._opts={};this._opts=C.extend(this._opts,e);this._zoomInDisabled=false;this._zoomOutDisabled=false;this._zoomInTapped=false;this._zoomOutTapped=false;this.defaultAnchor=hA.BOTTOM_RIGHT;this.defaultOffset=new d6(15,20);this.setAnchor(e.anchor);this._asyncLoadCode()}cv.inherits(a4,"ZoomControl");C.extend(cv.prototype,{initialize:function(e){this._map=e;return this._container}});function bx(e){a4.call(this);e=e||{};this._opts={autoZoom:true,autoViewport:true};this._opts=C.extend(this._opts,e);this.defaultAnchor=hA.BOTTOM_LEFT;this.defaultOffset=new d6(10,50);this.watchPosition=this._opts.watchPosition||false;this.useCompass=this._opts.useCompass||false;this.locMarker=null;this.locLevel=16;this.setAnchor(this._opts.anchor);this.onLocationStart=e.onLocationStart||null;this._asyncLoadCode()}bx.inherits(a4,"LocationControl");C.extend(bx.prototype,{initialize:function(e){this._map=e;return this._container},startLocation:function(){this._startLocationCalled=true},stopLocationTrace:function(){},setOptions:function(e){e=e||{};C.extend(this._opts,e)}});function af(e){a4.call(this);e=e||{};this._opts={};this._opts=C.extend(this._opts,e);this.defaultAnchor=hA.BOTTOM_LEFT;this.defaultOffset=new d6(5,15);if(f2()){this.defaultOffset=new d6(10,10)}this.setAnchor(e.anchor)}af.inherits(a4,"LogoControl");C.extend(af.prototype,{initialize:function(i){this._map=i;var e=this._container=document.createElement("div");e.innerHTML='';i.getContainer().appendChild(e);return e}});function gy(e,i){this._map=e;this._indoorInfo=i;this._visible=true;this._adjustVisible=true;this._isMobile=f2();this._sizeConfig={FLOOR_BTN_HEIGHT:this._isMobile?35:26,SWITCH_ARROW_HEIGHT:this._isMobile?20:15};this._init()}gy.prototype._init=function(){this._render();this._bindDom();this._bind();this._adjustDisplayHeight();var e=new a8("onindoor_bar_show");e.uid=this._indoorInfo.uid;this._map.dispatchEvent(e)};gy.prototype._render=function(){if(!this._indoorInfo){return}var hS=this._isMobile;var e=this._div=S("div");C.ac(e,"floor-select-container");hS&&C.ac(e,"mobile");hS&&C.ac(e,"all-border-radius");var i=this._btnTop=S("button");C.ac(i,"floor-switch-top");C.ac(i,"top-border-radius");var hQ=S("div");C.ac(hQ,"floor-switch-top-icon");i.appendChild(hQ);var hP=this._btnBottom=S("button");var T=S("div");C.ac(T,"floor-switch-bottom-icon");hP.appendChild(T);C.ac(hP,"floor-switch-bottom");C.ac(hP,"bottom-border-radius");var hO=this._floorsContainer=S("div");C.ac(hO,"floors-container");hO.appendChild(this._createFloorsDom());this._div.appendChild(i);this._div.appendChild(hO);this._div.appendChild(hP);var hT=0;if(this._btnTop.style.display===""){hT=2*this._sizeConfig.SWITCH_ARROW_HEIGHT}this._div.style.height=parseInt(this._floorsContainer.style.height,10)+hT+"px";this._map.getContainer().appendChild(this._div);if(!hS){var hR=this;setTimeout(function(){hR._div.style.right="20px"},20)}};gy.prototype._createFloorsDom=function(){if(!this._indoorInfo){return}var T=this._ol=S("ol");var hQ=this._indoorInfo.currentFloor;for(var hP=this._indoorInfo.floors.length-1;hP>=0;hP--){var hR=this._indoorInfo.floors[hP].floorName;var e=S("li");var hO=S("button");C.ac(hO,"btn-select-floor");if(hP===hQ){C.ac(hO,"selected")}hO.setAttribute("data-floor",hP);hO.innerHTML=hR;e.appendChild(hO);T.appendChild(e)}return T};gy.prototype._updateUI=function(){if(!this._ol){this._render();this._bind();this._adjustDisplayHeight();return}this._ol=null;this._ol=this._createFloorsDom();this._floorsContainer.innerHTML="";this._floorsContainer.appendChild(this._ol);this._adjustDisplayHeight()};gy.prototype._bindDom=function(){var e=this;C.on(this._floorsContainer,"click",function(hO){var T=hO.target||hO.srcElement;if(T.tagName.toLowerCase()==="button"){e._map.showIndoor(e._indoorInfo.uid,parseInt(T.getAttribute("data-floor"),10));var i=new a8("onindoor_bar_click");i.uid=e._indoorInfo.uid;e._map.dispatchEvent(i)}});C.on(this._floorsContainer,"mouseover",function(T){var i=T.target;if(i.tagName.toLowerCase()==="button"){C.ac(i,"hover")}});C.on(this._floorsContainer,"mouseout",function(T){var i=T.target;if(i.tagName.toLowerCase()==="button"){C.rc(i,"hover")}});C.on(this._floorsContainer,"touchstart",function(T){var i=T.target;if(i.tagName.toLowerCase()==="button"){C.ac(i,"onmousedown")}});C.on(this._floorsContainer,"touchend",function(T){var i=T.target;if(i.tagName.toLowerCase()==="button"){C.rc(i,"onmousedown")}});C.on(this._btnTop,"mouseover",function(i){if(this._disable){return}C.ac(this,"hover")});C.on(this._btnTop,"mouseout",function(i){C.rc(this,"hover")});C.on(this._btnBottom,"mouseover",function(i){if(this._disable){return}C.ac(this,"hover")});C.on(this._btnBottom,"mouseout",function(i){C.rc(this,"hover")});C.on(this._btnTop,"touchstart",function(i){if(this.className.indexOf("disable")>-1){return}C.ac(this,"onmousedown")});C.on(this._btnTop,"touchend",function(i){C.rc(this,"onmousedown")});C.on(this._btnBottom,"touchstart",function(i){if(this.className.indexOf("disable")>-1){return}C.ac(this,"onmousedown")});C.on(this._btnBottom,"touchend",function(i){C.rc(this,"onmousedown")});C.on(this._btnTop,"click",function(i){e._setBarSliderTop(parseInt(e._ol.style.top,10)+26)});C.on(this._btnBottom,"click",function(i){e._setBarSliderTop(parseInt(e._ol.style.top,10)-26)});C.on(this._div,"mousemove",h);C.on(this._div,"wheel",c8);C.on(this._div,"mousewheel",c8);this._map.addEventListener("resize",function(){e._adjustDisplayHeight()})};gy.prototype._adjustDisplayHeight=function(){if(!this._indoorInfo){return}var hQ=this._map.getSize().height;var hR=this._sizeConfig.FLOOR_BTN_HEIGHT;var hS=hQ-291-100;if(this._isMobile){hS=hQ-12-108-this._map.config.bottomOffset}var e=this._indoorInfo.floors.length;var T=e*hR;var hO=e;var hU=0;var hV=this._floorsContainer.children[0];if(T>hS){this._showArrow=true;C.rc(hV.children[0].children[0],"top-border-radius");C.rc(hV.children[e-1].children[0],"bottom-border-radius")}else{this._showArrow=false;C.ac(hV.children[0].children[0],"top-border-radius");C.ac(hV.children[e-1].children[0],"bottom-border-radius")}while(T>hS){if(hO===0){break}hO--;hU=2*this._sizeConfig.SWITCH_ARROW_HEIGHT;T=hO*hR+hU}this._currentDisplayHeight=T;if(hO<3){this._setAdjustVisbile(false)}else{this._setAdjustVisbile(true)}this._floorsContainer.style.height=hO*hR+"px";var hP=this._indoorInfo.currentFloor;var i=e-hP;var hT=hP-1;this._div.style.height=parseInt(this._floorsContainer.style.height,10)+hU+"px";var hW=-(e-(hP+Math.round(hO/2)))*hR;this._setBarSliderTop(hW);if(hO=i*T){hO=e-i*T;C.ac(this._btnBottom,"disable");C.rc(this._btnBottom,"hover");this._btnBottom._disable=true}else{C.rc(this._btnBottom,"disable");this._btnBottom._disable=false}if(hO>=0){hO=0;C.ac(this._btnTop,"disable");C.rc(this._btnTop,"hover");this._btnTop._disable=true}else{C.rc(this._btnTop,"disable");this._btnTop._disable=false}this._ol.style.top=hO+"px"};gy.prototype._setAdjustVisbile=function(e){if(this._adjustVisible===e){return}this._adjustVisible=e;if(e&&this._visible){this._div.style.right="20px"}else{this._div.style.right="-30px"}};gy.prototype._bind=function(){var i=this._map;var e=this;i.on("indoor_status_changed",function(hS){if(e._visible===false){return}var T=e._ol;var hQ=hS.uid;if(!hQ){return}var hR=hS.floor;for(var hP=0;hP=1.5?2:1;this._imgPath=e0.imgPath+"earth-navi-control-pc4"+(this._imgRatio===2?"-2x.png":".png");this._enabled=true;var e=this;this._setHeadingOptions={callback:function(){e._target.setLock(false)}};this._init()}C.extend(hD.prototype,{_init:function(){this._createDom();this._render();this._bindDom();this._bind();this._updateUI();this._checkEnable()},_checkEnable:function(){if(this._target.getZoom()>=this._target._enableHeadingZoom){this.enable()}else{this.disable()}},_createDom:function(){var i=this._div=S("div");var e=i.style;e.position="absolute";e.zIndex=5;e.top="0";e.left="0";e.width="52px";e.height="54px";e.background="url("+this._imgPath+") no-repeat";e.backgroundSize="266px auto";this._rotateCCW=this._createButton();this._rotateCCW.title="逆时针转动";e=this._rotateCCW.style;e.left="2px";e.top="5px";e.zIndex="1";e.width="15px";e.height="42px";e.backgroundPosition="-75px -5px";this._rotateCW=this._createButton();this._rotateCW.title="顺时针转动";e=this._rotateCW.style;e.right="2px";e.top="5px";e.zIndex="1";e.width="15px";e.height="42px";e.backgroundPosition="-75px -5px";e.WebkitTransform=e.transform="scaleX(-1)";this._compass=this._createButton();this._compass.title="恢复正北方向";e=this._compass.style;e.left="19px";e.top="4px";e.width="14px";e.height="44px";e.backgroundPosition="-56px -4px";e.WebkitTransform=e.transform="rotate(0deg)";this._div.appendChild(this._rotateCCW);this._div.appendChild(this._compass);this._div.appendChild(this._rotateCW);this._domRendered=true},_createButton:function(){var e=S("button");var i=e.style;i.position="absolute";i.outline="none";i.border="none";i.background="url("+this._imgPath+") no-repeat";i.backgroundSize="266px auto";i.cursor="pointer";return e},_render:function(){this._outContainer.appendChild(this._div)},enable:function(){this._enabled=true;if(this._domRendered){this._rotateCCW.style.cursor="pointer";this._rotateCCW.style.opacity=1;this._rotateCW.style.cursor="pointer";this._rotateCW.style.opacity=1;this._compass.style.cursor="pointer";this._compass.style.opacity=1}},disable:function(){this._enabled=false;if(this._domRendered){this._rotateCCW.style.cursor="";this._rotateCCW.style.opacity=0.4;this._rotateCW.style.cursor="";this._rotateCW.style.opacity=0.4;this._compass.style.cursor="";this._compass.style.opacity=0.4}},_bindDom:function(){eH(this._div,["mousedown","click","dblclick"]);var i=this._map;var e=this;this._rotateCW.addEventListener("click",function(){if(e._isOperating||e._enabled===false){return}if(e._target.getLock()){return}if(e._target.getHeading()===360){e._target.setHeading(0)}e._target.setLock(true);e._target.setHeading(e._target.getHeading()+90,e._setHeadingOptions);i.fire(new a8("onrotatecwclick"))},false);this._rotateCCW.addEventListener("click",function(){if(e._isOperating||e._enabled===false){return}if(e._target.getLock()){return}if(e._target.getHeading()===-360){e._target.setHeading(0)}e._target.setLock(true);e._target.setHeading(e._target.getHeading()-90,e._setHeadingOptions);i.fire(new a8("onrotateccwclick"))},false);this._rotateCW.addEventListener("mouseover",function(){if(e._enabled===false){return}this.style.backgroundPosition="-89px -5px"},false);this._rotateCW.addEventListener("mouseout",function(){if(e._enabled===false){return}this.style.backgroundPosition="-75px -5px"},false);this._rotateCCW.addEventListener("mouseover",function(){if(e._enabled===false){return}this.style.backgroundPosition="-89px -5px"},false);this._rotateCCW.addEventListener("mouseout",function(){if(e._enabled===false){return}this.style.backgroundPosition="-75px -5px"},false);this._compass.addEventListener("click",function(){if(e._isOperating||e._enabled===false){return}if(e._target.getLock()){return}e._target.setLock(true);var T=false;if(e._target.getTilt()!==0){T=true;e._target.setTilt(0,e._setHeadingOptions)}if(e._target.getHeading()%360!==0){T=true;e._target.resetHeading(e._setHeadingOptions)}if(!T){e._target.setLock(false)}i.fire(new a8("oncompassclick"))},false)},_bind:function(){var e=this;this._bindTarget(this._target);if(this._map._renderType==="webgl"){this._map.addEventListener("maptypechange",function(i){if(this.mapType==="B_EARTH_MAP"){e._target=e._map._earth}else{e._target=e._map}e._bindTarget(e._target);e._checkEnable()})}},_bindTarget:function(i){if(i===this._map&&this._mapBinded){return}if(i===this._map._earth&&this._earthBinded){return}var e=this;i.addEventListener("heading_changed",function(T){e._updateUI()});i.addEventListener("animation_start",function(T){e._isOperating=true});i.addEventListener("animation_end",function(T){e._isOperating=false});i.on("load",function(){e._checkEnable()});i.on("zoom_changed",function(){e._checkEnable()});if(i===this._map){this._mapBinded=true}else{this._earthBinded=true}},_updateUI:function(){var e=this._target.getHeading();var i=this._compass.style;i.WebkitTransform=i.transform="rotate("+e+"deg)"},hide:function(){this._div.style.display="none"},show:function(){this._div.style.display="block"}});function ep(T,i){this._map=T;this._target=T;var hO=T.temp.originMapType||T.mapType;if(hO==="B_EARTH_MAP"&&T._earth){this._target=T._earth}this._outContainer=i||T.getContainer();this._imgRatio=a3()>=1.5?2:1;this._imgPath=e0.imgPath+"gl-navi-control-pc4"+(this._imgRatio===2?"-2x.png":".png");this._enabled=true;var e=this;this._setTiltOptions={callback:function(){e._target.setLock(false)}};this._init()}C.extend(ep.prototype,{_init:function(){this._createDom();this._render();this._bindDom();this._bind();this._checkEnable()},_checkEnable:function(){if(this._target.getZoom()>=this._target._enableTiltZoom){this.enable()}else{this.disable()}},_createDom:function(){var e=this._div=S("button");e.title="倾斜";var i=e.style;i.position="absolute";i.zIndex=5;i.outline="none";i.border="none";i.cursor="pointer";i.width="26px";i.height="26px";i.top="56px";i.right="13px";i.background="url("+this._imgPath+") no-repeat #fff";i.backgroundSize="266px auto";i.backgroundPosition="-110px 1px";i.boxShadow="1px 2px 1px rgba(0, 0, 0, 0.15)"},enable:function(){this._enabled=true;if(this._div){this._div.style.cursor="pointer"}this._updateUI()},disable:function(){this._enabled=false;if(this._div){this._div.style.cursor=""}this._updateUI()},_render:function(){this._outContainer.appendChild(this._div)},_bindDom:function(){var e=this;this._div.addEventListener("mousedown",function(hO){if(!e._enabled){return}if(e._target.getLock()){return}var i=e._target.getTilt();var T;if(i===e._map.getCurrentMaxTilt()){T="out"}else{if(i===0){T="in"}else{T=e._preTrend?e._preTrend:"in"}}e._curTrend=T;e._clickTimer=setTimeout(function(){e._map.fire(new a8("ontiltmsdown"));e._tiltAni=new o({duration:9999999,render:function(hP){i=e._target.getTilt();if(T==="in"&&i0){e._target.setTilt(i-1,{noAnimation:true})}}},finish:function(){e._tiltAni=null}});e._clickTimer=null},200);hO.stopPropagation()},false);this._div.addEventListener("mouseup",function(i){if(!e._enabled){return}if(e._tiltAni){e._tiltAni.stop()}e._preTrend=e._curTrend},false);this._div.addEventListener("click",function(hO){if(!e._enabled){return}if(!e._clickTimer){return}if(e._target.getLock()){return}clearTimeout(e._clickTimer);e._map.fire(new a8("ontiltclick"));var i=e._target.getTilt();e._target.setLock(true);hO.stopPropagation();var T=e._map.getCurrentMaxTilt();if(e._curTrend==="in"){e._target.setTilt(T,e._setTiltOptions)}else{if(e._curTrend==="out"){e._target.setTilt(0,e._setTiltOptions)}else{if(i0){i=78}if(this._mouseOver){e=52}if(this._enabled===false){hO=26;e=0;i=0}var hP="-"+(110+i+hO+e)+"px 1px";this._div&&(this._div.style.backgroundPosition=hP);if(this._enabled){if(T>0){this._div&&(this._div.title="恢复")}else{this._div&&(this._div.title="倾斜")}}else{this._div&&(this._div.title="请放大地图后操作")}},hide:function(){this._div.style.display="none"},show:function(){this._div.style.display="block"}});function cc(i){ea.call(this);this._opts={container:null,cursor:"default"};this._opts=C.extend(this._opts,i);this._type="contextmenu";this._map=null;this._container;this._left=0;this._top=0;this._items=[];this._rItems=[];this._dividers=[];this._enable=true;this.curPixel=null;this.curPoint=null;this._isOpen=false;var e=this;d7.load("menu",function(){e._draw()})}cc.inherits(ea,"ContextMenu");C.extend(cc.prototype,{initialize:function(e){this._map=e},remove:function(){this._map=null},addItem:function(hP,e){if(!hP||hP._type!="menuitem"||hP._text==""||hP._width<=0){return}for(var hO=0,T=this._items.length;hOthis._items.length-1){e=-1}hP._insertIndex=e;if(e===-1){this._items.push(hP);this._rItems.push(hP)}else{this._items.splice(e,0,hP);this._rItems.splice(e,0,hP)}},removeItem:function(hO){if(!hO||hO._type!="menuitem"){return}for(var T=0,e=this._items.length;Tthis._items.length-1){e=-1}var i={_type:"divider",_dIndex:this._dividers.length,_insertIndex:e};this._dividers.push({dom:null});if(e===-1){this._items.push(i)}else{this._items.splice(e,0,i)}},removeSeparator:function(T){if(!this._dividers[T]){return}for(var hO=0,e=this._items.length;hOT){this._items[hO]._dIndex--}}this._dividers.splice(T,1)},getDom:function(){return this._container},show:function(){if(this._isOpen==true){return}this._isOpen=true},hide:function(){if(this._isOpen==false){return}this._isOpen=false},setCursor:function(e){if(!e){return}this._opts.cursor=e},getItem:function(e){return this._rItems[e]},enable:function(){this._enable=true},disable:function(){this._enable=false}});function fv(T,hO,i){if(!T||!hO||typeof hO!="function"){return}ea.call(this);this._opts={width:100,id:""};i=i||{};this._opts.width=(i.width*1)?i.width:100;this._opts.id=i.id?i.id:"";this._text=T+"";this._callback=hO;this._map=null;this._type="menuitem";this._contextmenu=null;this._container=null;this._enabled=true;var e=this;d7.load("menu",function(){e._draw()})}fv.inherits(ea,"MenuItem");C.extend(fv.prototype,{initialize:function(e,i){this._map=e;this._contextmenu=i},remove:function(){this._contextmenu=null;this._map=null},setText:function(e){if(!e){return}this._text=e+""},getDom:function(){return this._container},enable:function(){this._enabled=true},disable:function(){this._enabled=false}});function dP(e,i){this.setSouthWest(e);this.setNorthEast(i)}C.extend(dP.prototype,{isEmpty:function(){return this.sw===null&&this.ne===null},equals:function(e){if(!e||e.isEmpty()||this.isEmpty()){return false}return this.sw.equals(e.sw)&&this.ne.equals(e.ne)},containsBounds:function(e){if(!e||e.isEmpty()||this.isEmpty()){return false}return(e.sw.lng>this.sw.lng&&e.ne.lngthis.sw.lat&&e.ne.latMath.max(this.sw.lng,this.ne.lng)||Math.max(T.sw.lat,T.ne.lat)Math.max(this.sw.lat,this.ne.lat)){return null}var hP=Math.max(this.sw.lng,T.sw.lng);var i=Math.min(this.ne.lng,T.ne.lng);var hO=Math.max(this.sw.lat,T.sw.lat);var e=Math.min(this.ne.lat,T.ne.lat);return new dP(new hp(hP,hO),new hp(i,e))},setMinMax:function(){this.minX=this.sw?this.sw.lng:null;this.minY=this.sw?this.sw.lat:null;this.maxX=this.ne?this.ne.lng:null;this.maxY=this.ne?this.ne.lat:null},containsPoint:function(e){if(!e){return}return(e.lng>=this.sw.lng&&e.lng<=this.ne.lng&&e.lat>=this.sw.lat&&e.lat<=this.ne.lat)},extend:function(e){if(!e){return}var i=e.lng;var T=e.lat;if(!this.sw){this.sw=e.clone()}if(!this.ne){this.ne=e.clone()}if(this.sw.lng>i){this.sw.lng=i}if(this.ne.lngT){this.sw.lat=T}if(this.ne.lat=0&&e<90||e>=270&&e<360){if(this.normalizedTopRight.lng-180&&e.lat<90&&e.lat>-90){return e}return this.convertMC2LL(e)},convertMC2LL:function(e){if(e===null){return e}if(!e){return new hp(0,0)}var T;var hP;T=new hp(Math.abs(e.lng),Math.abs(e.lat));for(var hO=0;hO=this.MCBAND[hO]){hP=this.MC2LL[hO];break}}var hQ=this.convertor(e,hP);return new c0(hQ.lat,hQ.lng)},convertLL2MC:function(hR){if(!hR){return new hp(0,0)}var hT=hR.lat;var hO=hR.lng;hO=this.getLoop(hR.lng,-180,180);hT=fC(hT,-85,85);var hQ;for(var hP=0;hP=this.LLBAND[hP]){hQ=this.LL2MC[hP];break}}if(!hQ){for(hP=0;hPe){T-=e-i}while(T90){i=90}}while(e<-180){e+=360}while(e>180){e-=360}e=e||0;i=i||0;hp.call(this,e,i)}c0.inherits(hp,"LatLng");C.extend(c0.prototype,{equals:function(e){return(this.lat===e.lat&&this.lng===e.lng)},clone:function(){return new c0(this.lat,this.lng)},add:function(e){return new c0(this.lng+e.lng,this.lat+e.lat)},sub:function(e){return new c0(this.lat-e.lat,this.lng-e.lng)},mult:function(e){return new c0(this.lng*e,this.lat*e)},div:function(e){return new c0(this.lng/e,this.lat/e)},mag:function(){return Math.sqrt(this.lng*this.lng+this.lat*this.lat)},getLngSpan:function(e){var i=this.lng;var T=Math.abs(e-i);if(T>180){T=360-T}return T},toString:function(){return"LatLng"}});function eD(e,i){if(e&&!i){i=e}this._sw=this._ne=null;this._swLng=this._swLat=null;this._neLng=this._neLat=null;if(e){this._sw=new c0(e.lat,e.lng);this._ne=new c0(i.lat,i.lng);this._swLng=e.lng;this._swLat=e.lat;this._neLng=i.lng;this._neLat=i.lat}}C.extend(eD.prototype,{isEmpty:function(){return !this._sw||!this._ne},equals:function(e){if(this.isEmpty()){return false}return this.getSouthWest().equals(e.getSouthWest())&&this.getNorthEast().equals(e.getNorthEast())},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},containsBounds:function(e){if(this.isEmpty()||e.isEmpty()){return false}return(e._swLng>this._swLng&&e._neLngthis._swLat&&e._neLatMath.max(this._swLng,this._neLng)||Math.max(T._swLat,T._neLat)Math.max(this._swLat,this._neLat)){return false}var hP=Math.max(this._swLng,T._swLng);var i=Math.min(this._neLng,T._neLng);var hO=Math.max(this._swLat,T._swLat);var e=Math.min(this._neLat,T._neLat);this._sw=new c0(hO,hP);this._ne=new c0(e,i);this._swLng=hP;this._swLat=hO;this._neLng=i;this._neLat=e;return true},containsPoint:function(e){if(this.isEmpty()){return false}return(e.lng>=this._swLng&&e.lng<=this._neLng&&e.lat>=this._swLat&&e.lat<=this._neLat)},extend:function(e){var i=e.lng;var T=e.lat;if(!this._sw){this._sw=new c0(0,0)}if(!this._ne){this._ne=new c0(0,0)}if(!this._swLng||this._swLng>i){this._sw.lng=this._swLng=i}if(!this._neLng||this._neLngT){this._sw.lat=this._swLat=T}if(!this._neLat||this._neLate.lat){this._swLat=e.lat}if(this._swLng>e.lng){this._swLng=e.lng}if(this._neLat10){T&&T({status:25});return}var e=e0.apiHost+"/geoconv/v1/?coords=";C.each(i,function(hQ){e+=hQ.lng+","+hQ.lat+";"});e=e.replace(/;$/gi,"");e=e+"&from="+hP+"&to="+hO+"&ak="+gb;D.request(e,function(hR){if(hR.status===0){var hQ=[];C.each(hR.result,function(hS){hQ.push(new hp(hS.x,hS.y))});delete hR.result;hR.points=hQ}T&&T(hR)})}});var dR={idle:0,freeze:1,zooming:2,dragging:3,moving:4,readyToDrag:5,readyToPinch:6,pinching:7,stdMapCtrlDrag:8,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,arrowOpCodes:{37:1,38:2,39:4,40:8}};var ee={_map:null,_html:"
",_maskElement:null,_cursor:"default",inUse:false,show:function(e){if(!this._map){this._map=e}this.inUse=true;if(!this._maskElement){this._createMask(e)}this._maskElement.style.display="block"},_createMask:function(i){if(!this._map){this._map=i}if(!this._map){return}var e=this._maskElement=dF(this._map.container,this._html);C.on(e,"mouseup",function(T){if(T.button==2){c8(T)}});C.on(e,"contextmenu",c8);e.style.display="none"},getDrawPoint:function(hO,hR,hP){hO=window.event||hO;var i=hO.offsetX||hO.layerX||0;var hQ=parseInt(hO.offsetY)||parseInt(hO.layerY)||0;var T=hO.target||hO.srcElement;if(T!=ee.getDom(this._map)&&hR==true){while(T&&T!=this._map.container){if(!(T.clientWidth==0&&T.clientHeight==0&&T.offsetParent&&T.offsetParent.nodeName.toLowerCase()=="td")){i+=T.offsetLeft;hQ+=T.offsetTop}T=T.offsetParent}}if(T!=ee.getDom(this._map)&&T!=this._map.container){return}if(typeof i==="undefined"||typeof hQ==="undefined"){return}if(isNaN(i)||isNaN(hQ)){return}if(hP){i=i+hP.x;hQ=hQ+hP.y}return this._map.pixelToPointIn(new eg(i,hQ))},hide:function(){if(!this._map){return}this.inUse=false;if(this._maskElement){this._maskElement.style.display="none"}},getDom:function(e){if(!this._maskElement){this._createMask(e)}return this._maskElement},setCursor:function(e){this._cursor=e||"default";if(this._maskElement){this._maskElement.style.cursor=this._cursor}}};function bi(){this._type="overlay"}bi.inherits(C.BaseClass,"Overlay");bi.getZIndex=function(i,e){i=i*1;if(!i){return 0}if(e){i=ek.convertMC2LL(new hp(0,i)).lat}return(i*-100000)<<1};C.extend(bi.prototype,{_i:function(e){this._map=e;if(!this.domElement&&bS(this.initialize)){this.domElement=this.initialize(e);if(this.domElement){this.domElement.style.WebkitUserSelect="none"}}this.draw()},initialize:function(e){throw"initialize方法未实现"},draw:function(){throw"draw方法未实现"},remove:function(){if(this.domElement&&this.domElement.parentNode){this.domElement.parentNode.removeChild(this.domElement)}this.domElement=null;this.dispatchEvent(new a8("onremove"))},hide:function(){this._visible=false;C.hide(this.domElement)},show:function(){this._visible=true;C.show(this.domElement)},getMap:function(){return this._map},dispose:function(){C.BaseClass.prototype.decontrol.call(this)}});function cS(){C.BaseClass.call(this);bi.call(this);this._visible=true;this._visibleInternal=true;this.infoWindow=null;this._dblclickTime=0}cS.inherits(bi,"OverlayInternal");C.extend(cS.prototype,{initialize:function(e){this.map=e;C.BaseClass.call(this,this.hashCode);return null},draw:function(){},remove:function(){this.decontrol();bi.prototype.remove.call(this)},hide:function(){this._visible=false},show:function(){this._visible=true},getDom:function(){return this.domElement},getContainer:function(){return this.domElement},setClassName:function(){},setConfig:function(i){if(!i){return}for(var e in i){if(i.hasOwnProperty(e)){this._config[e]=i[e]}}},getPoint:function(T,hO){if(!T){return this.point}else{var e=hO?hO.width:0;var hP=hO?hO.height:0;if(this.map){var i=this.map.pointToPixelIn(this.point);if(this._config&&this._config.offset){i.x=i.x+this._config.offset.width+e;i.y=i.y+this._config.offset.height+hP}else{i.x=i.x+e;i.y=i.y+hP}return this.map.pixelToPointIn(i)}}},setZIndex:function(e){this.zIndex=e},isVisible:function(){if(!this.domElement){return false}return !!this._visible},enableMassClear:function(){this._config.enableMassClear=true},disableMassClear:function(){this._config.enableMassClear=false},showInternal:function(){this._visibleInternal=true},hideInternal:function(e){this._visibleInternal=false;this._hideInternalReason=e}});function eU(e){this.map=e;this._overlays={};this._overlayArray=[];this._customOverlays=[];e._overlays=this._overlays;e._overlayArray=this._overlayArray;e._customOverlays=this._customOverlays;this._zoomingOrMoving=false;this._init()}eU.prototype._init=function(){if(this.map._renderType!=="webgl"){this._createOverlayContainers()}else{this._createWebGLOverlayContainers()}this._bind()};eU.prototype._createOverlayContainers=function(){var e=this.map;e.temp.overlayDiv=e.overlayDiv=this._createOverlayDiv(e.platform,200);e.temp.overlayDivEx=e.overlayDivEx=this._createOverlayDiv(e.platform,50);e._panes.floatPane=this._createOverlayDiv(e.temp.overlayDiv,800);e._panes.markerMouseTarget=this._createOverlayDiv(e.temp.overlayDiv,700);e._panes.floatShadow=this._createOverlayDiv(e.temp.overlayDiv,600);e._panes.labelPane=this._createOverlayDiv(e.temp.overlayDiv,500);e._panes.markerPane=this._createOverlayDiv(e.temp.overlayDiv,400);if(e.isCanvasMap()){e._panes.mapPane=this._createOverlayDiv(e.temp.overlayDivEx,50)}else{e._panes.mapPane=this._createOverlayDiv(e.temp.overlayDiv,200)}};eU.prototype._createWebGLOverlayContainers=function(){var e=this.map;e.temp.overlayDiv=e.overlayDiv=this._createOverlayDiv(e.platform,200);e._panes.floatPane=this._createOverlayDiv(e.temp.overlayDiv,800);e._panes.markerMouseTarget=this._createOverlayDiv(e.temp.overlayDiv,700);e._panes.floatShadow=this._createOverlayDiv(e.temp.overlayDiv,600);e._panes.labelPane=this._createOverlayDiv(e.temp.overlayDiv,500);e._panes.markerPane=this._createOverlayDiv(e.temp.overlayDiv,400)};eU.prototype._createOverlayDiv=function(e,hO){var T=S("div");var i=T.style;i.position="absolute";i.top=i.left=i.width=i.height="0";i.zIndex=hO;e.appendChild(T);return T};eU.prototype._bind=function(){var hP=this.map;var hO=this;function i(hR){hO.draw(hR)}if(hP._renderType!=="webgl"){hP.addEventListener("load",i);hP.addEventListener("moveend",i);hP.addEventListener("resize",i);hP.addEventListener("zoomend",i);hP.addEventListener("zooming_inner",i)}else{hP.on("update",i)}hP.addEventListener("zoomend",function(hR){if(this.mapType==="B_EARTH_MAP"){if(this._earth.getZoom()0;hR--){if(hO._customOverlays[hR].enableMassClear!==false){this.removeOverlay(hO._customOverlays[hR]);hO._customOverlays.splice(hR,1)}}});hP.addEventListener("infowindowopen",function(hS){var hR=this.infoWindow;if(hR){C.hide(hR.popDom);C.hide(hR.shadowDom)}});function T(){if(this.getMapType()==="B_EARTH_MAP"||this._renderType==="webgl"){if(hO._zoomingOrMoving===false){this._panes.markerMouseTarget.style.display="none";hO._zoomingOrMoving=true}}}function e(hT){if(this.getMapType()==="B_EARTH_MAP"||this._renderType==="webgl"){if(hO._zoomingOrMoving===true){this._panes.markerMouseTarget.style.display="";hO._zoomingOrMoving=false;for(var hS=0;hS1){this._config.strokeOpacity=1}if(this._config.fillOpacity<0||this._config.fillOpacity>1){this._config.fillOpacity=1}if(this._config.strokeStyle!=="solid"&&this._config.strokeStyle!=="dashed"&&this._config.strokeStyle!=="dotted"){this._config.strokeStyle="solid"}this.domElement=null;this._bounds=new dP();this.points=[];this.greatCirclePoints=[];this._parseCache=[];this._holesCache=[];this._parseCacheGL=[];this._parseCacheGLRaw=[];this._areaCacheGL=[];this._strokeStyleInfoForGL=[[]];this._fillStyleInfoForGL="";this.vertexMarkers=[];this._temp={}}w.JOININDEX={miter:0,round:1,bevel:2};w.CAPINDEX={round:0,butt:1,square:2};w.inherits(cS,"Graph");w.getGraphPoints=function(i){var e=[];if(!i||i.length===0){return e}if(typeof i==="string"){var T=i.split(";");C.each(T,function(hP){var hO=hP.split(",");e.push(new hp(hO[0],hO[1]))})}if(i.constructor===Array&&i.length>0){e=i}return e};w.parseTolerance={0:[0.09,0.005,0.0001,0.00001],1:[9000,500,20,1]};C.extend(w.prototype,{initialize:function(e){this.map=e;return null},draw:function(){},setPoints:function(e){this._clearCache();this.points=w.getGraphPoints(e).slice(0);this._calcBounds()},setPathIn:function(e){this.setPoints(e)},_calcBounds:function(){if(!this.points){return}var e=this;e._bounds=new dP();if(!this.hasMultipleParts){C.each(this.points,function(i){e._bounds.extend(i)})}else{C.each(this.points,function(i){C.each(i,function(T){e._bounds.extend(T)})})}},getPoints:function(){return this.points},getPathIn:function(){return this.points},setPointAt:function(i,e){if(!e||!this.points[i]){return}this._clearCache();this.points[i]=new hp(e.lng,e.lat);this._calcBounds()},setPositionAt:function(i,e){if(!e||!this.points[i]){return}var T=ek.convertLL2MC(e);this.setPointAt(i,T)},setOptions:function(i){i=i||{};for(var e in i){if(i.hasOwnProperty(e)){this._config[e]=i[e]}}},setStrokeColor:function(e){this._config.strokeColor=e},getStrokeColor:function(){return this._config.strokeColor},setStrokeLineCap:function(e){this._config.strokeLineCap=e},getStrokeLineCap:function(){return this._config.strokeLineCap},setStrokeLineJoin:function(e){this._config.strokeLineJoin=e},getStrokeLineJoin:function(){return this._config.strokeLineJoin},setStrokeWeight:function(e){if(e>0){this._config.strokeWeight=e}},getStrokeWeight:function(){return this._config.strokeWeight},setStrokeOpacity:function(e){if(!e||e>1||e<0){return}this._config.strokeOpacity=e},getStrokeOpacity:function(){return this._config.strokeOpacity},setFillOpacity:function(e){if(e>1||e<0){return}this._config.fillOpacity=e},getFillOpacity:function(){return this._config.fillOpacity},setStrokeStyle:function(e){if(e!=="solid"&&e!=="dashed"&&e!=="dotted"){return}this._config.strokeStyle=e},getStrokeStyle:function(){return this._config.strokeStyle},setFillColor:function(e){this._config.fillColor=e||""},getFillColor:function(){return this._config.fillColor},getBoundsIn:function(){this._bounds.setMinMax();return this._bounds},getBounds:function(){var e=this.getBoundsIn();var i=new dP(ek.convertMC2LL(e.getSouthWest()),ek.convertMC2LL(e.getNorthEast()));i.setMinMax();return i},remove:function(){if(this.map){this.map.removeEventListener("onmousemove",this._graphMouseEvent);this.map.removeEventListener("onclick",this._graphClickEvent)}cS.prototype.remove.call(this);this._clearCache();var e=new a8("onlineupdate");e.action="remove";e.overlay=this;this.fire(e)},enableEditing:function(){if(this.points.length<2){return}this._config.enableEditing=true;var e=this;d7.load("poly",function(){e.addVertexs()},true)},disableEditing:function(){this._config.enableEditing=false;var e=this;d7.load("poly",function(){e.clearVertexs()},true)},getLength:function(){if(typeof this._length==="number"){return this._length}if(typeof this._config.totalLength==="number"){this._length=this._config.totalLength;return this._length}var T=0;if(this.points.length<=1){this._length=0;return T}for(var e=0;e0){hP=this.greatCirclePoints}var hQ=this.getParseTolerance(e.getZoom(),e.config.coordType);if(!this.hasMultipleParts){var hT=hC(hP,hQ)}else{var hT=[];for(var T=0;T1&&this.srcSetObject["2x"]){return this.srcSetObject["2x"]}return this.imageUrl};g8.prototype.setPrintImageUrl=function(e){if(!e){return}this.printImageUrl=e};g8.prototype.setSize=function(e){if(!e){return}this.size=new d6(e.width,e.height);this._renderData=null};g8.prototype.setOffset=function(e){if(!e){return}this.anchor=this.offset=new d6(e.width,e.height);this._renderData=null};g8.prototype.setAnchor=function(e){this.setOffset(e)};g8.prototype.setImageOffset=function(e){if(!e){return}this.imageOffset=new d6(e.width,e.height);this._renderData=null};g8.prototype.setInfoWindowOffset=function(e){if(!e){return}this.infoWindowOffset=new d6(e.width,e.height)};g8.prototype.setImageSize=function(e){if(!e){return}this.imageSize=new d6(e.width,e.height)};g8.prototype.setImageSrcset=function(T){var e="";if(!T){return}for(var i in T){if(T.hasOwnProperty(i)){this.srcSetObject[i]=T[i];e=T[i]+" "+i+","}}this.srcSet=e};g8.prototype.toString=function(){return"Icon"};g8.prototype.generateRenderData=function(hQ){var T=this.offset;var e=this.size;var hS=this.imageOffset;var hR=[];hR.push(-T.width,T.height-e.height,0);hR.push(e.width-T.width,T.height-e.height,0);hR.push(e.width-T.width,T.height,0);hR.push(-T.width,T.height-e.height,0);hR.push(e.width-T.width,T.height,0);hR.push(-T.width,T.height,0);if(hQ!==0){for(var hP=0;hP730){this._config.width=730}}if(this._config.height!==0){if(this._config.height<60){this._config.height=60}if(this._config.height>650){this._config.height=650}}if(this._config.maxWidth!==0){if(this._config.maxWidth<220){this._config.maxWidth=220}if(this._config.maxWidth>730){this._config.maxWidth=730}}this.isWinMax=false;this.IMG_PATH=e0.imgPath;this.overlay=null;var e=this;d7.load("infowindow",function(){e._draw()})}an.inherits(C.BaseClass,"InfoWindow");C.extend(an.prototype,{setWidth:function(e){e=e*1;if(!e&&e!==0||isNaN(e)||e<0){return}if(e!==0){if(e<220){e=220}if(e>730){e=730}}this._config.width=e},setHeight:function(e){e=e*1;if(!e&&e!==0||isNaN(e)||e<0){return}if(e!==0){if(e<60){e=60}if(e>650){e=650}}this._config.height=e},setMaxWidth:function(e){e=e*1;if(!e&&e!==0||isNaN(e)||e<0){return}if(e!==0){if(e<220){e=220}if(e>730){e=730}}this._config.maxWidth=e},setTitle:function(e){this._config.title=e||""},setContent:function(e){this.content=e||""},getContent:function(){return this.content},setMaxContent:function(e){this._config.maxContent=e||""},redraw:function(){},enableAutoPan:function(){this._config.enableAutoPan=true},disableAutoPan:function(){this._config.enableAutoPan=false},enableCloseOnClick:function(){this._config.enableCloseOnClick=true},disableCloseOnClick:function(){this._config.enableCloseOnClick=false},enableMaximize:function(){this._config.enableMaximize=true},disableMaximize:function(){this._config.enableMaximize=false},show:function(){this._visible=true},hide:function(){this._visible=false},close:function(){this.hide()},dispose:function(){C.BaseClass.prototype.decontrol.call(this)},maximize:function(){this.isWinMax=true},restore:function(){this.isWinMax=false},setConfig:function(i){if(!i){return}for(var e in i){if(typeof(this._config[e])===typeof(i[e])){this._config[e]=i[e]}}},isVisible:function(){return this.isOpen()},isOpen:function(){return false},getPointIn:function(){if(this.overlay&&this.overlay.getPoint){return this.overlay.getPoint()}},getTitle:function(){return this._config.title||""},getPosition:function(){return this.latLng;var e=this.getPointIn();return ek.convertMC2LL(e)},getPoint:function(){var e=this.getPointIn();return ek.convertMC2LL(e)},getOffset:function(){return this._config.offset},dispose:function(){C.BaseClass.prototype.decontrol.call(this)},toString:function(){return"InfoWindow"}});c5.prototype.openInfoWindow=function(T,e){T.latLng=new c0(e.lat,e.lng);var i=ek.convertLL2MC(e);this.openInfoWindowIn(T,i)};c5.prototype.closeInfoWindow=function(){var e=this.temp.infoWin||this.temp._infoWin;if(e&&e.overlay){e.overlay.closeInfoWindow()}};c5.prototype.openInfoWindowIn=function(hO,e){if(!hO||hO.toString()!=="InfoWindow"||!e||e.toString()!=="Point"){return}var i=this.temp;if(!i.marker){var T=new g8(e0.imgPath+"blank.gif",{width:1,height:1});i.marker=new dn(e,{icon:T,width:1,height:1,offset:new d6(0,0),infoWindowOffset:new d6(0,0),clickable:false});i.marker._fromMap=1}else{i.marker.setPoint(e)}this.addOverlay(i.marker);i.marker.show();i.marker.openInfoWindow(hO)};cS.prototype.openInfoWindow=function(e){if(this.map){this.map.closeInfoWindow();e._visible=true;this.map.temp._infoWin=e;e.overlay=this;C.BaseClass.call(e,e.hashCode)}};cS.prototype.closeInfoWindow=function(){if(this.map&&this.map.temp._infoWin){this.map.temp._infoWin._visible=false;this.map.temp._infoWin.decontrol();this.map.temp._infoWin=null}};function aK(T,i){cS.call(this);this.content=T;this.map=null;this.domElement=null;this._config={width:0,offset:new d6(0,0),styles:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",fontSize:"12px",zIndex:"80",MozUserSelect:"none"},point:null,enableMassClear:true};i=i||{};this.setConfig(i);if(this._config.width<0){this._config.width=0}this.point=this._config.point;var e=this;d7.load("marker",function(){e._draw()})}aK.inherits(cS,"Label");C.extend(aK.prototype,{setPoint:function(e){if(e&&e.toString()==="Point"&&!this.getMarker()){this.point=this._config.point=new hp(e.lng,e.lat)}},setContent:function(e){this.content=e},getContent:function(e){return this.content},setOpacity:function(e){if(e>=0&&e<=1){this._config.opacity=e}},setOffset:function(e){if(!e||e.toString()!=="Size"){return}this._config.offset=new d6(e.width,e.height)},getOffset:function(){return this._config.offset},setStyle:function(e){e=e||{};this._config.styles=C.extend(this._config.styles,e)},setStyles:function(e){this.setStyle(e)},setTitle:function(e){this._config.title=e||""},getTitle:function(){return this._config.title},setMarker:function(e){if(this._marker&&this._marker!==e){this._marker._config.label=null}this._marker=e;if(e){this.point=this._config.point=e.getPoint()}else{this.point=this._config.point=null}},getMarker:function(){return this._marker||null},getPositionIn:function(){return this.getPoint()},});function fM(T,i){var hO={};for(var e in i){if(i.hasOwnProperty(e)){if(e==="position"){hO.point=ek.convertLL2MC(i[e]);this.latLng=new c0(i[e]["lat"],i[e]["lng"])}else{hO[e]=i[e]}}}aK.call(this,T,hO)}fM.inherits(aK,"LabelOut");C.extend(fM.prototype,{toString:function(){return"Label"},setPosition:function(e){this.latLng=new c0(e.lat,e.lng);var i=ek.convertLL2MC(e);this.setPoint(i)},getPosition:function(){return this.latLng;var e=this.getPositionIn();return ek.convertMC2LL(e)}});window.BMAP_ANIMATION_DROP=1;window.BMAP_ANIMATION_BOUNCE=2;function dn(e,i){cS.call(this);i=i||{};this.point=e;this._rotation=0;this.map=null;this._animation=null;this.domElement=null;this.iconDom=null;this.infoWindowDom=null;this.siblingElement=null;this.textureCoord=null;this.textureCoordGLMap=null;this.collisionDetectionFailed=false;this._config={offset:new d6(0,0),opacity:1,icon:null,title:"",infoWindow:null,label:null,baseZIndex:0,clickable:true,zIndexFixed:false,isTop:false,enableMassClear:true,enableDragging:false,raiseOnDrag:false,restrictDraggingArea:false,startAnimation:"",enableCollisionDetection:false,rank:0,enableDraggingMap:false};this.setConfig(i);if(!i.icon){this._config.icon=new g8(e0.imgPath+"marker_red.png",new d6(23,25),{offset:new d6(10,25),infoWindowOffset:new d6(10,0)})}this._isDragging=false;var T=this;d7.load("marker",function(){T._draw()})}dn.TOP_ZINDEX=bi.getZIndex(-90)+1000000;dn.DRAG_ZINDEX=dn.TOP_ZINDEX+1000000;dn._injectMethond=function(e){C.extend(dn.prototype,e)};dn.inherits(cS,"Marker");C.extend(dn.prototype,{toString:function(){return"Marker"},setIcon:function(e){if(e){this._config.icon=e;this.textureCoord=this.textureCoordGLMap=null}},getIcon:function(){return this._config.icon},setLabel:function(e){if(!(e instanceof aK)){return}this._config.label=e;e._config.enableMassClear=this._config.enableMassClear;e.setPoint(this.point)},getLabel:function(){return this._config.label},enableDragging:function(){this._config.enableDragging=true},disableDragging:function(){this._config.enableDragging=false},setPoint:function(e){if(e){this.point=this._config.point=new hp(e.lng,e.lat);this.latLng=ek.convertMC2LL(e)}},setPositionIn:function(e){this.setPoint(e)},getPositionIn:function(){return this.getPoint()},setTop:function(i,e){this._config.isTop=!!i;if(i){this._addi=e||0}},setTitle:function(e){this._config.title=e||""},getTitle:function(){return this._config.title},setOffset:function(e){if(e){this._config.offset=e}},getOffset:function(){return this._config.offset},setAnimation:function(e){this._animation=e},setRank:function(e){this._config.rank=e},getRank:function(){return this._config.rank},setRotation:function(e){while(e<0){e+=360}this._rotation=e%360},getRotation:function(){return this._rotation}});function aA(e,T){this.latLng=new c0(e.lat,e.lng);var i=ek.convertLL2MC(e);dn.call(this,i,T)}aA.inherits(dn,"MarkerOut");C.extend(aA.prototype,{toString:function(){return"Marker"},setPosition:function(e){this.latLng=new c0(e.lat,e.lng);var i=ek.convertLL2MC(e);this.setPositionIn(i)},getPosition:function(){return this.latLng;var e=this.getPositionIn();return ek.convertMC2LL(e)}});window.BMAP_SHAPE_CIRCLE=1;window.BMAP_SHAPE_RECT=2;function ba(i,e,T){cS.call(this,e,T);this.domElement=null;this.point=i;T=T||{};this._config={};this._config.height=e||0;this._config.size=typeof T.size==="number"?T.size:50;this._config.fillOpacity=typeof T.fillOpacity==="number"?T.fillOpacity:0.8;this._config.shape=typeof T.shape==="number"?T.shape:1;fC(this._config.fillOpacity,0,1);if(T.fillColor===""){this._config.fillColor=""}else{this._config.fillColor=T.fillColor?T.fillColor:"#f00"}this._config.icon=T.icon instanceof g8?T.icon:"";this._config.enableMassClear=T.enableMassClear||true;var hO=this;d7.load("marker",function(){hO._draw()})}ba.inherits(cS,"Marker3D");C.extend(ba.prototype,{setPoint:function(e){this.point=this._config.point=new hp(e.lng,e.lat);this.latLng=ek.convertMC2LL(e);var i=new a8("onstatus_change");i.overlay=this;i.action="setPoint";this.fire(i)},setPositionIn:function(e){this.setPoint(e)},getPositionIn:function(){return this.getPoint()},setDomAttribute:function(i,T){var e=new a8("onlineupdate");e.overlay=this;this.dispatchEvent(e)}});function cs(i,e,hO){this.latLng=new c0(i.lat,i.lng);var T=ek.convertLL2MC(i);ba.call(this,T,e,hO)}cs.inherits(ba,"Marker3d");C.extend(cs.prototype,{toString:function(){return"Marker3D"},setHeight:function(e){this._config.height=Number(e);this.draw();var i=new a8("onlineupdate");i.overlay=this;this.dispatchEvent(i)},getHeight:function(){return this._config.height},setFillOpacity:function(e){if(e>1||e<0){return}this._config.fillOpacity=e;this.setDomAttribute("fillopacity",e)},getFillOpacity:function(){return this._config.fillOpacity},setFillColor:function(e){this._config.fillColor=e||"";this.setDomAttribute("fillcolor",e)},getFillColor:function(){return this._config.fillColor},setIcon:function(i){if(!i||!this.map){return}this._config.icon=i;if(this._config.icon){var e=this._config.icon.getCurrentImageUrl();var hO=i.getCurrentImageUrl()!==e;this._config.icon=i;this.textureCoord=this.textureCoordGLMap=null;this.draw();var T=new a8("onstatus_change");T.overlay=this;T.action="setIcon";T.imageUrlChanged=hO;this.fire(T)}},getIcon:function(){return this._config.icon},setPosition:function(e){this.latLng=new c0(e.lat,e.lng);var i=ek.convertLL2MC(e);this.setPositionIn(i)},getPosition:function(){var e=this.getPositionIn();return ek.convertMC2LL(e)}});function a(T,e){w.call(this,e);this._normalizedBounds=new dP();this.setPoints(T);var i=this;d7.load("poly",function(){i._draw()})}a.inherits(w,"Polyline");C.extend(a.prototype,{getBoundsIn:function(e){if(!e){this._bounds.setMinMax();return this._bounds}this._normalizedBounds.setMinMax();return this._normalizedBounds},setPoints:function(T){this._clearCache();this.points=w.getGraphPoints(T).slice(0);if(this._config.geodesic===true){this.greatCirclePoints.length=0;for(var e=0;e0){C.each(e.greatCirclePoints,function(i){e._bounds.extend(i)})}else{C.each(e.points,function(i){e._bounds.extend(i)})}e._normalizedBounds.setSouthWest(e._bounds.getSouthWest());e._normalizedBounds.setNorthEast(e._bounds.getNorthEast());if(e._normalizedBounds.sw.lng<-c5.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c5.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c5.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c5.WORLD_SIZE_MC_HALF}},calcGreatCirclePoints:function(hO,T){var hQ=hO.latLng;var hP=T.latLng;if(hQ.equals(hP)){return}var e=ek.getDistance(dH(hQ.lng),dH(hQ.lat),dH(hP.lng),dH(hP.lat));if(e<250000){return}var hU=Math.round(e/150000);var hY=this.calcAngularDistance(hQ,hP);this.greatCirclePoints.push(hO);var hX=hQ.lng;var hW=hO;for(var hR=0;hR30037726){if(hV.lng30037726){if(T.lng0){C.each(e.greatCirclePoints,function(i){e._bounds.extend(i)})}else{C.each(e.points,function(i){e._bounds.extend(i)})}e._normalizedBounds.setSouthWest(e._bounds.getSouthWest());e._normalizedBounds.setNorthEast(e._bounds.getNorthEast());if(e._normalizedBounds.sw.lng<-c5.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c5.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c5.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c5.WORLD_SIZE_MC_HALF}},getPathIn:function(){return this._path},setPathIn:function(e){this._path=e;this.setPoints(e)},getCpsIn:function(){return this._cps},setCpsIn:function(e){this._cps=e;this.setPoints(this._path)},calcBezierPoints:function(hO,hQ){var T=[];for(var e=0;e0){C.each(e.greatCirclePoints,function(i){e._bounds.extend(i)})}else{C.each(e.points,function(i){C.each(i,function(T){e._bounds.extend(T)})})}e._normalizedBounds.setSouthWest(e._bounds.getSouthWest());e._normalizedBounds.setNorthEast(e._bounds.getNorthEast());if(e._normalizedBounds.sw.lng<-c5.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c5.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c5.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c5.WORLD_SIZE_MC_HALF}}});function aO(T,e){w.call(this,e);e=e||{};if(typeof e.fillOpacity==="number"){this._config.fillOpacity=e.fillOpacity}else{this._config.fillOpacity=0.6}fC(this._config.fillOpacity,0,1);if(e.fillColor===""){this._config.fillColor=""}else{this._config.fillColor=e.fillColor?e.fillColor:"#fff"}this._parseFillCacheWebGL=[];this.setPoints(T,e);var i=this;d7.load("poly",function(){i._draw()})}aO.inherits(w,"Polygon");C.extend(aO.prototype,{setPoints:function(hQ){var hO=[];if(typeof hQ==="string"||hQ[0] instanceof hp||hQ[0] instanceof c0||this instanceof f5||hQ.length===0){var e=this._processSinglePointArray(hQ);this._userPoints=e.userPoints;hO=e.innerPoints;this.hasMultipleParts=false}else{this._userPoints=[];for(var hP=0;hP1&&!innerPoints[0].equals(innerPoints[innerPoints.length-1])){innerPoints.push(new hp(innerPoints[0].lng,innerPoints[0].lat))}return{userPoints:i,innerPoints:innerPoints}},setPointAt:function(i,e){if(!this._userPoints[i]){return}this._clearCache();this._userPoints[i]=new hp(e.lng,e.lat);this.points[i]=new hp(e.lng,e.lat);if(i===0&&!this.points[0].equals(this.points[this.points.length-1])){this.points[this.points.length-1]=new hp(e.lng,e.lat)}this._calcBounds()},setPositionAt:function(i,e){if(!this._userPoints[i]){return}var T=ek.convertLL2MC(e);this.setPointAt(i,T)},getPoints:function(){var e=this._userPoints;if(e.length===0){e=this.points}return e},getPathIn:function(){return this.getPoints()}});function g1(hT,hQ){if(!hT||hT.length===0){return}var hS=[];if(typeof hT==="string"||hT[0] instanceof hp||hT[0] instanceof c0){var e=this._processSinglePointArray(hT);for(var hR=0;hR1&&!innerPoints[0].equals(innerPoints[innerPoints.length-1])){innerPoints.push(new hp(innerPoints[0].lng,innerPoints[0].lat))}return{userPoints:i,innerPoints:innerPoints}},setPointAt:function(i,e){if(!this._userPoints[i]){return}this._clearCache();this._userPoints[i]=new hp(e.lng,e.lat);this.points[i]=new hp(e.lng,e.lat);if(i===0&&!this.points[0].equals(this.points[this.points.length-1])){this.points[this.points.length-1]=new hp(e.lng,e.lat)}this._calcBounds()},getPoints:function(){var e=this._userPoints;if(e.length===0){e=this.points}return e},getPathIn:function(){return this.getPoints()},setTopFillOpacity:function(e){if(e>1||e<0){return}this._config.topFillOpacity=e;this._setDomAttribute("topfillopacity",e)},getTopFillOpacity:function(){return this._config.topFillOpacity},setSideFillOpacity:function(e){if(e>1||e<0){return}this._config.sideFillOpacity=e;this._setDomAttribute("sidefillopacity",e)},getSideFillOpacity:function(){return this._config.sideFillOpacity},setTopFillColor:function(e){this._config.topFillColor=e||"";this._setDomAttribute("topfillcolor",e)},getTopFillColor:function(){return this._config.topFillColor},setSideFillColor:function(e){this._config.sideFillColor=e||"";this._setDomAttribute("sidefillcolor",e)},getSideFillColor:function(){return this._config.sideFillColor},setAltitude:function(e){this._config.altitude=Number(e);this.draw();var i=new a8("onlineupdate");i.overlay=this;this.dispatchEvent(i)},getAltitude:function(){return this._config.altitude}});function cd(hS,hQ,hT){if(!hS||hS.length===0){return}this.userPath=hS;var e=[];if(typeof hS==="string"||hS[0] instanceof hp||hS[0] instanceof c0){var hU=this._processSinglePointArray(hS);for(var hP=0;hP730){this._config.width=730}if(this._config.height!=0){if(this._config.height<50){this._config.height=50}if(this._config.height>650){this._config.height=650}}if(this._config.maxWidth!==0){if(this._config.maxWidth<50){this._config.maxWidth=50}if(this._config.maxWidth>730){this._config.maxWidth=730}}this.isWinMax=false;this.IMG_PATH=e0.imgPath;this.overlay=null;var e=this;d7.load("simpleInfowindow",function(){e._draw()})}hE.inherits(C.BaseClass,"SimpleInfoWindow");C.extend(hE.prototype,{setWidth:function(e){e=e*1;if(!e&&e!=0||isNaN(e)||e<0){return}if(e!=0){if(e<50){e=50}if(e>730){e=730}}this._config.width=e},setHeight:function(e){e=e*1;e-=10;if(!e&&e!=0||isNaN(e)||e<0){return}if(e!=0){if(e<50){e=50}if(e>650){e=650}}this._config.height=e},setMaxWidth:function(e){e=e*1;if(!e&&e!=0||isNaN(e)||e<0){return}if(e!=0){if(e<50){e=50}if(e>730){e=730}}this._config.maxWidth=e},setTitle:function(e){this._config.title=e||""},setContent:function(e){this.content=e||""},setMaxContent:function(e){this._config.maxContent=e||""},redraw:function(){},enableAutoPan:function(){this._config.enableAutoPan=true},disableAutoPan:function(){this._config.enableAutoPan=false},enableCloseOnClick:function(){this._config.enableCloseOnClick=true},disableCloseOnClick:function(){this._config.enableCloseOnClick=false},enableMaximize:function(){this._config.enableMaximize=true},disableMaximize:function(){this._config.enableMaximize=false},show:function(){this._visible=true},hide:function(){this._visible=false},close:function(){this.hide()},dispose:function(){C.BaseClass.prototype.decontrol.call(this)},maximize:function(){this.isWinMax=true},restore:function(){this.isWinMax=false},setConfig:function(i){if(!i){return}for(var e in i){if(typeof(this._config[e])==typeof(i[e])){this._config[e]=i[e]}}},isVisible:function(){return this.isOpen()},isOpen:function(){return false},getPoint:function(){if(this.overlay&&this.overlay.getPoint){return this.overlay.getPoint()}},getOffset:function(){return this._config.offset},dispose:function(){C.BaseClass.prototype.decontrol.call(this)},toString:function(){return"SimpleInfoWindow"}});c5.prototype.openSimpleInfoWindow=function(hO,e){if(!hO||hO.toString()!="SimpleInfoWindow"||!e||e.toString()!="Point"){return}var i=this.temp;if(!i.marker){var T=new g8(e0.imgPath+"blank.gif",{width:1,height:1});i.marker=new dn(e,{icon:T,width:1,height:1,offset:new d6(0,0),infoWindowOffset:new d6(0,0),clickable:false});i.marker._fromMap=1}else{i.marker.setPoint(e)}this.addOverlay(i.marker);i.marker.show();i.marker.openSimpleInfoWindow(hO)};c5.prototype.closeSimpleInfoWindow=function(){var e=this.temp.infoWin||this.temp._infoWin;if(e&&e.overlay){e.overlay.closeSimpleInfoWindow()}};cS.prototype.openSimpleInfoWindow=function(e){if(this.map){this.map.closeSimpleInfoWindow();e._visible=true;this.map.temp._infoWin=e;e.overlay=this;C.BaseClass.call(e,e.hashCode)}};cS.prototype.closeSimpleInfoWindow=function(){if(this.map&&this.map.temp._infoWin){this.map.temp._infoWin._visible=false;this.map.temp._infoWin.decontrol();this.map.temp._infoWin=null}};function eg(e,i){e=isNaN(e)?0:e;i=isNaN(i)?0:i;this.x=e;this.y=i}eg.prototype.equals=function(e){if(!e){return false}return e.x===this.x&&e.y===this.y};eg.prototype.clone=function(){return new eg(this.x,this.y)};eg.prototype.toString=function(){return"Pixel"};function d6(i,e){if(typeof i!=="number"){this.width=parseFloat(i)}else{this.width=i}if(typeof e!=="number"){this.height=parseFloat(e)}else{this.height=e}}d6.prototype.equals=function(e){return !!(e&&this.width===e.width&&this.height===e.height)};d6.prototype.toString=function(){return"Size"};var bE={B_NORMAL_MAP:{tileUrls:eo(e0.tileDomain,e0.rasterTilePath),vectorTileUrls:eo(e0.tileDomain,e0.vectorTilePath),tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,webgl:{minZoom:3,maxZoom:25},zoomLevelBase:18,errorUrl:e0.imgPath+"bg.png",bounds:new dP(new hp(-21364736,-11708041.66),new hp(23855104,12474104.17)),imgExtend:"png"},B_SATELLITE_MAP:{tileUrls:["//maponline0.bdimg.com/starpic/?qt=satepc&","//maponline1.bdimg.com/starpic/?qt=satepc&","//maponline2.bdimg.com/starpic/?qt=satepc&","//maponline3.bdimg.com/starpic/?qt=satepc&"],tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,zoomLevelBase:18,errorUrl:e0.imgPath+"bg.png",bounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),imgExtend:"png"},B_STREET_MAP:{tileUrls:eo(e0.tileDomain,e0.rasterTilePath),tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,zoomLevelBase:18,errorUrl:e0.imgPath+"bg.png",bounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),imgExtend:"png"},BMAP_CUSTOM_LAYER:{tileUrls:[""],tileSize:256,baseUnits:256,zoomLevelMin:1,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,zoomLevelBase:18,errorUrl:e0.imgPath+"blank.gif",bounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),imgExtend:"png"},B_EARTH_MAP:{tileUrls:[""],tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,webgl:{minZoom:3,maxZoom:21},zoomLevelBase:18,errorUrl:e0.imgPath+"blank.gif",bounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),imgExtend:"png"}};var b3=bE;function bQ(hT,i,hP,T,hO){this.mgr=hT;this.position=hP;this._cbks=[];this.name=hT.getTileName(T,hO,hT.map.config.style);this.info=T;this._transparentPng=hO.isTransparentPng();var hU=S("img");dj(hU);hU.galleryImg=false;var hS=hU.style;hS.position="absolute";hS.width=hT.tileSize+"px";hS.height=hT.tileSize+"px";hS.left=hP[0]+"px";hS.top=hP[1]+"px";this.img=hU;this.src=i;if(ab&&hP._offsetX===0){hS.opacity=0;hS.willChange="opacity"}var hR=this;this.img.onload=function(h2){if(!hR.mgr){return}var hX=hR.mgr;var hV=hX.bufferTiles;if(hX.bufferNumber>0){hV[hR.name]=hR;hV.push(hR.name)}var hZ=hV.length-hX.bufferNumber;for(var h0=0;hZ>0&&h00&&this._transparentPng){this.img.src=e0.imgPath+"blank.gif"}else{this.img.src=this.src}};bQ.prototype._callCbks=function(){var T=this;for(var e=0;e8);function fa(e){this.tileLayers=[];this.map=e;this.bufferNumber=300;this.mapTiles=[];this.bufferTiles=[];this.config=b3[this.map.mapType];this.errorUrl=this.config.errorUrl;this.tileSize=this.config.tileSize;this.baseUnits=this.config.baseUnits;this.baseZoomLevel=this.config.zoomLevelBase;this.tileURLs=this.config.tileUrls;this.imgNumber=0;this.numLoading=0;this.temp={}}bl.register(function(i){if(i._renderType==="webgl"){return}var e=i.tileMgr=new fa(i);i.addEventListener("mousewheel",function(T){e.mouseWheel(T)});i.addEventListener("dblclick",function(T){e.dblClick(T)});i.addEventListener("rightdblclick",function(T){e.dblClick(T)});i.addEventListener("minuspress",function(T){e.keypress(T)});i.addEventListener("pluspress",function(T){e.keypress(T)});i.addEventListener("load",function(T){if(this.mapType===BMAP_EARTH_MAP){return}e.loadTiles()});i.addEventListener("zoomstartcode",function(T){if(this.mapType===BMAP_EARTH_MAP){return}e._zoom(T)});i.addEventListener("moving",function(T){if(this.mapType===BMAP_EARTH_MAP){return}e.moveGridTiles()});i.addEventListener("resize",function(T){if(this.mapType===BMAP_EARTH_MAP){return}e.resizeMap(T)});i.addEventListener("addtilelayer",function(T){e.addTileLayer(T)});i.addEventListener("removetilelayer",function(T){e.removeTileLayer(T)})});C.extend(fa.prototype,{addTileLayer:function(hO){var T=this;var i=hO.target;T.tileLayers.push(i);if(T.map.loaded){T.moveGridTiles()}},removeTileLayer:function(hV){var hW=this;var hT=hV.target;var hR=hT.mapType;var hQ=hW.mapTiles;var hY=hW.bufferTiles;for(var T in hY){var hO=T.split("-")[1];if(hO==hR){delete hY[T]}}for(var T in hQ){var hO=T.split("-")[1];if(hO==hR){delete hQ[T]}}if(hW.zoomsDiv&&hW.zoomsDiv.parentNode){hW.zoomsDiv.parentNode.removeChild(hW.zoomsDiv);hW.zoomsDiv.innerHTML=""}var hP=hW.map;if(hP.deepZoom){var hX=hP.deepZoom.preDeepZoomDiv;if(hX&&hX.parentNode){hX.parentNode.removeChild(hX)}}for(var hU=0,hS=hW.tileLayers.length;hU=1.5?2:1;this.normalUdt=aB("ditu","normal").udt;this.numLoading=0;this.useThumbData=false;if(this.baseLayer){this.useThumbData=true}if(typeof this.opts.customLayer==="boolean"){this.customLayer=this.opts.customLayer}else{this.customLayer=true}}cO.inherits(ea,"TileLayer");C.extend(cO.prototype,{isTransparentPng:function(){return this.transparentPng},getTilesUrl:function(hV,e){var T=b3[this.mapType];if(typeof T!="object"){return null}var hO=hV.x;var hW=hV.y;if(this.mapType!==BMAP_SATELLITE_MAP){var hW=d0.calcLoopParam(hW,e).col}var i="";if(this.opts.tileUrlTemplate){i=this.opts.tileUrlTemplate;i=i.replace(/\{X\}/,hW);i=i.replace(/\{Y\}/,hO);i=i.replace(/\{Z\}/,e)}else{if(this.mapType==BMAPGL_NORMAL_MAP){var hU=this.isCanvasMap?0:1;var hQ=T.tileUrls[Math.abs(hW+hO)%T.tileUrls.length];if(window.offLineIPAddress){hQ=window.offLineIPAddress+"tile5/"}var hP=this.map.config.style;i=hQ+"?qt=vtile&x="+hO+"&y="+hW+"&z="+e+(hP==="default"?"":("&styleId="+e0.mapStyleNameIdPair[hP]))+"&styles=pl&udt="+this.normalUdt+"&scaler="+this.scaler+"&showtext="+hU;i=i.replace(/-(\d+)/gi,"M$1")}if(this.mapType==BMAP_SATELLITE_MAP){var hR=aB("ditu","satellite");var hT=hR.ver;var hS=hR.udt;i=T.tileUrls[Math.abs(hW+hO)%T.tileUrls.length]+"u=x="+hO+";y="+hW+";z="+e+";v="+hT+";type=sate&fm=46&udt="+hS;i=i.replace(/-(\d+)/gi,"M$1")}}return i},initialize:function(hP){this.map=hP;if(hP._renderType==="webgl"){var hO=null;if(this.customLayer!==false){hO=this.getTilesUrl}C.extend(this,fP);this.labelProcessor=new dg(this);this.callbackDataQueue=[];if(hO){this.getTilesUrl=hO}var e=this;hP.on("indoor_data_refresh",function(hQ){if(!e.baseLayer){return}e._refreshIndoorData(hQ.uid,hQ.floor)});hP.on("custom_labels_ready",function(hQ){if(!e.baseLayer){return}e._doWorkAfterLabelImageLoad(hQ.virtualTile,hQ.labelCanvas,null,hQ.imgKey)});hP.on("glmoduleloaded",function(){if(!e.baseLayer){return}e.updateAllIconsTextureCoords()})}if(!hP.temp.layerZIndex){hP.temp.layerZIndex=0}this.zIndex=this.zIndex||0;if(this.baseLayer){this.zIndex=0}if(!hP.temp.layid){hP.temp.layid=0}if(!this.opts.mapType){this.mapType="BMAP_CUSTOM_LAYER_"+hP.temp.layid;hP.temp.layid++}else{this.mapType=this.opts.mapType}var i=b3[this.mapType];if(!i){b3[this.mapType]={tileUrls:[],tileSize:256,baseUnits:256,zoomLevelMin:1,zoomLevelMax:19,minZoom:3,maxZoom:19,minDataZoom:3,maxDataZoom:19,zoomLevelBase:18,errorUrl:e0.imgPath+"/blank.gif",bounds:new dP(new hp(-21364736,-10616832),new hp(23855104,15859712)),imgExtend:"png"}}if(hP._renderType!=="webgl"){var T=dF(hP.platform,'
');T.style.display="";T.style.left=Math.ceil(-hP.offsetX+hP.width/2)+"px";T.style.top=Math.ceil(-hP.offsetY+hP.height/2)+"px";this.tilesDiv=T}this.isCanvasMap=hP.isCanvasMap();this.lastZoom=hP.getZoom()},remove:function(){if(this.tilesDiv&&this.tilesDiv.parentNode){this.tilesDiv.innerHTML="";this.tilesDiv.parentNode.removeChild(this.tilesDiv)}delete this.tilesDiv},getCopyright:function(){return this.copyright},getMapType:function(){return this.mapType},setZIndex:function(e){this.zIndex=e;if(this.tilesDiv){this.tilesDiv.style.zIndex=e}}});function c1(i,e,T){this.bounds=i;this.content=e;this.mapType=T}c1.inherits(ea,"Copyright");var gl={get:function(e){if(!gl.singleton){gl.singleton=new ai(e)}return gl.singleton}};function ai(i){this._map=i;this._tileMgr=i.tileMgr;this._animationDiv=null;this._preAnimationDiv=null;this._animation=null;this._baseLayerDiv=null;this._transformStyleName=a5.ifSupportCSS3("transform",true);this._transformOriginStyleName=a5.ifSupportCSS3("transformOrigin",true);this._preZoomTimes=1;this._preRenderTick=1;this._enableCanvas2dMap=!!(i.getRenderType()==="canvas");this._isIE9=!!(C.Browser.ie===9);var e=this;i.addEventListener("maptypechange",function(){e.hide()});i.addEventListener("load",function(){e.hide()})}C.extend(ai.prototype,{prepareLayer:function(){var hO=this._map;var e=this._tileMgr;this._canvas2dMapMgr=hO.canvas2dMapMgr;var T=this._baseLayerDiv=e.tilesDiv;if(!this._animationDiv){var i=this._preAnimationDiv;if(i){i.parentNode&&i.parentNode.removeChild(i);this._preAnimationDiv=null}this._preAnimationDiv=this._animationDiv=T.cloneNode(true);hO.platform.insertBefore(this._animationDiv,hO.platform.firstChild)}this.show()},prepareAniParam:function(){var hO=this._animationDiv;if(!hO){return}var e=hO.children.length;var T;this._zoomAniInfo=[];for(var hP=e-1;hP>-1;hP--){var hQ={};T=hO.children[hP].style;hQ.top=parseInt(T.top,10);hQ.left=parseInt(T.left,10);this._zoomAniInfo[hP]=hQ}},prepareLabelLayer:function(){var hP=this._map;if(this._enableCanvas2dMap&&hP.canvas2dMapMgr){if(this.touchZoomLabelCanvas){this.touchZoomLabelCanvas.parentNode.removeChild(this.touchZoomLabelCanvas)}var i=hP.canvas2dMapMgr._labelCanvas;this.touchZoomLabelCanvas=i.cloneNode(false);var e=this.touchZoomLabelCanvas.getContext("2d");e.drawImage(i,0,0);hP.platform.insertBefore(this.touchZoomLabelCanvas,hP.platform.firstChild);var hO=parseInt(i.style.left,10);var T=parseInt(i.style.top,10);this.touchZoomLabelCanvas.style.zIndex=9;this.touchZoomLabelCanvas.style[this._transformOriginStyleName]=(this._fixPosition.x-(hP.offsetX+hO))+"px "+(this._fixPosition.y-(hP.offsetY+T))+"px";i.style.visibility="hidden"}},show:function(){if(this._animationDiv){this._animationDiv.style.visibility=""}},showLabel:function(){var i=this._map;if(this._enableCanvas2dMap&&i.canvas2dMapMgr){var e=i.canvas2dMapMgr._labelCanvas;if(e){e.style.visibility=""}if(this.touchZoomLabelCanvas){this.touchZoomLabelCanvas.style.zIndex=-2;this.touchZoomLabelCanvas.style.visibility="hidden"}}},hide:function(){if(this._animationDiv){this._animationDiv.style.visibility="hidden"}if(this._preAnimationDiv){this._preAnimationDiv.style.visibility="hidden"}},hideNonAnimationLayers:function(){var hO=this._map;if(hO.getRenderType()==="dom"){if(hO.overlayDiv){hO.overlayDiv.style.visibility="hidden"}if(hO.overlayDivEx){hO.overlayDivEx.style.visibility="hidden"}}var hQ=hO.tileMgr.tileLayers;var hP;for(var T=0,e=hQ.length;T-1;hX--){var hV=this._zoomAniInfo[hX];hW=hO.children[hX].style;var hP=hV.left-hS.x;var T=hV.top-hS.y;hV.dx=hP*e-hP;hV.dy=T*e-T;hV.preDx=hP-hP;hV.preDy=T-T;h4=hV.preDx+(hV.dx-hV.preDx);hT=hV.preDy+(hV.dy-hV.preDy)+hU;hW.left=hV.left+h4+"px";hW.top=hV.top+hT+"px";hW.width=hW.height=256*e+"px"}if(this._enableCanvas2dMap){var h3=!h2._isIE9?"translate3d(0px, "+hU+"px, 0) scale("+e+")":"translate(0px, "+hU+"px) scale("+e+")";this.touchZoomLabelCanvas.style[hZ]=h3}},setZoomFinish:function(){this._animationDiv=null},startAnimation:function(hR){this.prepareLayer();this.hideNonAnimationLayers();var ia=this._map;if(this.touchZoomLabelCanvas){this.touchZoomLabelCanvas.style.display="none"}hR=hR||{};var h8=hR.zoomCount||0;var hW=hR.fixPosition;var h6=hR.fixMCPosition;var hU=hR.pixOffset;this._zoomCount=h8;var hO=ia.getZoom();var h9=hO+h8;var e=ia.config.enableContinuousZoom;var h0=0.5;var hV=5;var T=Math.pow(2,h8);var ic=this._baseLayerDiv;var hX={x:hW.x-parseInt(ic.style.left,10)-ia.offsetX,y:hW.y-parseInt(ic.style.top,10)-ia.offsetY};var hS=this._animationDiv;var h4=hS.children.length;var ie=this._preZoomTimes;var h7=[];var h5=this._transformStyleName;var hT=this._transformOriginStyleName;for(var h3=h4-1;h3>-1;h3--){var h1={};var h2=hS.children[h3].style;h1.top=parseInt(h2.top,10);h1.left=parseInt(h2.left,10);var hQ=h1.left-hX.x;var hP=h1.top-hX.y;h1.dx=hQ*T-hQ;h1.dy=hP*T-hP;h1.preDx=hQ*ie-hQ;h1.preDy=hP*ie-hP;h7[h3]=h1}var ib=this;var hZ;var id;var hY;this._zoomAni=new o({fps:60,duration:e?500:1,transition:function(i){i=i*hV/(2*h0);return hV*i-h0*i*i},render:function(ip){ip=ip*(4*h0)/(hV*hV);hZ=ie+ip*(T-ie);var ih=hO+ez(hZ);var im=null;var il=0;var iq=0;if(hR.onAnimationBeforeLooping){var ir=hR.onAnimationBeforeLooping(ip,ih);im=ir.loopingCenter;il=ir.yDiff;iq=ir.totalYDiff}for(var ii=h7.length-1;ii>-1;ii--){var ij=h7[ii];if(hS.children[ii]){var io=hS.children[ii].style;id=ij.preDx+(ij.dx-ij.preDx)*ip-hU.width*ip;hY=ij.preDy+(ij.dy-ij.preDy)*ip-hU.height*ip+il;io.left=ij.left+id+"px";io.top=ij.top+hY+"px";io.height=io.width=256*hZ+"px"}}var ig=hU.width*ip;var ik=hU.height*ip;if(ia.isRestrict){ib._enableCanvas2dMap&&ib._canvas2dMapMgr.clearLabel()}else{ib._enableCanvas2dMap&&ib._canvas2dMapMgr.drawLabel(hZ,hW,hO,h9,h8,ip,ig,ik,iq,il)}ib._preZoomTimes=hZ;ib._preRenderTick=ip;hR.onAnimationLooping&&hR.onAnimationLooping(ip,ih,im)},finish:function(){ib._preZoomTimes=1;ib._zoomAni=null;ib._animationDiv=null;hR.onAnimationFinish&&hR.onAnimationFinish();ib.showNonAnimationLayers()}});return this._zoomAni},stopAnimation:function(){if(this._zoomAni){this._zoomAni.stop();this._zoomAni=null}}});function c(e){this._initVars(e);this._initColorCanvas();this._bindEvent(e)}C.extend(c.prototype,{_initVars:function(e){this._map=e._map;this._canvas2dMapMgr=e;this._labelCtx=e._labelCtx;this.ratio=this._map.config.ratio;this.sizeRatio=this.ratio>1?2:1;this.RANK1=1000000;this.RANK2=2000000;this.RANK3=3000000;this.RANK4=4000000;this.RANK5=5000000},_initColorCanvas:function(){var i=256,T=S("canvas"),e=T.style;e.width=i+"px";e.height=i+"px";T.width=i;T.height=i;this._colorCvsSize=i;this._colorCvs=T;this._colorCtx=T.getContext("2d")},getLabelImageData:function(h1){var h0=h1.textImg;var T=h1.textPos;var hY=this.ratio;var hW=this.sizeRatio/hY;var hP=this._colorCtx;var hT=this._colorCvsSize;hP.clearRect(0,0,hT,hT);var hV=0;var e=0;var hS=0;for(var hU=0;hUhV){hV=T[hU].width;e=hU;hS=T[hU].drawX}}hV/=hW;var hX=0;for(var hU=0,hR=T.length;hUhV){hV=hZ.width/hW}hX+=hZ.height/hW+2*hY}var hO=hP.getImageData(0,0,hV,hX);var hQ=hP.getImageData(0,0,hV,hX);return[hO,hQ]},_bindEvent:function(i){var e=this,T=i._map;T.addEventListener("onspotmouseover",function(hR){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(hR.spots.length>0){var hQ=hR.spots[0].userdata.uid;var hP=hR.spots[0].userdata.name;var hO=e.findLabelByUid(hQ,hP);hO&&e._toHighLightColor(hO)}});T.addEventListener("onspotmouseout",function(hR){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(hR.spots.length>0){var hQ=hR.spots[0].userdata.uid;var hP=hR.spots[0].userdata.name;var hO=e.findLabelByUid(hQ,hP);hO&&e._toDefaultColor(hO)}});T.addEventListener("onspotclick",function(hR){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(hR.spots&&hR.spots.length>0){var hQ=hR.spots[0].userdata.uid;var hP=hR.spots[0].userdata.name;var hO=e.findLabelByUid(hQ,hP);hO&&e._changeBaseMapState(hO)}else{e._recoverNormalState()}});T.on("spot_status_reset",function(){e._recoverNormalState()});T.on("spot_highlight",function(hP){var hO=e.findLabelByUid(hP.uid);hO&&e._changeBaseMapState(hO)})},_getTextBound:function(hZ){if(!hZ.textPos){return null}var hX=this.ratio;var hV=this.sizeRatio/hX;var T=hZ.textPos;var hY=hZ.baseDrawX;var hW=hZ.baseDrawY;var hT=hY*hX+(T[0].drawX-hY)/hV;var hR=hW*hX+(T[0].drawY-hW)/hV;var hP=hT+T[0].width/hV;var e=hR+T[0].height/hV;for(var hU=0,hS=T.length;hUhP){hP=hQ+h0.width}if(hO+h0.height>e){e=hO+h0.height}}return[hT,hR,hP,e]},_toHighLightColor:function(T){if(T._tempRank&&T._tempRank==this.RANK5){return}var hS=this._getTextBound(T);if(!hS){return}var hO=Math.round(hS[0]);var i=Math.round(hS[1]);var e=this.getLabelImageData(T);var hQ=e[0];var hP=e[1];var hR=this._canvas2dMapMgr.getFilterImageData(hQ,this.RANK5);T._oldImgData=hP;this._labelCtx.putImageData(hR,hO,i)},_toDefaultColor:function(e){if(e._tempRank&&e._tempRank==this.RANK5){return}if(e._oldImgData){var i=this.sizeRatio;var T=this._getTextBound(e);if(!T){return}this._labelCtx.putImageData(e._oldImgData,Math.round(T[0]),Math.round(T[1]));e._oldImgData=null}},_changeBaseMapState:function(hO){var T=this._canvas2dMapMgr;var i=hO.guid;var e=hO.guidExt;var hP={guid:i,name:hO.name,guidExt:e};T._labelStrategy.setStrategyInfo(hP);T._loadData()},_recoverNormalState:function(){var e=this._canvas2dMapMgr;e._labelStrategy.setStrategyInfo(null);e._loadData()},findLabelByUid:function(hQ,hO){var hS=this._canvas2dMapMgr,e=hS._computedLabel;for(var hP=0,T=e.length;hPiV){iV=iY.drawX+iY.width}if(iY.drawY+iY.height>iU){iU=iY.drawY+iY.height}}}}}else{hW.tileX=hO;hW.tileY=T;h3=hO+hW.minXOriginal;h1=T+hW.minYOriginal;iV=hO+hW.maxXOriginal;iU=T+hW.maxYOriginal}if(h3!=undefined){var iN=iK+(h3-iK)/iD;var iM=iJ+(h1-iJ)/iD;var io=iK+(iV-iK)/iD;var il=iJ+(iU-iJ)/iD;hW.minX=iN;hW.minY=iM;hW.maxX=io;hW.maxY=il;var iR=(iN+io)/2,iQ=(iM+il)/2,iy=h2+(iR-iO/2)*h6,iw=h0+(ix/2-iQ)*h6;hW.geoX=iy;hW.geoY=iw;iq.push(hW)}}}if(i2){for(var im=0,ii=i2.length;imiV){iV=ib+iP.width}if(hZ+iP.height>iU){iU=hZ+iP.height}if(h5.length===2){var ia=h5[1];var h8=iK+ia.destX;var hY=iJ+ia.destY;if(hYiV){iV=h8+ia.width}if(hY+ia.height>iU){iU=hY+ia.height}}iG._tempBounds=[h3,h1,iV,iU];var iv=hX.iconPos;var hR=iv.geoX;var hP=iv.geoY;var iK=(hR-h2)/h6+iO/2;var iJ=(h0-hP)/h6+ix/2;var h3=iK+iv.destX;var h1=iJ+iv.destY;var iV=h3+iv.width;var iU=h1+iv.height;hX.textPos=hX.textPos||hX._textPos;var h5=hX.textPos;var iP=h5[0];var ib=iK+iP.destX;var hZ=iJ+iP.destY;if(ibiU){iU=hZ+iP.height}if(h5.length===2){var ia=h5[1];var h8=iK+ia.destX;var hY=iJ+ia.destY;if(h8iU){iU=hY+ia.height}}hX._tempBounds=[h3,h1,iV,iU]}for(var im=0,ii=i2.length;imi0[2]||iW[3]i0[3])){h4++;if(ir.textPos){ir._textPos=ir.textPos;delete ir.textPos}}var i0=i1._tempBounds;if(!(iW[2]i0[2]||iW[3]i0[3])){h4++;if(i1.textPos){i1._textPos=i1.textPos;delete i1.textPos}}if(h4>=2){if(iS.textPos){iS._textPos=iS.textPos;delete iS.textPos}}}}for(var im=0,ii=i2.length;imiV){iV=iP.drawX+iP.width}if(iP.drawY+iP.height>iU){iU=iP.drawY+iP.height}if(h5.length===2){var ia=h5[1];ia.drawX=iK+ia.destX;ia.drawY=iJ+ia.destY;if(ia.drawXiV){iV=ia.drawX+ia.width}if(ia.drawY+ia.height>iU){iU=ia.drawY+ia.height}}}var iN=iK+(h3-iK)/iD;var iM=iJ+(h1-iJ)/iD;var io=iK+(iV-iK)/iD;var il=iJ+(iU-iJ)/iD;it.minX=iN;it.minY=iM;it.maxX=io;it.maxY=il;var iF=(iN+io)/2;var iE=(iM+il)/2;var hS=h2+(iF-iO/2)*h6;var hQ=h0+(ix/2-iE)*h6;it.geoX=hS;it.geoY=hQ;iq.push(it)}}var iH=this._strategyInfo;if(iH){var ip=iH.guid;var iz=iH.name;var id=iH.guidExt;for(var im=0,ii=iq.length;imiu.maxX-ik||iS.maxY-ikiu.maxY-ik)){iS.arrIntersectIndex.push(ij)}}}for(var im=0,ii=iq.length;imhT){var T=hR.splice(0,hQ);for(var hU=0,hS=T.length;hU0){this.isDrawText=true}},_loadLabelData:function(hX,hW,hV,T,hY,e){var hQ=hX.toString();var hO=hW.toString();var hS="cbk_"+hQ.replace("-","_")+"_"+hO.replace("-","__")+"_"+Math.floor(hV);var h2=ex+"."+hS;var h1=this._labelDataUrls;var hU=Math.abs(hX+hW)%h1.length;var h7=h1[hU];if(window.offLineIPAddress){h7=window.offLineIPAddress+"pvd/"}var i=this.labelStyleParam;var h0="?qt=vtile";var h3="";if(this._map.config.style!=="default"){h3="&styleId="+e0.mapStyleNameIdPair[this._map.config.style]}var hZ="x={x}&y={y}&z={z}&udt={udt}&v={v}&styles={styles}"+h3+"&textonly=1&textimg=1&scaler={scaler}&fn="+encodeURIComponent(h2);var h4=d0.calcLoopParam(hX,hV).col;var hT=this.ratio>1?2:1;var hR=hZ.replace(/{x}/,h4).replace(/{y}/,hW).replace(/{z}/,Math.floor(hV)).replace(/{styles}/,i).replace(/{udt}/,this._udt).replace(/{v}/,this._version).replace(/{scaler}/,hT);var hP=h7+h0+"¶m="+window.encodeURIComponent(gi(hR));var h6=this;var h5=h6._map;bl[hS]=function(h8){h6._vectorDrawLib.parseLabelData(h8,hX,hW,hV,T,hY,function(id){var ia=h5.getCenterIn();var ie=h5.getZoom();var ih="viewKey_"+Math.floor(ia.lng)+"_"+Math.floor(ia.lat)+"_"+ie;h6._labelCount--;var ii=h6._getCache(hX,hW,hV,T).updateLabelCounter;h6._labelCount-=ii;var ib=h6._curViewLabels;if(ih===e||(h6._labelCount<0&&ie===hV)){ib.push(id)}if(ih===e){h6.statResponseCount++}if(h6._labelCount<=0){var h9=(new Date()).getTime();h6.updateLabel();var ic=(new Date()).getTime();var ig=new a8("oncanvasmaploaded");ig.drawTime=ic-h9;if(h6.statResponseCount===h6.statRequestCount){ig.isAllLoadedDrawing=true}h5.dispatchEvent(ig)}h6._setCacheValue(hX,hW,hV,T,id);delete bl[hS]})};hj.load(hP)},drawLabel:function(T,hO,hV,i,hT,hP,e,hQ,hU,hR){var hS=this;if(!hS._computedLabel){return}if(hS._computedLabel._zoom!==hV){hS.clearLabel();return}hS._map.temp.isPermitSpotOver=false;hS.clearLabel();hS._vectorDrawLib.zoomingIconAndText(this._labelCtx,hS._computedLabel,T,hO,i,hT,hP,e,hQ,hU,hR)},_addSpotData:function(){this._spotData=[];var hV=this._map.getZoom();for(var hQ=0,hP=this._computedLabel.length;hQhV)){continue}var hR=[];hR[0]=(hS.minX-hS.maxX)/2;hR[1]=(hS.minY-hS.maxY)/2;hR[2]=(hS.maxX-hS.minX)/2;hR[3]=(hS.maxY-hS.minY)/2;var hO=null;if(hS.iconPos){hO=new hp(hS.iconPos.geoX,hS.iconPos.geoY)}var T=hS.name?hS.name.replace("\\\\","
"):"";if(hS.iconPos&&hS.iconPos.iconType.indexOf("ditie")>-1&&this._map.getZoom()>14){T=""}var hU={n:T,pt:new hp(hS.geoX,hS.geoY),userdata:{iconPoint:hO,uid:hS.guid,name:T,type:hS.iconPos?hS.iconPos.iconType:"",iconImg:hS.iconImg,mapPoi:true,adver_log:hS.adver_log||""},bd:hR,tag:"MAP_SPOT_INFO"};this._spotData.push(hU)}var hT=new a8("onspotsdataready");hT.spots=this._spotData;this._map._spotDataOnCanvas=this._spotData;this._map.dispatchEvent(hT)},isClickableLabel:function(e){if(e.isDel||(!e.guid&&!e.name)){return false}return true},getFilterImageData:function(T,hR){var hS=T.data,hQ=this._labelStrategy,hR=parseInt(hR);for(var hT=0,hP=hS.length;hT0&&!hW){continue}var h0=Math.round(h9[0]/100);var hZ=Math.round(h9[1]/100);var ic={lng:h6+h0,lat:h5-(h3*hT-hZ)};var hR=h0/hT;var hQ=h3-hZ/hT;var h4=h9[7]||"";var ii=h9[5];var h7={type:"fixed",name:h4,textImg:h2,rank:h9[4],baseX:hR,baseY:hQ,iconPos:null,textPos:null,guid:h9[3]||"",tracer:id,direction:ii,startScale:3};if((ii!==dU&&hW||!hW)&&ih!==null){h7.iconPos=this._getIconPosition(ih,hV,hR,hQ,ic);if(h7.iconPos){T=h7.iconPos.width;h1=h7.iconPos.height}}if(T===0){h7.direction=dU}if(hW){h7.textPos=this._getTextDrawData(h9,hR,hQ,T,h1)}if(h7.textPos||h7.iconPos){h8.push(h7)}}}},_isVisible:function(e,i){var hO;if(!this._binaryCache[e]){hO=e.toString(2);if(hO.length<8){hO=new Array(8-hO.length+1).join("0")+hO}this._binaryCache[e]=hO}hO=this._binaryCache[e];var T=I[i].start;return hO[i-T]==="1"},_getIconPosition:function(hS,hQ,T,i,e){var hO=this._map.config.style;var hT=bl["iconSetInfo"+hO][hS];if(!hT){if(hS.charCodeAt(0)>=48&&hS.charCodeAt(0)<=57){hT=bl["iconSetInfo"+hO]["_"+hS]}}if(!hT){return null}var hP=hT[0];var hR=hT[1];hP=hP*hQ;hR=hR*hQ;return{srcX:0,srcY:0,destX:T-hP/2,destY:i-hR/2,width:hP,height:hR,geoX:e.lng,geoY:e.lat,mcPt:e,iconType:hS}},_getTextDrawData:function(hZ,hY,hX,hO,hV){var h4=hZ[5];if(typeof h4!=="number"){h4=0}var hT=this.ratio;var hS=hT/2;hO*=hS;hV*=hS;var hU=hZ[12];var hP=hU.length;var h7=0;var h6=0;var h3=[];var h2=0;var h5=0;for(var h1=0;h10&&e>0){h3.push({srcX:hQ,srcY:i,destX:h7,destY:h6,width:T,height:e})}}if(h3.length>0){return h3}return null},_getLineLabelInfo:function(hW,hO,hP,ib,iq,h3,h9,h8,ia,h2){if(hW.length!==10){return}var id=this.ratio;var T=this.ratio;var il=hW[7].length;var h4=hW[1];var io=hW[3];var iv=hW[8];var hS=hW[4];var e=2;var hQ=hS.slice(0,e);for(var ir=e;irh0){h0=iz+hR}if(iy+hU>hZ){hZ=iy+hU}}h5.push({angle:hY,srcX:hT,srcY:hV,destX:iz,destY:iy,width:hR,height:hU})}var im={type:"line",textImg:hO,rank:h4,baseX:ij,baseY:ih,arrWordPos:h5,minXOriginal:ie,minYOriginal:ic,maxXOriginal:h0,maxYOriginal:hZ,text:""};h2.push(im)}},alterColor:function(hR,e,hQ){var T=this._colorCtx,i=this._canvas2dMapMgr;T.clearRect(0,0,hR.width,hR.height);T.drawImage(e,hR.srcX,hR.srcY,hR.width,hR.height,0,0,hR.width,hR.height);var hP=T.getImageData(0,0,hR.width,hR.height),hO=i.getFilterImageData(hP,hQ);T.putImageData(hO,0,0)},drawIconAndText:function(h3,h2,e){var hU=this.ratio;var hS=this.sizeRatio/hU;var hW=2/hU;var ie=this;for(var h6=0,h4=h2.length;h610&&h9<350){h3.save();var ic=Math.round(ig+h8.width/2);var ib=Math.round(id+h8.height/2);h3.translate(ic,ib);h3.rotate(-h9/180*Math.PI);h3.drawImage(h0,h8.srcX,h8.srcY,h8.width,h8.height,-Math.round(h8.width/2),-Math.round(h8.height/2),h8.width/hS,h8.height/hS);h3.restore()}else{h3.drawImage(h0,h8.srcX,h8.srcY,h8.width,h8.height,ig,id,h8.width/hS,h8.height/hS)}}}}}},isCollide:function(hQ,hZ,hY,e,hS,T,hU){for(var hP=0,hO=T.length;hPhT[1]+hT[3]+hX||hY+hShT[2]+hT[4]+hW)){return true}}}return false},zoomingIconAndText:function(ie,h8,hO,ic,id,iI,im,hW,iu,il,h5){var iJ=this.ratio;var hX=this.sizeRatio/iJ;var iK=2/iJ;var iU=iJ/2;var iE=ic.x;var iD=ic.y;var ig=2*iJ;if(h5!==0){iD+=il}var h0=undefined,hT=undefined,hQ=undefined,hV=undefined,h4=undefined;var it=iI>0?true:false;if(!it){h0=[];var ix=1-im}for(var iQ=0,iO=h8.length;iQ10&&ib<350){var iG=iz+iH.width/2;var iF=iy+iH.height/2;var hP=ib/180*Math.PI;var ij=Math.cos(hP);var h1=Math.sin(hP);var iw=ij;var h2=ij;var iv=h1;var h3=-h1;var ia=iG-iG*ij-iF*h1;var e=iF+iG*h1-iF*ij;ie.save();ie.transform(iw,h3,iv,h2,ia,e);ie.drawImage(hR,iH.srcX,iH.srcY,hV,h4,hT,hQ,hV/hX,h4/hX);ie.restore()}else{ie.drawImage(hR,iH.srcX,iH.srcY,hV,h4,hT,hQ,hV/hX,h4/hX)}!it&&h0.push([iQ,hT,hQ,hV,h4])}}ie.restore()}}}});function gK(e){this.initVars(e)}C.extend(gK.prototype,{initVars:function(e){this._map=e._map;this._canvas2dMapMgr=e;this.base64Prefix="data:image/png;base64,";this.bizData=null;this.objTextsPng=null;this.arrIconsPng=null;this.bizLabels=null},proecessBizData:function(hQ,hU){var hS=this;this.bizData=hQ;this.objTextsPng=null;this.arrIconsPng=null;var T=hQ.textsPng;var hW=hQ.iconsPng;if(!T||!hW){return}var hT=new Image();hT.onload=function(){hS.objTextsPng=this;hS.calcIconAndTextInfo(hU);this.onload=null};hT.src=this.base64Prefix+T;var hV=hW.length;var e=[];for(var hP=0;hPhS.width||i>hS.height)&&(e>hS.width||hW>hS.height)){return false}return true},_setPlatformPosition:function(hV,hU,hX){hX=hX||{};if(hV===0&&hU===0&&!hX.point){return}if(isNaN(hX.initMapOffsetX)){hX.initMapOffsetX=this.offsetX}if(isNaN(hX.initMapOffsetY)){hX.initMapOffsetY=this.offsetY}var hR=dH(this._heading);if(this._tilt>0){hU=hU/Math.cos(dH(this._tilt))}var hW=hV*Math.cos(hR)+hU*Math.sin(hR);var hT=-hV*Math.sin(hR)+hU*Math.cos(hR);hW=hW+hX.initMapOffsetX;hT=hT+hX.initMapOffsetY;if(hX.point){var i=this.restrictCenter(hX.point);if(!i.equals(this.centerPoint)){this.centerPoint=i.clone();this.fire(new a8("oncenter_changed"))}}else{var hO=this.offsetX-hW;var e=this.offsetY-hT;var hS=this.centerPoint.lng;var hQ=this.centerPoint.lat;var hP=new hp(hS,hQ);var T=this.getZoomUnits();this.centerPoint=this.restrictCenter(new hp(hP.lng+hO*T,hP.lat-e*T),T);this.fire(new a8("oncenter_changed"))}this.offsetX=hW;this.offsetY=hT;this.dispatchEvent(new a8("onmoving"))},restrictCenter:function(hO,hP){if(this.config.restrictCenter===false){return hO}hP=hP||this.getZoomUnits();var T=this.pixelToPointIn(new eg(0,0),{center:hO});var i=this.pixelToPointIn(new eg(0,this.height),{center:hO});if(this.zoomLevel<5){if(T.lat>c5.MAX_LAT&&i.latc5.MAX_LAT){hO.lat=c5.MAX_LAT-this.height/2*hP}else{if(i.lathP){this._tilt=hP}if(hZ){if(this._heading%360!==0||this._tilt>0){var i=this._webglMapCamera.fromScreenPixelToMC(T.x,T.y,{center:hS,zoom:this.zoomLevel});if(i){var hW=i.sub(hR);var hO=hS.sub(hW);this.centerPoint=this.restrictCenter(hO)}}else{var hT=this.getZoomUnits();var hO=new hp(hZ.lng-hT*(T.x-this.width/2),hZ.lat+hT*(T.y-this.height/2));this.centerPoint=this.restrictCenter(hO,hT)}this.fire(new a8("oncenter_changed"))}this._checkFireZoomend();h0.callback&&h0.callback();return}this._animationInfo.zoom={current:this.zoomLevel,diff:e-this.zoomLevel,target:e};var hX=this;hX._checkFireZoomend();var hY=this._tilt;if(this.fixPoint||hY>c5.MAX_DRAG_TILT_L2){h0.renderCallback=function(){var h4=hX.getCurrentMaxTilt();if(hX._tilt>h4){hX._tilt=h4}var h5=hX.fixPixel;if(!hX.fixPixel||!hX.fixPoint){return}var h1=hX.fixPixel;var ib=hX.fixPoint;var h8=hX.fixCenter;var h6=hX.mousePosMCPoint;if(hX._heading%360!==0||hX._tilt>0){var h2=hX._webglMapCamera.fromScreenPixelToMC(h1.x,h1.y,{center:h8,zoom:hX.zoomLevel,tilt:hX._tilt});if(h2){var ia=h2.sub(h6);var h3=h8.sub(ia);hX.centerPoint=hX.restrictCenter(h3)}}else{var h7=h1;var h9=hX.getZoomUnits();var h3=new hp(ib.lng-h9*(h7.x-hX.width/2),ib.lat+h9*(h7.y-hX.height/2));hX.centerPoint=hX.restrictCenter(h3,h9)}hX.fire(new a8("oncenter_changed"))}}if(h0.fromMouseWheel===true){this._startInfiniteZoomAnimation(h0);h0.callback&&h0.callback();return}this._startAnimation(h0)},_checkFireZoomend:function(){var e=this;if(e.fireZoomendTimer){clearTimeout(e.fireZoomendTimer)}e.fireZoomendTimer=setTimeout(function(){if(e.zoomEventStatus==="zooming"){e.fire(new a8("onzoomend"));e.zoomEventStatus="idle"}e.fireZoomendTimer=null},150)},deepZoomMedia:function(e){var i=this;if(!i.temp.isStdCtrlBusy){i.temp.isStdCtrlBusy=true;i.deepZoomTo(i.zoomLevel+e);setTimeout(function(){i.temp.isStdCtrlBusy=false},400)}},deepZoomTo:function(e){this.zoomTo(e)},flyToIn:function(T,ij,h3){h3=h3||{};var hP=this._getProperZoom(ij);ij=hP.zoom;if(this.centerPoint.equals(T)&&this.zoomLevel===ij&&typeof h3.heading!=="number"&&typeof h3.tilt!=="number"){return}var e=this.getHeading()%360;var hV=this.getTilt();var h1=0;var h5=0;var hY=this.getBounds().containsPoint(T);if(typeof h3.heading==="number"){h1=h3.heading}else{if(hY){h1=e}}if(typeof h3.tilt==="number"){h5=h3.tilt}else{if(hY){h5=hV}}this._heading=e;var ig=h1-e;var ib=h5-hV;var hZ=this;var hR=this.zoomLevel;var hS=1.42;var h7=this.zoomScale(ij-hR);var il=this.getZoomUnits();var hX=this.centerPoint.div(il);var im=T.div(il);var ie=this.worldSize();var ia=hS;var h9=Math.max(this.width,this.height);var h8=h9/h7;var hW=im.sub(hX).mag();var i=ia*ia;function ii(ip){var io=(h8*h8-h9*h9+(ip?-1:1)*i*i*hW*hW)/(2*(ip?h8:h9)*i*hW);return Math.log(Math.sqrt(io*io+1)-io)}function hO(io){return(Math.exp(io)-Math.exp(-io))/2}function hT(io){return(Math.exp(io)+Math.exp(-io))/2}function h2(io){return hO(io)/hT(io)}var hU=ii(0);var ic=function(io){return(hT(hU)/hT(hU+ia*io))};var id=function(io){return h9*((hT(hU)*h2(hU+ia*io)-hO(hU))/i)/hW};var hQ=(ii(1)-hU)/ia;if(Math.abs(hW)<0.000001||hQ===Infinity||isNaN(hQ)){if(Math.abs(h9-h8)<0.000001){this._animationInfo.zoom={current:this.zoomLevel,diff:ij-this.zoomLevel};this._animationInfo.center={current:this.centerPoint,diff:T.sub(this.centerPoint)};this._animationInfo.heading={current:e,diff:h1-e};this._animationInfo.tilt={current:hV,diff:h5-hV};this.setLock(true);this._startAnimation({callback:function(io){hZ.setLock(false);if(h3.callback){h3.callback(io)}},duration:h3.duration});return}var ik=h85){ih=(hQ-5)/2+ih}}var h4=h3.duration||1000*hQ/ih;if(isNaN(h4)){var h6={};for(var h0 in h3){h6[h0]=h3[h0];h6.noAnimation=true}this.centerAndZoomIn(T,ij,h6);return}this.fire(new a8("onmovestart"));this.fire(new a8("onzoomstart"));this.setLock(true);this._startAnimation({duration:h4,renderCallback:function(io,ip){var iq=io*hQ;var iu=id(iq);var it=hR+hZ.scaleZoom(1/ic(iq));if(ithZ.getMaxZoom()){it=hZ.getMaxZoom()}if(it!==hZ.zoomLevel){hZ.zoomLevel=it;hZ.fire(new a8("onzoom_changed"))}hZ.centerPoint=hX.add(im.sub(hX).mult(iu)).mult(il);hZ.fire(new a8("oncenter_changed"));if(typeof h1==="number"){var ir=io/0.7;if(ir>1){ir=1}hZ.setHeading(e+ig*io,{noAnimation:true})}if(typeof h5==="number"){hZ.setTilt(hV+ib*io,{noAnimation:true})}},callback:function(io,ip){hZ.setLock(false);if(ip&&ip.stop===true){hZ.fire(new a8("onmoveend"));hZ.fire(new a8("onzoomend"));h3.callback&&h3.callback(io);return}if(ij!==hZ.zoomLevel){hZ.zoomLevel=ij;hZ.fire(new a8("onzoom_changed"))}hZ.fire(new a8("onmoveend"));hZ.fire(new a8("onzoomend"));h3.callback&&h3.callback(io)}})},zoomScale:function(e){return Math.pow(2,e)},scaleZoom:function(e){return Math.log(e)/Math.LN2},panToIn:function(i,T){T=T||{};if(!i||i.equals(this.centerPoint)){T.callback&&T.callback();return}var hO=this.pointToPixelIn(i);var e=Math.round(this.width/2);var hQ=Math.round(this.height/2);var hP=this._ifUseAnimation(i,this.zoomLevel);if(T.noAnimation===true||hP===false){this._stopAllAnimations();this._panToIn(e-hO.x,hQ-hO.y,i);T.callback&&T.callback();return}this.flyToIn(i,this.zoomLevel,T)},_panToIn:function(i,e,hO){var T=this.temp;if(T.operating===true){return}if(T.dragAni){T.dragAni.stop(false,{readyToMove:true});T.dragAni=null}this.dispatchEvent(new a8("onmovestart"));this._setPlatformPosition(i,e,{point:hO});this.dispatchEvent(new a8("onmoveend"))},_stopAllAnimations:function(e){e=e||{};if(this._ani){this._ani.stop(!!e.goToEnd,{stopCurrentAnimation:e.stopCurrentAnimation});this._ani=null}if(this._infiniteAni){this._infiniteAni.stop();this._infiniteAni=null}},panBy:function(i,e,T){i=Math.round(i)||0;e=Math.round(e)||0;T=T||{};if(Math.abs(i)<=this.width&&Math.abs(e)<=this.height&&T.noAnimation!==true){this._panBy(i,e,T)}else{this._panToIn(i,e,T.point);T.callback&&T.callback()}},_panBy:function(i,e,hP){if(this.temp.operating===true){return}hP=hP||{};this.dispatchEvent(new a8("onmovestart"));var hO=this;var T=hO.temp;T.pl=hO.offsetX;T.pt=hO.offsetY;if(T.tlPan){T.tlPan.cancel()}if(T.dragAni){T.dragAni.stop(false,{readyToMove:true});T.dragAni=null}T.tlPan=new o({fps:hP.fps||hO.config.fps,duration:hP.duration||hO.config.actionDuration,transition:hP.transition||ck.easeInOutQuad,render:function(hQ){this.terminative=hO.temp.operating;if(hO.temp.operating){return}hO._setPlatformPosition(i*hQ,e*hQ,{initMapOffsetX:T.pl,initMapOffsetY:T.pt})},finish:function(hQ){hO.dispatchEvent(new a8("onmoveend"));hO.temp.tlPan=false;if(hO.temp.stopArrow===true){hO.temp.stopArrow=false;if(hO.temp.arrow!==0){hO._arrow()}}}})},_startAnimation:function(i){var hP=this._animationInfo;var T=this;i=i||{};if(T._ani){T._ani.stop(!!i.goToEnd,{stopCurrentAnimation:i.stopCurrentAnimation})}if(T._infiniteAni){T._infiniteAni.stop();T._infiniteAni=null}var hQ=i.duration||500;var hR=i.transition||ck.ease;var e=new a8("onanimation_start");this.fire(e);if(i.unstopable){hP=this._animationInfoUnstopable}var hO=new o({duration:hQ,transition:hR,render:function(hU,hT){for(var hS in hP){if(!hP.hasOwnProperty(hS)){continue}var hW=hP[hS].current;var hV=hP[hS].diff;T._setValueTick(hS,hW,hV,hU)}if(i.renderCallback){i.renderCallback(hU,hT)}},finish:function(hS){T.fire(new a8("onanimation_end"));if(i.unstopable){T._animationInfoUnstopable={};T._unstopableAni=null}else{T._ani=null;T._animationInfo={}}if(i.mapNeedCbk){i.mapNeedCbk()}if(i.callback){i.callback(hS)}},onStop:function(hS){hS=hS||{};T.fire(new a8("onanimation_end"));if(hS.stopCurrentAnimation){T._animationInfo={}}T._ani=null;if(i.mapNeedCbk){i.mapNeedCbk()}if(i.callback){i.callback(null,{stop:true})}}});if(i.unstopable){T._unstopableAni=hO}else{T._ani=hO}},_startInfiniteZoomAnimation:function(e){var i=this;if(i._ani){i._ani.stop(!!e.goToEnd,{stopCurrentAnimation:e.stopCurrentAnimation})}if(i._infiniteAni){return}this.fire(new a8("onanimation_start"));i._infiniteAni=new o({duration:10000,transition:ck.linear,render:function(){var T=i._animationInfo.zoom;if(Math.abs(T.current-T.target)<0.001){i._setValue("zoom",T.target);i._infiniteAni.stop();return}T.current+=(T.target-T.current)*0.35;i._setValue("zoom",T.current);if(e.renderCallback){e.renderCallback()}},finish:function(){i._infiniteAni=null;i._animationInfo={};i.fire(new a8("onanimation_end"));if(e.callback){e.callback()}},onStop:function(){i._infiniteAni=null;i._animationInfo={};i.fire(new a8("onanimation_end"));if(e.callback){e.callback()}}})},_setValue:function(e,T){if(e==="zoom"){this._preZoomLevel=this.zoomLevel;var i=this._getProperZoom(T);T=i.zoom;if(T!==this.zoomLevel){this.zoomLevel=T;if(T<5){this.restrictCenter(this.centerPoint)}this.fire(new a8("on"+e+"_changed"))}return}else{if(e==="center"){this.centerPoint=T}}this["_"+e]=T;this.fire(new a8("on"+e+"_changed"))},_setValueTick:function(e,hP,hO,i){if(e==="center"){var T=new hp(hP.lng+hO.lng*i,hP.lat+hO.lat*i);this._setValue(e,T);return}if(e==="zoom"){this._setValue(e,Math.pow(hP,1-i)*Math.pow(hP+hO,i));return}this._setValue(e,hP+hO*i)},setHeading:function(hO,i){i=i||{};if(hO===this._heading){i.callback&&i.callback();return}var T=fW(this._heading,360);var e=fW(hO,360);if(e===T){this._heading=hO;i.callback&&i.callback();return}if(i.noAnimation){this._setValue("heading",hO);i.callback&&i.callback();return}if(i.unstopable){this._animationInfoUnstopable.heading={current:this._heading,diff:hO-this._heading}}else{this._animationInfo.heading={current:this._heading,diff:hO-this._heading}}this._startAnimation(i)},resetHeading:function(e){var i=this._heading;while(i<0){i+=360}i=i%360;if(i>180){i-=360}this._heading=i;e=e||{};e.unstopable=true;this.setHeading(0,e)},getHeading:function(){return this._heading},setTilt:function(e,i){i=i||{};if(e===this._tilt){i.callback&&i.callback();return}if(e>c5.MAX_TILT){e=c5.MAX_TILT}if(e0){hW=1/Math.sqrt(hW);hZ[0]=hY[0]*hW;hZ[1]=hY[1]*hW}return hZ};hU.dot=function(hX,hW){return hX[0]*hW[0]+hX[1]*hW[1]};hU.cross=function(hY,hX,hW){var hZ=hX[0]*hW[1]-hX[1]*hW[0];hY[0]=hY[1]=0;hY[2]=hZ;return hY};hU.lerp=function(hY,hX,hW,hZ){var h1=hX[0],h0=hX[1];hY[0]=h1+hZ*(hW[0]-h1);hY[1]=h0+hZ*(hW[1]-h0);return hY};hU.random=function(hW,hY){hY=hY||1;var hX=hP()*2*Math.PI;hW[0]=Math.cos(hX)*hY;hW[1]=Math.sin(hX)*hY;return hW};hU.transformMat2=function(hZ,hY,hX){var hW=hY[0],h0=hY[1];hZ[0]=hX[0]*hW+hX[2]*h0;hZ[1]=hX[1]*hW+hX[3]*h0;return hZ};hU.transformMat2d=function(hZ,hY,hX){var hW=hY[0],h0=hY[1];hZ[0]=hX[0]*hW+hX[2]*h0+hX[4];hZ[1]=hX[1]*hW+hX[3]*h0+hX[5];return hZ};hU.transformMat3=function(hZ,hY,hX){var hW=hY[0],h0=hY[1];hZ[0]=hX[0]*hW+hX[3]*h0+hX[6];hZ[1]=hX[1]*hW+hX[4]*h0+hX[7];return hZ};hU.transformMat4=function(hZ,hY,hX){var hW=hY[0],h0=hY[1];hZ[0]=hX[0]*hW+hX[4]*h0+hX[12];hZ[1]=hX[1]*hW+hX[5]*h0+hX[13];return hZ};hU.rotate=function(hZ,hX,hW,h3){var h2=hX[0]-hW[0];var h1=hX[1]-hW[1];var hY=Math.sin(h3);var h0=Math.cos(h3);hZ[0]=h2*h0-h1*hY+hW[0];hZ[1]=h2*hY+h1*h0+hW[1];return hZ};hU.forEach=(function(){var hW=hU.create();return function(hZ,h3,h4,h2,h1,hX){var h0,hY;if(!h3){h3=2}if(!h4){h4=0}if(h2){hY=Math.min((h2*h3)+h4,hZ.length)}else{hY=hZ.length}for(h0=h4;h00){hW=1/Math.sqrt(hW);hZ[0]=hY[0]*hW;hZ[1]=hY[1]*hW;hZ[2]=hY[2]*hW}return hZ};hT.dot=function(hX,hW){return hX[0]*hW[0]+hX[1]*hW[1]+hX[2]*hW[2]};hT.cross=function(hX,h2,h1){var hW=h2[0],h4=h2[1],h3=h2[2],h0=h1[0],hZ=h1[1],hY=h1[2];hX[0]=h4*hY-h3*hZ;hX[1]=h3*h0-hW*hY;hX[2]=hW*hZ-h4*h0;return hX};hT.lerp=function(hY,hX,hW,hZ){var h2=hX[0],h1=hX[1],h0=hX[2];hY[0]=h2+hZ*(hW[0]-h2);hY[1]=h1+hZ*(hW[1]-h1);hY[2]=h0+hZ*(hW[2]-h0);return hY};hT.random=function(hW,h0){h0=h0||1;var hY=hP()*2*Math.PI;var hZ=(hP()*2)-1;var hX=Math.sqrt(1-hZ*hZ)*h0;hW[0]=Math.cos(hY)*hX;hW[1]=Math.sin(hY)*hX;hW[2]=hZ*h0;return hW};hT.transformMat4=function(hZ,hY,hX){var hW=hY[0],h1=hY[1],h0=hY[2];hZ[0]=hX[0]*hW+hX[4]*h1+hX[8]*h0+hX[12];hZ[1]=hX[1]*hW+hX[5]*h1+hX[9]*h0+hX[13];hZ[2]=hX[2]*hW+hX[6]*h1+hX[10]*h0+hX[14];return hZ};hT.transformMat3=function(hZ,hY,hX){var hW=hY[0],h1=hY[1],h0=hY[2];hZ[0]=hW*hX[0]+h1*hX[3]+h0*hX[6];hZ[1]=hW*hX[1]+h1*hX[4]+h0*hX[7];hZ[2]=hW*hX[2]+h1*hX[5]+h0*hX[8];return hZ};hT.transformQuat=function(h2,h8,hW){var h9=h8[0],h7=h8[1],h6=h8[2],h4=hW[0],h3=hW[1],h1=hW[2],h5=hW[3],hZ=h5*h9+h3*h6-h1*h7,hY=h5*h7+h1*h9-h4*h6,hX=h5*h6+h4*h7-h3*h9,h0=-h4*h9-h3*h7-h1*h6;h2[0]=hZ*h5+h0*-h4+hY*-h1-hX*-h3;h2[1]=hY*h5+h0*-h3+hX*-h4-hZ*-h1;h2[2]=hX*h5+h0*-h1+hZ*-h3-hY*-h4;return h2};hT.rotateX=function(hY,hX,hW,h1){var h0=[],hZ=[];h0[0]=hX[0]-hW[0];h0[1]=hX[1]-hW[1];h0[2]=hX[2]-hW[2];hZ[0]=h0[0];hZ[1]=h0[1]*Math.cos(h1)-h0[2]*Math.sin(h1);hZ[2]=h0[1]*Math.sin(h1)+h0[2]*Math.cos(h1);hY[0]=hZ[0]+hW[0];hY[1]=hZ[1]+hW[1];hY[2]=hZ[2]+hW[2];return hY};hT.rotateY=function(hY,hX,hW,h1){var h0=[],hZ=[];h0[0]=hX[0]-hW[0];h0[1]=hX[1]-hW[1];h0[2]=hX[2]-hW[2];hZ[0]=h0[2]*Math.sin(h1)+h0[0]*Math.cos(h1);hZ[1]=h0[1];hZ[2]=h0[2]*Math.cos(h1)-h0[0]*Math.sin(h1);hY[0]=hZ[0]+hW[0];hY[1]=hZ[1]+hW[1];hY[2]=hZ[2]+hW[2];return hY};hT.rotateZ=function(hY,hX,hW,h1){var h0=[],hZ=[];h0[0]=hX[0]-hW[0];h0[1]=hX[1]-hW[1];h0[2]=hX[2]-hW[2];hZ[0]=h0[0]*Math.cos(h1)-h0[1]*Math.sin(h1);hZ[1]=h0[0]*Math.sin(h1)+h0[1]*Math.cos(h1);hZ[2]=h0[2];hY[0]=hZ[0]+hW[0];hY[1]=hZ[1]+hW[1];hY[2]=hZ[2]+hW[2];return hY};hT.forEach=(function(){var hW=hT.create();return function(hZ,h3,h4,h2,h1,hX){var h0,hY;if(!h3){h3=3}if(!h4){h4=0}if(h2){hY=Math.min((h2*h3)+h4,hZ.length)}else{hY=hZ.length}for(h0=h4;h00){hW=1/Math.sqrt(hW);h0[0]=hZ[0]*hW;h0[1]=hZ[1]*hW;h0[2]=hZ[2]*hW;h0[3]=hZ[3]*hW}return h0};hS.dot=function(hX,hW){return hX[0]*hW[0]+hX[1]*hW[1]+hX[2]*hW[2]+hX[3]*hW[3]};hS.lerp=function(hY,hX,hW,hZ){var h2=hX[0],h1=hX[1],h0=hX[2],h3=hX[3];hY[0]=h2+hZ*(hW[0]-h2);hY[1]=h1+hZ*(hW[1]-h1);hY[2]=h0+hZ*(hW[2]-h0);hY[3]=h3+hZ*(hW[3]-h3);return hY};hS.random=function(hW,hX){hX=hX||1;hW[0]=hP();hW[1]=hP();hW[2]=hP();hW[3]=hP();hS.normalize(hW,hW);hS.scale(hW,hW,hX);return hW};hS.transformMat4=function(h0,hZ,hX){var hW=hZ[0],h2=hZ[1],h1=hZ[2],hY=hZ[3];h0[0]=hX[0]*hW+hX[4]*h2+hX[8]*h1+hX[12]*hY;h0[1]=hX[1]*hW+hX[5]*h2+hX[9]*h1+hX[13]*hY;h0[2]=hX[2]*hW+hX[6]*h2+hX[10]*h1+hX[14]*hY;h0[3]=hX[3]*hW+hX[7]*h2+hX[11]*h1+hX[15]*hY;return h0};hS.transformQuat=function(h2,h8,hW){var h9=h8[0],h7=h8[1],h6=h8[2],h4=hW[0],h3=hW[1],h1=hW[2],h5=hW[3],hZ=h5*h9+h3*h6-h1*h7,hY=h5*h7+h1*h9-h4*h6,hX=h5*h6+h4*h7-h3*h9,h0=-h4*h9-h3*h7-h1*h6;h2[0]=hZ*h5+h0*-h4+hY*-h1-hX*-h3;h2[1]=hY*h5+h0*-h3+hX*-h4-hZ*-h1;h2[2]=hX*h5+h0*-h1+hZ*-h3-hY*-h4;return h2};hS.forEach=(function(){var hW=hS.create();return function(hZ,h3,h4,h2,h1,hX){var h0,hY;if(!h3){h3=4}if(!h4){h4=0}if(h2){hY=Math.min((h2*h3)+h4,hZ.length)}else{hY=hZ.length}for(h0=h4;h00){T[0].sort(function(hP,hO){return hP.tileInfo.useZoom-hO.tileInfo.useZoom})}}});var fe=(function(){var hY=new Int8Array(4);var T=new Int32Array(hY.buffer,0,1);var hT=new Float32Array(hY.buffer,0,1);function h0(h7){T[0]=h7;return hT[0]}function i(h7){hT[0]=h7;return T[0]}function hU(h7){var h9=(h7[3]<<24|h7[2]<<16|h7[1]<<8|h7[0]);var h8=h0(h9&4278190079);return h8}var hP=0;var hS=1;var hW=2;var h4=0;var h1=1;var hZ=2;var hQ=9;function hX(h7,h8){var h9;if(h8%2===0){h9=[-h7[1],h7[0]]}else{h9=[h7[1],-h7[0]]}return h9}function e(h7,h8,h9){var ia=hX(h7,h8);var ib;if(h9===hS){return ia}else{if(h8===4||h8===5){ib=[ia[0]-h7[0],ia[1]-h7[1]]}else{ib=[ia[0]+h7[0],ia[1]+h7[1]]}if(h9===hP){vec2.normalize(ib,ib)}return ib}}function h3(h8,h7){return Math.sqrt(Math.pow(h8[0]-h7[0],2)+Math.pow(h8[1]-h7[1],2))}function hO(ib,ia,h9,h7){var h8=vec2.dot(ib,ia);if(h9===hZ||h9===h1){if((h7===0||h7===1)&&h8>0){return true}else{if((h7===2||h7===3)&&h8<0){return true}}}if((h7===0||h7===1)&&h8<0){return true}else{if((h7===2||h7===3)&&h8>0){return true}}return false}function hV(h8,id,ig){var ie=hX(h8,id);var ia;var ic=h8;var ib=ig;var ii=[];vec2.normalize(ii,[ic[0]+ib[0],ic[1]+ib[1]]);var ih=vec2.dot(ie,[-ii[1],ii[0]]);if(Math.abs(ih)<0.1){ih=1}var h9=1/ih;ia=[-ii[1]*h9,ii[0]*h9];var h7=vec2.dot(h8,ia);if(h7<0){vec2.negate(ia,ia)}return{cos2:h7,offset:ia}}function h6(h8,id,ig,h7){var ie=hX(h8,id);var ic;var ib;var ia;if(id===0||id===1){ic=ig;ib=h8}else{ic=h8;ib=ig}if(!ic||!ib){return ie}var ii=[ic[0]+ib[0],ic[1]+ib[1]];if(ii[0]===0&&ii[1]===0){vec2.normalize(ii,ib)}else{vec2.normalize(ii,ii)}var ij=hO(ii,ie,h7,id);if(ij){return ie}var ih=vec2.dot(ie,[-ii[1],ii[0]]);if(Math.abs(ih)<0.1){ih=1}var h9=1/ih;ia=[-ii[1]*h9,ii[0]*h9];return ia}function h5(ij,ik,ic,ib,il,ii,ia,id,h9,ih){var ig;var h8=0;var h7=false;ig=ii.length/hQ-1;hR(ik[0],ij[0],ic[0],il,ib,4,id,h9,undefined,ii,ih);ig++;h8++;hR(ik[0],ij[0],ic[0],il,ib,5,id,h9,undefined,ii,ih);ig++;h8++;for(var ie=0;ie0){ie+=h3(ij[id],ij[id-1]);ib.push(ie*10)}if(id!==ij.length-1){var ia=[ij[id+1][0]-ij[id][0],ij[id+1][1]-ij[id][1]];var il=[];if(ia[0]===0&&ia[1]===0){il=[0,0]}else{vec2.normalize(il,ia)}ii[ii.length]=[il[0],il[1]]}}return h5(ii,ij,ib,h9,ik,ig,h7,hU(ic),h8,ih)},toTileSolidLineVertices:function(ib,h8){var h9=new Float32Array(ib.length/hQ*5);var h7=new Int16Array(h9.buffer);var id=0;var ia=0;for(var ic=0;ic0){this.zoomState=1}else{if(e<0){this.zoomState=-1}}this.lastZoom=i;return this.zoomState},releaseOutViewTileData:function(e){var hP=this.map._workerMgr.releasePendingData(e);for(var hO=0,T=hP.length;hO=0.5){h8=true}else{if(hW<0.5&&e>=0.5){h8=true}else{if(hW>=0.5&&e<0.5){h8=true}}}if(h8){this.cacheDataCollideLabels(0)}this.LAST_CALC_ZOOM=hU}else{if(this.tileLabels.length>0){this.cacheDataCollideLabels(C.Browser.ie?50:30)}}},loadVectorLayerData:function(hU){this.map.temp.isPermitSpotOver=false;var hT=this;function hS(i,hV){var hX=hT.tileCache.getData(hV);if(!hX){return}if(!i||i.error){var hW=new a8("ontileloaderror");i=i||{};hW.error=i.error||"";hW.message=i.message||"";hT.map.fire(hW);hX.status="init";hX.reloadTimer=setTimeout(function(){if(hX.retry<3){hX.retry++;hX.status="loading";hT.loadVectorTileData(i.tileInfo,hS)}else{hT.tileCache.removeData(hV)}},4000);hT.map._featureMgr.clearData(hT.drawIndex);hT._checkTilesLoaded();hT.getVectorLayerDataFromCache(hT.curViewTilesInfo,hT.getZoomState());return}if(hX.reloadTimer){clearTimeout(hX.reloadTimer);hX.reloadTimer=null}hT.callbackDataQueue.push([i,hV]);if(hT.processDataTimer){return}hT.processDataTimer=setTimeout(function(){while(hT.callbackDataQueue.length>0){var hY=hT.callbackDataQueue.shift();hT.vectorTileDataCbk(hY[0],hY[1]);hT._checkTilesLoaded()}hT.map._featureMgr.clearData(hT.drawIndex);hT.getVectorLayerDataFromCache(hT.curViewTilesInfo,hT.getZoomState());hT.processDataTimer=null},200)}for(var hR=0,hP=hU.length;hR65536){hZ.renderData.base.push({type:"line",data:[fe.toTileSolidLineVertices(h5,4000),new Uint16Array(h8)]});h5=[];h8=[]}for(var hY=0;hY0){hQ=hP.labelProcessor.collisionTest(hQ,-1)}}else{if(hR||hS){if(this._collisionTimer){if(!hR){clearTimeout(this._collisionTimer)}else{if(Date.now()-hP.lastCollisionTestTime>500){hP.lastCollisionTestTime=Date.now()}else{clearTimeout(this._collisionTimer)}}}this._collisionTimer=setTimeout(function(){hQ=hP.labelProcessor.collisionTest(hP.tileLabels);if(hQ){i.setLabelData(hQ)}hP.updateLabels();hP.map.dispatchEvent(new a8("onrefresh"));hP._collisionTimer=null},60);return}else{hQ=hP.labelProcessor.getCachedLabels(hP.tileLabels)}}if(hQ){i.setLabelData(hQ)}hP.updateLabels();hP.map.dispatchEvent(new a8("onrefresh"))}if(!T){clearTimeout(hP.cacheLabelTimer);hO()}else{if(hP.cacheLabelTimer){return}hP.cacheLabelTimer=setTimeout(function e(){hO()},T)}},dataBackCollideLabels:function(){var i=this;if((i.tileLabels&&i.tileLabels.length===0)){return}var e;i.labelProcessor.calcLabelsCollision(i.tileLabels);e=i.labelProcessor.getCachedLabels(i.tileLabels);if(e){i.map._featureMgr.setLabelData(e)}i.updateLabels();i.map.dispatchEvent(new a8("onrefresh"));if(f2()){this.labelProcessor._refreshSpotData()}},updateLabels:function(hP){var hQ=this.map;var i=hQ._featureMgr;var T=i.getLabelData();if(T.length>0){var hO=hQ.getZoom();if(T.labelZoom-hO<3){this.labelProcessor.updateLabels(T);var e=this.labelProcessor.fixDataFormat(T);i.setOverlayData(e[0],2);i.setOverlayData(e[1],3);i.setOverlayData(e[2],4)}else{i.clearLabelOverlayData()}hQ.temp.isPermitSpotOver=false;this.labelProcessor.curSpotAdded=false}},loadRasterLayerData:function(hO,hS){if(hS){for(var hQ=0,hP=hO.length;hQ9&&!e.guid){return false}if(e.zoom<=9&&!e.name&&!e.guid){return false}return true}};var b6=5;var dU=4;var hn=3;var fc=2;var hH=1;var dX=0;function v(e){this._ratio=a3();this._iconCache={};this._map=e;this._drawingCanvasPool=[];this._drawingCanvasHeight=4096}C.extend(v.prototype,{_loadIcons:function(i,hS){var hQ=0;var hP=this;var T=this._map.config.style;for(var hR in i){hQ++;var e=new Image();e.id=hR;e.crossOrigin="anonymous";e.onload=function(){hP._iconCache[this.id].loaded=true;hQ--;if(hQ===0){hS()}this.onload=null};e.onerror=function(){hP._iconCache[this.id]=null;hQ--;if(hQ===0){hS()}this.onerror=null};var hO=e0.getIconSetPath(T)+hR+".png";e.src=hO;this._iconCache[hR]={loaded:false,image:e}}},_getEmptyDrawingCanvas:function(){for(var T=0;T0){while(hQ0){hQ=0;while(hQ0){hQ=0;while(hQ0){var h8=this;this._loadIcons(hZ,function(){h7=h8._drawEachTypeOfLabels(h1,h0,h9,hT,hS,hX,h5);h9=h7.curStyleId;hT=h7.curX;hS=h7.curY;hX=h7.curLineHeight;var i=h8._generateEachLabelCanvas(e,hS,hW,h2,T,h6);hO(i[0],i[1])});return}var hU=this._generateEachLabelCanvas(e,hS,hW,h2,T,h6);hO(hU[0],hU[1])},drawCustomLabelsOnCanvas:function(hR,hX){if(hR.length===0){hX();return}var T=0;var e=(hR[0].style.fontSize+(hR[0].style.haloSize||0)*2)||0;var hO=e;var hT=this._getEmptyDrawingCanvas();var hY=hT.getContext("2d");hY.clearRect(0,0,hT.width,hT.height);var hU={};var hW=-1;for(var hP=0;hPthis._drawingCanvasHeight){return{curX:hO,curY:T,curLineHeight:hP,curStyleId:hV}}}return{curX:hO,curY:T,curLineHeight:hP,curStyleId:hV}},_drawIndoorTextLabelOnCanvas:function(hP){var e=this._getEmptyDrawingCanvas();var hW=e.getContext("2d");hW.clearRect(0,0,e.width,e.height);var h4=0;var hV=null;var hU=0;var hS;var h1={};var h0=[];for(var hQ in hP){if(hQ==="tileInfo"){continue}var hO=hP[hQ];var hZ=hO.defaultFloor;var hT=hO.floors;for(var hY=0;hY4){iz=4}var ih=[];var h5=[];var ic=0;if(hP&&!hP[iB]){hP[iB]={}}var hZ=h0+iz*2;var ii=hZ;if(hS.containDescendings){ii+=4}if(iz===0){ii+=2}if(hS.textOnIcon){ii=Math.max(ii,hS.iconSize[1])}if(iB!==T||ii>ig){T=iB;if(ik>=10&&ik%10===0){h6.font=ik*10+" "+h0+"px sans-serif"}else{h6.font=h0+"px sans-serif"}if(ii>ig){var id=ii-ig;ig+=id;h7+=id}if(iz>0){h6.lineWidth=iz*2;h6.strokeStyle=hR}h6.fillStyle=it}if(hS.type==="line"){var hU=ie.split("");for(var iC=0;iC512){h8=0;h7+=ii;ig=ii}if(h7>this._drawingCanvasHeight){return{curX:h8,curY:h7,curLineHeight:ig,styleId:iB}}var iw=h8;if(iz>0){hO+=iz;iw-=Math.round(iz/2);h6.strokeText(iv,h8,h7)}h6.fillText(iv,h8,h7);var ir=[hO,ii];h9=[Math.round(ir[0]/2),Math.round(ir[1]/2)];il=[iw,h7-ii];hP[iB][iv]={displaySize:h9,curWordPosition:il,totalHeight:ic};h8+=hO+2}ih.push(h9);h5.push(il)}ic=Math.round(ih[0][1])}else{if(hP[iB][ie]){var h1=hP[iB][ie];ih=h1.textSize;h5=h1.labelImagePosition;ic=h1.totalHeight}else{var h2=ie.split("\\");if(h2.length>1&&hS.textOnIcon){var iD=0;var iA=0;var iG=[];var ia=8;for(var iC=0;iCiD){iD=hY}iG.push(Math.round(hY/2));iA+=ii}var hV=iD+2*ia;var iy=iA+2*ia;if(h8+hV>512){h8=0;h7+=ig}h7+=iA-ii+2*ia;var iq=h8;var ib=h7-iy;var e=Math.round(hV/2);var h4=this._iconCache[hS.icon].image;this.drawStretchedIcon(h6,h4,[iq,ib],ia,iD,iA);for(var iC=0;iC512){h8=0;h7+=ii;ig=ii}if(h7>this._drawingCanvasHeight){return{curX:h8,curY:h7,curLineHeight:ig,styleId:iB}}var iq=h8;var ib=h7-ii;var ip=h8;var io=h7;if(hS.containDescendings){io-=4}if(hS.textOnIcon){var ij=false;var h4=this._iconCache[hS.icon].image;var im=hS.iconSize.concat([]);if(hZ>im[1]){im[1]=hZ;ij=true}if(hY>im[0]){im[0]=hY;ij=true}if(hS.styleId===519){h6.drawImage(h4,0,0,im[0],im[1],iq,ib,im[0],im[1])}else{if(ij){this.drawStretchedIcon(h6,h4,[iq,ib],hQ,hY,im[1])}else{this.draw3StretchedIcon(h6,h4,[iq,ib],hQ,hY,im[1])}}ip+=hQ;if(hS.iconSize[1]>hZ){io-=(hS.iconSize[1]-hZ)/2-1}hV+=1}if(iz>0){hV+=iz;iq-=Math.round(iz/2);ib+=Math.round(iz/2);if(iB===71028){ii-=2}if(iB===32){ii-=2}h6.strokeText(ie,ip,io)}h6.fillText(ie,ip,io);var hT=[hV,ii];var h9=[Math.round(hT[0]/2),Math.round(hT[1]/2)];ih.push(h9);h5.push([iq,ib]);ic+=Math.round(h9[1]);h8+=hV}}hP[iB][ie]={textSize:ih,labelImagePosition:h5,totalHeight:ic}}}hS.textSize=ih;hS.labelImagePosition=h5;hS.totalHeight=ic;return{curX:h8,curY:h7,curLineHeight:ig,styleId:iB}},drawStretchedIcon:function(e,T,hO,hR,hS,i){var hQ=hO[0];var hP=hO[1];e.drawImage(T,0,0,hR,hR,hQ,hP,hR,hR);e.drawImage(T,hR,0,1,hR,hQ+hR,hP,hS,hR);e.drawImage(T,T.width-hR,0,hR,hR,hQ+hS+hR,hP,hR,hR);e.drawImage(T,0,hR,hR,1,hQ,hP+hR,hR,i);e.drawImage(T,hR,hR,1,1,hQ+hR,hP+hR,hS,i);e.drawImage(T,T.width-hR,hR,hR,1,hQ+hS+hR,hP+hR,hR,i);e.drawImage(T,0,T.height-hR,hR,hR,hQ,hP+i+hR,hR,hR);e.drawImage(T,hR,T.height-hR,1,hR,hQ+hR,hP+i+hR,hS,hR);e.drawImage(T,T.width-hR,T.height-hR,hR,hR,hQ+hS+hR,hP+i+hR,hR,hR)},draw3StretchedIcon:function(e,i,T,hQ,hS,hR){var hP=T[0];var hO=T[1];e.drawImage(i,0,0,hQ,i.height,hP,hO,hQ,i.height);e.drawImage(i,hQ,0,1,i.height,hP+hQ,hO,hS,i.height);e.drawImage(i,i.width-hQ,0,hQ,i.height,hP+hQ+hS,hO,hQ,i.height)},_updateFixedLabelCoords:function(hP,h4){if(h4===0){return}var hZ=[];var ib=[];var ic=0;var h2=hP.totalHeight;var il=hP.textSize.length;var hQ=hP.direction;if(typeof hQ!=="number"){hQ=0}for(var id=0;idT){T=hY}if(hWe){e=hW}}}if(hU.custom&&hU.style.iconSize&&!hU.name){var hV=hU.style.iconSize;var hX=hU.direction;switch(hX){case dU:hQ=-Math.round(hV[0]/2);hO=-Math.round(hV[1]/2);T=Math.round(hV[0]/2);e=Math.round(hV[1]/2);break;case fc:hQ=-Math.round(hV[0]/2);hO=0;T=Math.round(hV[0]/2);e=hV[1];break}}if(hU.textPos){var hR=hU.textPos["vertex"];for(var hT=0,hP=hR.length;hTT){T=hY}if(hWe){e=hW}}}hU.bds=[hQ,hO,T,e]},_updateLineLabelCoords:function(h5,hV){if(hV===0){return}var hO=h5.wordsInfo;var h2=h5.wordCount;if(!h5.labelImagePosition){return}var hX=h5.labelImagePosition.slice(0);if(h5.reverse){hX.reverse()}var ie=1000;var ib=1000;var ic=-1000;var ia=-1000;for(var h6=0;h6ic){ic=h4}if(hQia){ia=hS}}h5.bds=[ie,ib,ic,ia]}});var cQ={0:"00000000",16:"00010000",32:"00100000",48:"00110000",64:"01000000",96:"01100000"};function cn(T,hO,hP){var e=T.bds;if(!e){return false}var i=T.tracer;var hS;if(i){if(!cQ[i]){hS=i.toString(2);if(hS.length<8){hS=new Array(8-hS.length+1).join("0")+hS}cQ[i]=hS}hS=cQ[i];var hR=df.mapZoomStartZoomMapping[hO];return hS[hO-hR]==="1"}var hQ=T.displayRange;if(hP>=hQ[0]&&hP<=hQ[1]){return true}return false}function dg(i,e){this.map=i.map;this.layer=i;e=e||[];this.allLabels=[];this._spotData=[];this._strategyInfo=null;this.RANK1=1000000;this.RANK2=2000000;this.RANK3=3000000;this.RANK4=4000000;this.RANK5=5000000;this._useRound=false;this._mapIsMoving=false;this._onMapIdleCallback=e.onMapIdleCallback;this.map.temp.isPermitSpotOver=true;this.currentSelectedLabel=null;this.map._labelProcessor=this;this.iconCache={};this.fixedLabelData=[];this.lineLabelData=[];this.highlightLabelData=[];this._iconLoadTimer=null;this._labelTextCanvas=null;if(this.map.config.textRenderType==="canvas"){this._labelTextCanvas=this.map.tileMgr.getLabelTextCanvas()}this.bind()}C.extend(dg.prototype,{bind:function(){var T=this.map;var i=this;T.addEventListener("mapstatusbusy_inner",function(hO){i._useRound=false;i._mapIsMoving=true});T.addEventListener("mapstatusidle_inner",function(hO){if(!f2()){i._useRound=true}i._mapIsMoving=false});T.addEventListener("onspotmouseover",function(hQ){if(!this.temp.isPermitSpotOver){return}if(hQ.spots.length>0){var hP=hQ.spots[0].userdata.uid;var hR=hQ.spots[0].userdata.tilePosStr;var hO=i.getLabelByUid(hP,hR);hO&&hO.formatedData&&i._toHighlightColor(hO.formatedData)}});T.addEventListener("onspotmouseout",function(hQ){if(!this.temp.isPermitSpotOver){return}if(hQ.spots.length>0){var hP=hQ.spots[0].userdata.uid;var hR=hQ.spots[0].userdata.tilePosStr;var hO=i.getLabelByUid(hP,hR);hO&&hO.formatedData&&i._toDefaultColor(hO.formatedData)}});T.addEventListener("spotclick",function(hQ){if(hQ.spots&&hQ.spots.length>0){if(hQ.spots[0].userdata.zoom<10){return}var hP=hQ.spots[0].userdata.uid;var hR=hQ.spots[0].userdata.tilePosStr;if(i.currentSelectedLabel&&(i.currentSelectedLabel.uid!==hP||i.currentSelectedLabel.tilePosStr!==hR)){i._recoverNormalState()}var hO=i.getLabelByUid(hP,hR);hO&&i._changeBaseMapState(hO)}else{i._recoverNormalState()}});T.on("spot_status_reset",function(){i._recoverNormalState()});T.on("spot_highlight",function(hP){var hO=i.getLabelByUid(hP.uid,hP.tilePosStr);hO&&hO.formatedData&&i._toHighlightColor(hO.formatedData)});T.addEventListener("mousemove",function(hO){if(i.curSpotAdded){return}if(this.currentOperation!==dR.idle||i._mapIsMoving===true){return}i._refreshSpotData();this.temp.isPermitSpotOver=true;i.curSpotAdded=true});if(f2()){function e(){i._refreshSpotData()}T.addEventListener("mapstatusidle_inner",e)}T.on("style_loaded",function(){if(i.map.config.textRenderType==="canvas"&&!i._labelTextCanvas){i._labelTextCanvas=i.map.tileMgr.getLabelTextCanvas()}})},getLabelByUid:function(hR,hS){var e=this.map._featureMgr.getResult().tileLabels;for(var hQ=0;hQ=0&&il<45)||(il>=315&&il<360)){im=iv;ik=it;h1=h3;h0=h2}else{if(il>=45&&il<135){im=it;ik=-h3;h1=h2;h0=-iv}else{if(il>=135&&il<225){im=-h3;ik=-h2;h1=-iv;h0=-it}else{if(il>=225&&il<315){im=-h2;ik=iv;h1=-it;h0=h3}}}}hR._tempBds=[ia+im,h8+ik,ia+h1,h8+h0];var hU=h5.pixelToPointIn(new eg(hR._tempBds[0],ic.y+ik),{zoom:iq});var hO=h5.pixelToPointIn(new eg(hR._tempBds[2],ic.y+h0),{zoom:iq});hR._mcBds=[hU,hO];ir.push(hR)}}var io=this._strategyInfo;if(io){var hZ=io.guid;var h7=io.guidExt;var T=false;for(var iz=0,ix=ir.length;iz0){hP=6}var hY=h5.getZoom();if(hY>=8&&hY<9){hY<8.5?(hP=6):(hP=3)}if(h5._displayOptions.labelMargin>0){hP=h5._displayOptions.labelMargin}var e=2;if(hY<6&&hY>=5){e=-1}for(var iz=0,ix=ir.length;iziA[2]+hP+e||hX[3]+hP+eiA[3]+hP+e)){ij._intersectIdx.push(iy)}}}for(var iz=0,ix=ir.length;iz=0.5?e+0.5:e;return i},clearCollisionCache:function(e){if(!e){return}e.cacheState=null;e.unnecessaryCollisionTest=null},getCachedLabels:function(e){e=e||[];var T=this.getZoomStep();var hP=[];var hR=false;for(var hO=0;hOe){hU.isDel=true}if(hU.isDel){continue}var h0=hU.pt;var T=hU.iconPos;if(T&&T.texcoord){if(!T.rtVertex){T.rtVertex=[];var h2=T.vertex;var hR=aD(h0.lng);var hZ=aD(h0.lat);T.rtVertex=[hR[0],hZ[0],hR[1],hZ[1],0,h2[0],h2[1],0,0,T.texcoord[0],T.texcoord[1],hR[0],hZ[0],hR[1],hZ[1],0,h2[2],h2[3],0,0,T.texcoord[2],T.texcoord[3],hR[0],hZ[0],hR[1],hZ[1],0,h2[4],h2[5],0,0,T.texcoord[4],T.texcoord[5],hR[0],hZ[0],hR[1],hZ[1],0,h2[6],h2[7],0,0,T.texcoord[6],T.texcoord[7],hR[0],hZ[0],hR[1],hZ[1],0,h2[8],h2[9],0,0,T.texcoord[8],T.texcoord[9],hR[0],hZ[0],hR[1],hZ[1],0,h2[10],h2[11],0,0,T.texcoord[10],T.texcoord[11]]}}var h1=hU.textPos;if(h1){if(!h1.rtVertex){h1.rtVertex=[];var h2=h1.vertex;var hS=h1.rtVertex;var hR=aD(h0.lng);var hZ=aD(h0.lat);var h4=aD(hO);for(var hW=0,h3=h2.length;hW45&&ik<315){if(ik>45&&ik<=135){ig=270}else{if(ik>135&&ik<=225){ig=180}else{if(ik>225&&ik<315){ig=90}}}if(h5>225&&h5<=315&&ig<=180){h1=true}else{if((h5>=0&&h5<=45||h5>=315&&h5<360)&&ig>=180){h1=true}}}}for(var im=0,hX=h7.length;im=360){e-=360}while(e<0){e+=360}return e},fixDataFormat:function(hW){var hO=this.fixedLabelData;var e=this.lineLabelData;var T=this.highlightLabelData;var h3=0;var hS=0;var h1=0;var h2;if(this.currentSelectedLabel){var hR=this.getLabelByUid(this.currentSelectedLabel.guid,this.currentSelectedLabel.tilePosStr);if(!hR||hR.isDel){hO[h3]=this.currentSelectedLabel.formatedData;h3++;T[h1]=this.currentSelectedLabel.formatedData;h1++}}for(var h0=0;h0hO)){continue}var i=hP[e].spot||this._getSpotDataFromLabel(hP[e]);if(i){this._spotData.push(i)}}},_getSpotDataFromLabel:function(T){var hQ=this.map;if(!T.bds){return null}var e=T.bds.slice(0);var hO=null;if(T.iconPos){hO=new hp(T.pt.lng,T.pt.lat)}var i=T.name?T.name.replace("\\\\","
"):"";if(T.iconPos&&T.iconPos.iconType.indexOf("ditie")>-1&&hQ.getZoom()>14){i=""}var hP={n:i,pt:new hp(T.pt.lng,T.pt.lat),userdata:{iconPoint:hO,uid:T.guid,name:i,mapPoi:true,type:T.iconPos?T.iconPos.iconType:"",rank:T.rank,zoom:T.zoom,tilePosStr:T.tilePosStr},bd:e,tag:"MAP_SPOT_INFO"};T.spot=hP;return hP},drawLabelsOnCanvas:function(i,e){if(this._labelTextCanvas){this._labelTextCanvas.drawLabelsOnCanvas(i,e)}}});function fQ(e){this._map=e;this.virtualTile={custom:true,label:{fixedLabel:[],indoorLabel:[],lineLabel:[],textureHeights:[],status:"ready"},tileInfo:{col:0,row:0,zoom:0,useZoom:0,loopOffsetX:0},status:"ready"};this.virtualTile.label.tileInfo=this.virtualTile.tileInfo;this.init()}fQ.prototype.init=function(){var T=this._map;var i=this;function e(){i.updateLabels()}T.addEventListener("add_tile_labels",e);T.addEventListener("onremove_tile_labels",e);T.addEventListener("onclear_labels",e)};fQ.prototype.updateLabels=function(){var i=this._map.tileMgr.getLabelTextCanvas();var T=this._map;var e=this;i.drawCustomLabelsOnCanvas(T._customTileLabels,function(hP){var hO=e.virtualTile;if(hP){hO.label.textureHeights[0]=[hP.height]}hO.label.fixedLabel=T._customTileLabels;var hQ=new a8("oncustom_labels_ready");hQ.virtualTile=hO;hQ.labelCanvas=hP;hQ.imgKey=bl.getGUID("custom_labels_");T.dispatchEvent(hQ)})};bl.register(function(e){e._customLabelMgr=new fQ(e)});function eJ(i){var hO=null;try{if(dt.inMapHost){hO=new Worker(i);hO.onerror=function(e){e.preventDefault();hO=t(i)}}else{hO=t(i)}}catch(T){hO=t(i)}return hO}function t(hQ){var hT=null;try{var T;try{T=new Blob(['importScripts("'+hQ+'");'],{type:"application/javascript"})}catch(hR){var hP=new (window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder)();hP.append('importScripts("'+hQ+'");');T=hP.getBlob("application/javascript")}var hO=window.URL||window.webkitURL;var i=hO.createObjectURL(T);hT=new Worker(i)}catch(hS){}return hT}function f6(e){this.init(e)}var bc={init:function(T){var i=this;this.map=T;this.arrPendingData=[];var e=navigator.hardwareConcurrency||4;if((f2()||C.Browser.ie)&&e>2){e=2}this.arrWorker=[];this.ratio=a3();this.wordSpaceRatio=this.ratio;if(this.ratio>1){this.textSizeRatio=2}else{this.textSizeRatio=1}cX.canUseWebAssembly(function(hO){var hS;if(hO){hS=(window.location.protocol === "http:" ? "http:" : "https:") + "//huiyan.baidu.com/cms/bmapglbdi/worker_wasm_h4mks1.js"}else{hS=(window.location.protocol === "http:" ? "http:" : "https:") + "//huiyan.baidu.com/cms/bmapglbdi/worker_asm_gbu25b.js"}for(var hR=0;hR0){var hY=i.arrPendingData.shift();var hV=hY.cbk;i.loadTileData(hY.url,hY.tileInfo,hY.tileKey,hV)}var hX=new a8("onrefresh");hX.source="workermgr";T.fire(hX)};i.arrWorker.push(hU)}if(i.arrPendingData.length>0){for(var hP=0;hP=0;hQ--){var hS=hR[hQ];var e=hS.tileInfo;if(T.tileTypeName!==e.tileTypeName){continue}var hP="id_"+e.col+"_"+e.row+"_"+e.zoom;if(!T[hP]){hR.splice(hQ,1);hO.push(e)}}return hO},loadTileData:function(i,hO,hW,hV){var hP=this.getIdleWorker();var e=this.map._displayOptions.poi;var hR=e?this.map._displayOptions.poiText:false;if(hP){hP._cbk=hV;hP._parsingTileInfo=hO;hP._parsingTileKey=hW;var T={action:"loadTileData",url:i,tileInfo:hO,tileKey:hW,isText:hR,isPoi:e};var hU=this.map.getMapStyleId();var hT=!!(hU.indexOf("custom")===0);var hS=hU;if(hT){hS="Custom"}if(!hP.isSendFS){if(!f6["stringifiedFeatureStyle"+hU]&&bl["FeatureStyle"+hU]){f6["stringifiedFeatureStyle"+hU]=JSON.stringify(bl["FeatureStyle"+hU])}if(!f6["stringifiedIconSetInfo"+hS]){f6["stringifiedIconSetInfo"+hS]=JSON.stringify(bl["iconSetInfo"+hS])}if(!f6.stringifiedIndoorStyle){f6.stringifiedIndoorStyle=JSON.stringify(bl.indoorStyle)}if(hT&&bl.customStyleInfo){if(!f6.stringifiedCustomStyleInfo){f6.stringifiedCustomStyleInfo=JSON.stringify(bl.customStyleInfo)}}if(f6["stringifiedFeatureStyle"+hU]){T.featureStyle=f6["stringifiedFeatureStyle"+hU]}T.iconSetInfo=f6["stringifiedIconSetInfo"+hS];T.indoorStyle=f6.stringifiedIndoorStyle;if(hT&&f6.stringifiedCustomStyleInfo){T.customMapStyle=f6.stringifiedCustomStyleInfo}T.iconInfo={wordSpaceRatio:this.wordSpaceRatio,textSizeRatio:this.textSizeRatio};T.mapStyleId=hU;hP.isSendFS=true}hP.postMessage(T)}else{var hQ={url:i,tileInfo:hO,tileKey:hW,cbk:hV};this.arrPendingData.push(hQ)}}};C.extend(f6.prototype,bc);function dQ(i){this.tileLayers=[];this.map=i;var e=this.config=b3[this.map.mapType];this.errorUrl=e.errorUrl;this.tileSize=e.tileSize;this.baseUnits=e.baseUnits;this.baseZoomLevel=e.zoomLevelBase;this.tileURLs=e.tileUrls;this.tilesInfoCache={};this.loadDelay=10;this._labelTextCanvas=null}bl.register(function(i){if(i._renderType!=="webgl"){return}var e=i.tileMgr=new dQ(i);i.addEventListener("addtilelayer",function(hO){e.addWebGLLayer(hO.target)});i.addEventListener("removetilelayer",function(hO){e.removeWebGLLayer(hO.target)});i.on("update",function T(hO){if(!bl["FeatureStyle"+this.config.style]&&!bl.customStyleLoaded){return}e.loadLayersData({zoomChanged:hO.changedStatus.onzoom_changed?true:false})});i.on("style_changed",function(){e.loadLayersData()})});C.extend(dQ.prototype,{addWebGLLayer:function(hO){this.tileLayers.push(hO);hO.initDrawData();if(this.tileLayers.length>1){for(var T=1;T50);if(!e){if(!this.syncLoadTimer){this.syncLoadTimer=setTimeout(function(){hO._loadLayersFromCache(T);hO.syncLoadTimer=null},40)}}else{this._loadLayersFromCache(T)}if(!hO.map.viewAnimationTime){this.timer&&window.clearTimeout(this.timer)}this.timer=window.setTimeout(function(){if(hO.map.viewAnimationTime){if(new Date().getTime()-hO.map.viewAnimationTime<1000){return}hO.map.viewAnimationTime=new Date().getTime()}var hQ=hO.tileLayers.length;hO.tilesInfoCache={};for(var hR=0;hR0});var T=hS.length;this.tilesInfoCache={};for(var hO=0;hOd0._mc180X){var hY=d0.getSpaceDistanceInPixel(hR);ii=Math.ceil(hY/hQ)}if(h9.sw.lng19505879.362428114||h9.sw.lat<-15949096.637571886){h9.ne.lat=19505879.362428114;h9.sw.lat=-15949096.637571886}var hV=[Math.floor(h9.sw.lng/h4)-hO,Math.floor(h9.sw.lat/h4)];var iu=[Math.floor(h9.ne.lng/h4)+ii,Math.floor(h9.ne.lat/h4)];h3=hV[0];il=iu[0]+1;ia=hV[1];iq=iu[1]+1;var hZ=[];for(var hW=h3;hW=0?hW-hS:hW+hS;var h6="id_"+h5+"_"+h1+"_"+hR;if(!hZ[h6]){var hX={col:h5,row:h1,zoom:hR,useZoom:io,loopOffsetX:0,tileSize:ib,baseTileSize:hQ,mercatorSize:h4};hZ.push(hX);hZ[h6]=true}}}if(this.map._tilt>0){for(var it=0;it0&&h2.x0&&h2.yig.lng&&ih.minYig.lat){continue}if(!this.ifTileInMapBounds(ih,h9,ip,iv)){hZ.splice(it,1);it--}}}hZ.sort((function(i){return function(T,id){return((0.4*Math.abs(T.col-i[0])+0.6*Math.abs(T.row-i[1]))-(0.4*Math.abs(id.col-i[0])+0.6*Math.abs(id.row-i[1])))}})([h8,hT]));hZ.zoom=hR;hZ.tileTypeName=iw;return hZ},getCurrentViewTilesInfo:function(i){var e=this.tilesInfoCache[i.getName()];if(!e){return this.calcTilesInfo(i)}return e},ifTileInMapBounds:function(e,hQ,T,hP){var i=hQ.normalizedBottomLeft;var h1=hQ.normalizedTopRight;var hT=hQ.normalizedTopLeft;var hR=hQ.normalizedBottomRight;var hO=false;var h0=new hp(e.minX,e.minY);var hX=new hp(e.maxX,e.maxY);var hS=new hp(hX.lng,h0.lat);var hY=new hp(h0.lng,hX.lat);var hV=[hY,hX,hS,h0];for(var hZ=0,hU=hV.length;hZ=e._autoEnterZoom){e._checkIndoorByMove()}});i.on("zoomend",function(){if(this.getZoom()>=e._autoEnterZoom){e._checkIndoorByMove()}else{if(e.enterMethod!=="byClick"&&e.currentUid!==null){this.showIndoor(null)}}})};aS.prototype._checkIndoorByMove=function(){var T=this._map;var hU=T.getSize();var hZ={x:hU.width/2,y:hU.height/2};var hY=Math.max(hU.width,hU.height);var h0=[];for(var hV in this._indoorData){var e=this._indoorData[hV].center;var hO=T.pointToPixelIn(new bl.Point(e[0],e[1]));var hR=gT(hZ,hO);h0.push({uid:hV,distance:hR})}if(h0.length===0){return}h0.sort(function(h1,i){return h1.distance-i.distance});var hQ=h0[0];var hW=T.getCenterIn();var hP=false;for(var hT=0;hThS[0]&&hW.lat>hS[1]&&hW.lng=this._autoEnterZoom){this._checkIndoorByMove()}};aS.prototype.removeData=function(T,hP){if(!this._indoorData[T]){return}var hO=this._indoorData[T];for(var e=0;e>>0;var h1=(h3)&255;var h0=(h3>>8)&255;var hY=(h3>>16)&255;var hZ=(h3>>24)&255;hT[h2]=[h1,h0,hY,hZ];return hT[h2]}return{getStyleFromCache:function(h5,h0,h3,h4,hZ,h2,hY){h5=h5||"default";var h1=h5+"-"+h0+"-"+h3+"-"+h4;if(h2){h1+="-indoor"}if(hZ){if(!hX[h1]){hX[h1]=hU(h0,h3,h4,hZ)}return hX[h1]}if(!hO[h1]){hO[h1]=hU(h0,h3,h4,hZ,hY)}return hO[h1]}}})();bl.register(function(i){var e=new dD(i)});function dD(e){e.container.appendChild(this.render());this.bind(e)}dD.prototype.render=function(){var i=document.createElement("div");i.className="click-ripple-container";var e=document.createElement("div");e.className="click-ripple";i.appendChild(e);this._div=i;this._ripple=e;return i};dD.prototype.bind=function(i){var e=this;i.addEventListener("spotclick",function(T){if(!T.spots||T.spots.length===0){return}e._div.style.left=T.pixel.x+"px";e._div.style.top=T.pixel.y+"px";C.ac(e._ripple,"ripple-playing")});C.on(e._ripple,"transitionend",function(){C.rc(e._ripple,"ripple-playing")})};function fY(e){ea.call(this);if(!e){return}this._opts={};this._map=e;this._maxLat=84.6;this._minLat=-80.6;this._maxLatMC=ek.convertLL2MC(new c0(this._maxLat,0)).lat;this._minLatMC=ek.convertLL2MC(new c0(this._minLat,0)).lat}fY.inherits(ea,"ToolbarItem");C.extend(fY.prototype,{open:function(){if(this._isOpen==true){return true}if(this._map._toolInUse){return false}this._map._toolInUse=true;this._isOpen=true;return true},close:function(){if(!this._isOpen){return}this._map._toolInUse=false;this._isOpen=false},_checkStr:function(e){if(!e){return""}return e.replace(//g,">")}});function gI(T,i){fY.call(this,T);i=i||{};this._opts=C.extend(C.extend(this._opts||{},{autoClear:false,tips:"测距",followText:"单击确定起点,双击结束绘制",unit:"metric",showResult:true,lineColor:"blue",lineStroke:2,opacity:1,lineStyle:"solid",cursor:e0.distCursor,styleCodes:{lnCode:0,spCode:0,slCode:0,tlCode:0},enableMassClear:true}),i);if(this._opts.showResult===false){if(typeof i.tips==="undefined"){this._opts.tips="绘制折线"}if(!i.cursor){this._opts.cursor="crosshair"}}if(this._opts.lineStroke<=0){this._opts.lineStroke=2}if(this._opts.opacity>1){this._opts.opacity=1}else{if(this._opts.opacity<0){this._opts.opacity=0}}if(this._opts.lineStyle!=="solid"&&this._opts.lineStyle!=="dashed"){this._opts.lineStyle="solid"}this._checked=false;this._drawing=null;this.followTitle=null;this._totalDis={};this._points=[];this._paths=[];this._dots=[];this._segDistance=[];this._overlays=[];this._units={metric:{name:"metric",conv:1,incon:1000,u1:"米",u2:"公里"},us:{name:"us",conv:3.2808,incon:5279.856,u1:"英尺",u2:"英里"}};if(!this._units[this._opts.unit]){this._opts.unit="metric"}this._dLineColor="#ff6319";this._dLineStroke=3;this._dOpacity=0.8;this._dLineStyle="solid";this._dCursor=e0.distCursor;if(this._opts.showResult){this._opts.followText="单击确定起点"}this._followTextM="单击确定地点,双击结束";this._sectionMarkerTip="单击可删除此点,拖拽可调整位置";this._movingTimerId=null;if(this._opts.showResult){this.text="测距"}else{this.text="绘线"}this._isOpen=false;var e=this;d7.load("tools",function(){e._draw()})}gI.inherits(fY,"PolylineTItem");C.extend(gI.prototype,{setLineColor:function(e){this._opts.lineColor=e},setLineStroke:function(e){if(Math.round(e)>0){this._opts.lineStroke=Math.round(e)}},setOpacity:function(e){if(e>=0&&e<=1){this._opts.opacity=e}},setLineStyle:function(e){if(e==="solid"||e==="dashed"){this._opts.lineStyle=e}},clear:function(){for(var T=0,e=this._overlays.length;ThU){hO-=hQ;hS-=this._loopOffset}while(hOthis._mc180X){e-=this._mcTSpan}while(ethis._mc180X){i.lng-=this._mcTSpan;e-=this._mcTSpan;hP-=this._mcTSpan}while(i.lng=hV){var hU=hO+hX;if(this.isTileBlank(hU,e,h0)===true){continue}var T="id_"+hU+"_"+h1+"_"+e;if(!hW[T]){hW[T]=true;hY.push([hU,h1,e,0])}}else{if(hO<=hR){var hU=hO-hX;if(this.isTileBlank(hU,e,h0)===true){continue}var T="id_"+hU+"_"+h1+"_"+e;if(!hW[T]){hW[T]=true;hY.push([hU,h1,e,0])}}}}for(var hS=0,hQ=hY.length;hS=0;hS--){var hO=hW[hS][0];if(this.isTileBlank(hO,e,h0)){hW.splice(hS,1)}}return hW},isTileBlank:function(T,hP,e){var hQ=Math.pow(2,hP-3);var i=Math.round(this._validPixels*hQ);var hO=6*hQ*256/e;while(T>hO/2-1){T-=hO}while(T<-(hO/2)){T+=hO}if(T>0&&T*e>i){return true}if(T<0&&Math.abs((T+1)*e)>i){return true}return false},isAddWidth:function(e,i){return ethis._mc180X},getSpaceDistanceInPixel:function(i){var e=Math.round((this._spaceDistance+this._mSpaceDistance)/Math.pow(2,18-i));return e}};var d0=new cr();var cb=(function(){var i=true;var hP=256;var e=true;var hR=aB("ditu","normalTraffic");var hO=hR.udt;var hS="//its.map.baidu.com/traffic/";var hQ=[[2,"79,210,125,1",3,2,0,[],0,0],[2,"79,210,125,1",3,2,0,[],0,0],[2,"79,210,125,1",4,2,0,[],0,0],[2,"79,210,125,1",5,2,0,[],0,0],[2,"79,210,125,1",6,2,0,[],0,0],[2,"255,208,69,1",3,2,0,[],0,0],[2,"255,208,69,1",3,2,0,[],0,0],[2,"255,208,69,1",4,2,0,[],0,0],[2,"255,208,69,1",5,2,0,[],0,0],[2,"255,208,69,1",6,2,0,[],0,0],[2,"232,14,14,1",3,2,0,[],0,0],[2,"232,14,14,1",3,2,0,[],0,0],[2,"232,14,14,1",4,2,0,[],0,0],[2,"232,14,14,1",5,2,0,[],0,0],[2,"232,14,14,1",6,2,0,[],0,0],[2,"181,0,0,1",3,2,0,[],0,0],[2,"181,0,0,1",3,2,0,[],0,0],[2,"181,0,0,1",4,2,0,[],0,0],[2,"181,0,0,1",5,2,0,[],0,0],[2,"181,0,0,1",6,2,0,[],0,0],[2,"255,255,255,1",4,0,0,[],0,0],[2,"255,255,255,1",5.5,0,0,[],0,0],[2,"255,255,255,1",7,0,0,[],0,0],[2,"255,255,255,1",8.5,0,0,[],0,0],[2,"255,255,255,1",10,0,0,[],0,0]];var T=new cO({transparentPng:true,dataType:2,cacheSize:256,clipTile:true});T.zIndex=2;T.getTilesUrl=function(hV,hW){if(!hV||hW<7){return null}var hU=hV.x;var hX=hV.y;var hT=hS+"TrafficTileService?level="+hW+"&x="+hU+"&y="+hX+"&time="+(+new Date());if(this.map.getRenderType()==="webgl"){hT=hS+"?qt=vtraffic&z="+hW+"&x="+hU+"&y="+hX+"&udt="+hO}return hT};T.setColors=function(hT){for(var hW=0;hW=9000&&hU.current_city["code"]<=9378){hU.current_city["name"]="台湾省"}if(hU.current_city["code"]>=20000&&hU.current_city["code"]<=20499){hU.current_city["name"]="新加坡"}if(hU.current_city["code"]>=20500&&hU.current_city["code"]<=25999){hU.current_city["name"]="泰国"}if(hU.current_city["code"]>=26000&&hU.current_city["code"]<=29999){hU.current_city["name"]="日本"}if(hU.current_city["code"]>=30000&&hU.current_city["code"]<=30999){hU.current_city["name"]="韩国"}if(hU.current_city["code"]>=31000&&hU.current_city["code"]<=37000){hU.current_city["name"]="亚太"}if(hU.current_city["code"]>=46609&&hU.current_city["code"]<=52505){hU.current_city["name"]="欧洲"}if(hU.current_city["code"]>=39509&&hU.current_city["code"]<=53500){hU.current_city["name"]="南美洲"}if(hU.current_city["code"]>=54000&&hU.current_city["code"]<=70000){hU.current_city["name"]="北美洲"}if(hU.current_city["code"]===54003&&hU.current_city["code"]>=60731&&hU.current_city["code"]<=61123){hU.current_city["name"]="美国"}if(hU.current_city["code"]===54015||hU.current_city["code"]>=57970&&hU.current_city["code"]<=60223){hU.current_city["name"]="加拿大"}if(hU.current_city["code"]===54025||hU.current_city["code"]>=54338&&hU.current_city["code"]<=57374){hU.current_city["name"]="墨西哥"}e.enableRequest=true;if(hU&&hU.current_city){var hT=hU.current_city["name"];var hS=hU.current_city["code"];if(hS!==i.cCode){var hR=new a8("oncitychange");hR.name=hT;hR.code=hS;i.dispatchEvent(hR)}i.cityName=hT;i.cCode=hS;if(!f2()){es(i)}}},{qt:"cen",b:T.lng+","+T.lat+";"+hP.lng+","+hP.lat,l:hQ},"","",true)};i.addEventListener("load",function(T){e.request()});i.addEventListener("moveend",function(T){e.request()});i.addEventListener("zoomend",function(T){e.request()});e.request()});function fz(i){if(i.temp.copyadded){return}i.temp.copyadded=true;if(!i.cpyCtrl){var hO=new d6(2,2);i.config.cpyCtrlOffset=hO;if(f2()){hO.width=72;hO.height=0}var T=new dE({offset:hO,printable:true});i.cpyCtrl=T}if(!f2()){es(i);i.addEventListener("maptypechange",function(){es(i)})}i.addControl(T);var e=new af();e._opts={printable:true};i.logoCtrl=e;i.addControl(e);i.addEventListener("resize",function(){if(this.getSize().width>=300&&i.getSize().height>=100){e.show();T.setOffset(i.config.cpyCtrlOffset)}else{e.hide();T.setOffset(new d6(4,2))}});if(i.getSize().width>=300&&i.getSize().height>=100){e.show()}else{e.hide();T.setOffset(new d6(4,2))}i.addEventListener("oncopyrightoffsetchange",function(hP){i.logoCtrl.setOffset(hP.target.logo);i.cpyCtrl.setOffset(hP.target.cpy)});i.dispatchEvent(new a8("oncopyrightaddend"))}function es(h3){if(!h3.cpyCtrl){var ib=new d6(2,2);if(f2()){ib.width=72;ib.height=0}var h6=new dE({offset:ib,printable:true});h3.cpyCtrl=h6}var il=h3.cityName||"中国";var h4=h3.getMapType();var h5=["常州市","南昌市","乌鲁木齐市","无锡市","福州市","泉州市","珠海市","贵阳市"];var hX=["北京市","上海市","广州市","深圳市","宁波市","石家庄市","沈阳市","长春市","青岛市","温州市","台州市","金华市","佛山市","中山市","昆明市","南宁市","苏州市","西安市","济南市","郑州市","合肥市","呼和浩特市","杭州市","成都市","武汉市","长沙市","天津市","南京市","重庆市","大连市","东莞市","厦门市"];var hZ=["香港特别行政区"];var hT=["台湾省"];var ic=["日本"];var ij=["韩国"];var h7=["泰国"];var ia=["亚太"];var hU=["新加坡"];var ik=["欧洲"];var hO=["南美洲"];var ig=["北美洲"];var T=["美国"];var h9=["墨西哥"];var hR=["加拿大"];for(var ih in h5){if(h5[ih]===il){var h0=true;break}}for(var ih in hX){if(hX[ih]===il){var hP=true;break}}for(var ih in hZ){if(hZ[ih]===il){var io=true;break}}if(hT[0]===il){var ie=true}if(hU[0]===il){var i=true}if(ic[0]===il){var hW=true}if(ij[0]===il){var h2=true}if(h7[0]===il){var h1=true}if(ia[0]===il){var hS=true}if(ik[0]===il){var hY=true}if(hO[0]===il){var hV=true}if(ig[0]===il){var e=true}if(T[0]===il){var ii=true}if(hR[0]===il){var id=true}if(h9[0]===il){var hQ=true}var im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "];var h8="rgba(255, 255, 255, 0.701961)";if(h3.getZoom()<=9){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(ie){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(hW||h2){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(i||h1){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(hS){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(hY){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(hV){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(e){im=["© 2021 Baidu - GS(2019)5218号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}}}}}}}}if(h3.getZoom()<=9){im.push("长地万方");im.push(' & OpenStreetMap');im.push(' & HERE');if(h4===BMAP_SATELLITE_MAP||h4===BMAP_HYBRID_MAP){im.push(' & ESO');h8="rgba(0,0,0,.7)"}}else{if(hW||h2){im.push('OpenStreetMap')}else{if(i||h1){im.push('HERE')}else{if(hS){im.push('HERE');im.push(' & Mapbox')}else{if(hY){im.push('OpenStreetMap');im.push(' & Mapbox')}else{if(hV){im.push('OpenStreetMap');im.push(' & Mapbox')}else{if(ii||hQ||id){im.push('HERE');im.push(' & Mapbox')}else{if(e){im.push('OpenStreetMap');im.push(' & Mapbox')}else{im.push("长地万方");if(h0){im.push(' & PalmCity')}if(io){im.push(' & MapKing')}if(ie){im.push(' & HERE');im.push(' & 樂客LocalKing')}if(h4===BMAP_SATELLITE_MAP||h4===BMAP_HYBRID_MAP){h8="rgba(0,0,0,.7)"}}}}}}}}}im.unshift('');im.push("");im=im.join("");h3.cpyCtrl.addCopyright({id:1,content:im})}window.BMAP_STATUS_SUCCESS=0;window.BMAP_STATUS_CITY_LIST=1;window.BMAP_STATUS_UNKNOWN_LOCATION=2;window.BMAP_STATUS_UNKNOWN_ROUTE=3;window.BMAP_STATUS_INVALID_KEY=4;window.BMAP_STATUS_INVALID_REQUEST=5;window.BMAP_STATUS_PERMISSION_DENIED=6;window.BMAP_STATUS_SERVICE_UNAVAILABLE=7;window.BMAP_STATUS_TIMEOUT=8;window.BMAP_ROUTE_TYPE_WALKING=2;window.BMAP_ROUTE_TYPE_DRIVING=3;window.BMAP_ROUTE_TYPE_RIDING=6;window.BMAP_ROUTE_STATUS_NORMAL=0;window.BMAP_ROUTE_STATUS_EMPTY=1;window.BMAP_ROUTE_STATUS_ADDRESS=2;var eC="cur";var bZ="cen";var ej="s";var P="con";var dJ="bd";var ga="nb";var hF="bt";var cM="nav";var eh="walk";var hB="gc";var fI="rgc";var eu="dec";var e8="bse";var fj="nse";var g="bl";var a9="bsl";var bm="bda";var X="sa";var ay="nba";var bW="drag";var H="ext";var aM="hip";var R="ride";var fN="drct";var gm=2;var fK=4;var g4=7;var g2=11;var fu=12;var hz=14;var bN=15;var dG=18;var fb=20;var cF=21;var cl=19;var e5=23;var cf=26;var ao=28;var ef=31;var cC=35;var ge=44;var hM=45;var eF=46;var cA=47;var gv=-1;var gU=0;var g9=1;var cj=2;var b5=3;window.BMAP_POI_TYPE_NORMAL=0;var Q=1;var b9=2;BMapGL.I=C.I;var O={};O.removeHtml=function(e){e=e.replace(/<\/?[^>]*>/g,"");e=e.replace(/[ | ]* /g," ");return e};O.parseGeoExtReg1=function(e){return e.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};O.parseGeoExtReg2=function(i,e){var T=new RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+e+"}","ig");return i.replace(T,"$1")};var fs=0;var cE=1;var g5=2;O.unique=function(T){var hQ=false;var hP=[];var hR={};for(var hO=0,e=T.length;hO21){T=21}return T};O.parseGeo=function(hR,hU){if(typeof hR!="string"||!hR){return}var hW=hR.split("|");var e;var hP;var T;if(hW.length==1){e=f7(hR)}else{e=f7(hW[2]);hP=f7(hW[0]);T=f7(hW[1]);if(!hU){return e}}var hS={type:e.geoType};if(hU){switch(hS.type){case g5:var hT=new hp(e.geo[0][0],e.geo[0][1]);var hV=ek.convertMC2LL(hT);hS.point=hV;hS.points=[hV];break;case cE:hS.points=[];var hX=e.geo[0];for(var hQ=0,hO=hX.length-1;hQ0.25&&hY<1){hY=1}else{if(hY>32){hY=32}}}}var hT=h7.split("|");if(hT.length==1){var hO=f7(hT[0]);return{type:hO.type,bound:"",points:hO.geo.join(",")}}else{if(hT.length>1){var hZ=h7.split(";.=");var hV=[];var hP=[];var h0=0;var h4=hZ.length;for(var h1=0;h11){if(h1==0){h6=h6+";"}if(h1>0&&h10){h5=O.parseGeoExtReg2(h5,hY)}hP.push(h5)}if(h4<=1){hP=hP.join(";")}if(h4==2){var T=hP[0]+";"+hP[1];var hR=T.split(";");var e=[];for(var h1=0;h1f1){e=f1-e}if(hS>f1){hS=f1-hS}hO.push(hO[T-2]+e);hO.push(hO[T-1]+hS);return 0}function cL(i){var e=i.charCodeAt(0);if(i>="A"&&i<="Z"){return e-"A".charCodeAt(0)}else{if(i>="a"&&i<="z"){return(26+e-"a".charCodeAt(0))}else{if(i>="0"&&i<="9"){return(52+e-"0".charCodeAt(0))}else{if(i=="+"){return 62}else{if(i=="/"){return 63}}}}}return -1}O.pathToPoints=function(hQ){var hO=[];if(typeof hQ!=="string"){return hO}else{var hP=hQ.split(";");for(var T=0;TdK.MAX_PAGE_CAPACITY?dK.DEFAULT_PAGE_CAPACITY:e)}else{this._opts.pageCapacity=dK.DEFAULT_PAGE_CAPACITY}},getPageCapacity:function(){return this._opts.pageCapacity},toString:function(){return"LocalSearch"}});function V(i){this._opts={};C.extend(this._opts,i);this._queryList=[];var e=this;d7.load("otherSearch",function(){e._asyncSearch()})}V.inherits(ea,"Geocoder");C.extend(V.prototype,{getPoint:function(e,T,i){this._queryList.push({method:"getPoint",arguments:[e,T,i]})},getLocation:function(e,T,i){this._queryList.push({method:"getLocation",arguments:[e,T,i]})},toString:function(){return"Geocoder"}});function cP(e){e=e||{};this.config={timeout:e.timeout||1000*10,maximumAge:e.maximumAge||0,enableHighAccuracy:e.enableHighAccuracy||false,SDKLocation:e.SDKLocation||false};this._pendingCalls=[];var i=this;d7.load("otherSearch",function(){var T=i._pendingCalls.length;for(var hO=0;hO=BMAP_TRANSIT_POLICY_RECOMMEND&&e<=BMAP_TRANSIT_POLICY_FIRST_SUBWAYS){this._opts.policy=e}else{this._opts.policy=BMAP_TRANSIT_POLICY_RECOMMEND}},setIntercityPolicy:function(e){if(e>=BMAP_INTERCITY_POLICY_LEAST_TIME&&e<=BMAP_INTERCITY_POLICY_CHEAP_PRICE){this._opts.intercityPolicy=e}else{this._opts.intercityPolicy=BMAP_INTERCITY_POLICY_LEAST_TIME}},setTransitTypePolicy:function(e){if(e>=BMAP_TRANSIT_TYPE_POLICY_TRAIN&&e<=BMAP_TRANSIT_TYPE_POLICY_COACH){this._opts.transitTypePolicy=e}else{this._opts.transitTypePolicy=BMAP_TRANSIT_TYPE_POLICY_TRAIN}},_internalSearch:function(i,e){this._queryList.push({method:"_internalSearch",arguments:[i,e]})},search:function(i,e){this._queryList.push({method:"search",arguments:[i,e]})},setPageCapacity:function(e){if(typeof e==="string"){e=parseInt(e,10);if(isNaN(e)){this._opts.pageCapacity=bF.MAX_PAGE_CAPACITY;return}}if(typeof e!=="number"){this._opts.pageCapacity=bF.MAX_PAGE_CAPACITY;return}if(e>=1&&e<=bF.MAX_PAGE_CAPACITY){this._opts.pageCapacity=Math.round(e)}else{this._opts.pageCapacity=bF.MAX_PAGE_CAPACITY}},toString:function(){return"TransitRoute"},_shortTitle:function(e){return e.replace(/\(.*\)/,"")}});window.BMAP_HIGHLIGHT_STEP=1;window.BMAP_HIGHLIGHT_ROUTE=2;var cH=function(e,hO){hc.call(this,e,hO);this._overlays=[];this._curIndex=-1;this._queryList=[];var T=this;var i=this._opts.renderOptions;if(i.highlightMode!==BMAP_HIGHLIGHT_STEP&&i.highlightMode!==BMAP_HIGHLIGHT_ROUTE){i.highlightMode=BMAP_HIGHLIGHT_STEP}this._enableDragging=this._opts.renderOptions.enableDragging?true:false;d7.load("route",function(){T._asyncSearch()},true);if(this.init_d){this.init_d()}};cH.ROAD_TYPE=["","环岛","无属性道路","主路","高速连接路","交叉点内路段","连接道路","停车场内部道路","服务区内部道路","桥","步行街","辅路","匝道","全封闭道路","未定义交通区域","POI连接路","隧道","步行道","公交专用道","提前右转道"];C.inherit(cH,hc,"DWRoute");C.extend(cH.prototype,{search:function(T,e,i){this._queryList.push({method:"search",arguments:[T,e,i]})}});window.BMAP_DRIVING_POLICY_DEFAULT=0;window.BMAP_DRIVING_POLICY_AVOID_HIGHWAYS=3;window.BMAP_DRIVING_POLICY_FIRST_HIGHWAYS=4;window.BMAP_DRIVING_POLICY_AVOID_CONGESTION=5;window.BMAP_TRAFFICE_STATUS_NONE=0;window.BMAP_TRAFFICE_STATUS_NORMAL=1;window.BMAP_TRAFFICE_STATUS_SLOW=2;window.BMAP_TRAFFICE_STATUS_JAM=3;function fB(e,i){cH.call(this,e,i);i=i||{};this._opts._enableTraffic=i.enableTraffic||false;this.setPolicy(i.policy);this.QUERY_TYPE=cM;this.RETURN_TYPE=fb;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_DRIVING}C.inherit(fB,cH,"DrivingRoute");fB.prototype.setPolicy=function(e){if(e>=BMAP_DRIVING_POLICY_DEFAULT&&e<=BMAP_DRIVING_POLICY_AVOID_CONGESTION){this._opts.policy=e}else{this._opts.policy=BMAP_DRIVING_POLICY_DEFAULT}};function a7(e,i){cH.call(this,e,i);this.QUERY_TYPE=eh;this.RETURN_TYPE=ef;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_WALKING;this._enableDragging=false}C.inherit(a7,cH,"WalkingRoute");function bj(e,i){cH.call(this,e,i);this.QUERY_TYPE=R;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_RIDING;this._enableDragging=false}C.inherit(bj,cH,"RidingRoute");window.BMAP_MODE_DRIVING="driving";window.BMAP_MODE_TRANSIT="transit";window.BMAP_MODE_WALKING="walking";window.BMAP_MODE_NAVIGATION="navigation";var bb={web:"//api.map.baidu.com/direction?",android:"bdapp://map/direction?",ios:"baidumap://map/direction?"};function hq(e){this.opts=e||{}}C.extend(hq.prototype,{routeCall:function(hO,e,T){var i=this;d7.load("route",function(){i._asyncSearch(hO,e,T)})}});bl.Map=c5;bl.MapType=b3;bl.Point=hp;bl.Pixel=eg;bl.Size=d6;bl.Bounds=dP;bl.TileLayer=cO;bl.Copyright=c1;bl.Projection=bl.Project=ek;bl.Convertor=ax;bl.RenderTypeUtils=a5;bl.Overlay=bi;bl.Label=fM;bl.Marker=aA;bl.Icon=g8;bl.Polyline=ak;bl.BezierCurve=fk;bl.PolylineMultipart=fi;bl.Polygon=g1;bl.Prism=cd;bl.Marker3D=cs;bl.GroundOverlay=cm;bl.InfoWindow=an;bl.SimpleInfoWindow=hE;bl.Circle=dC;bl.Control=a4;bl.NavigationControl=dq;bl.NavigationControl3D=eR;bl.CopyrightControl=dE;bl.ScaleControl=he;bl.CityListControl=d8;bl.MapTypeControl=bz;bl.ZoomControl=cv;bl.LocationControl=bx;bl.LogoControl=af;bl.DistanceTool=gI;bl.ContextMenu=cc;bl.MenuItem=fv;bl.OperationMask=ee;bl.Animation=o;bl.ViewAnimation=cJ;bl.Transitions=ck;bl.Event=a8;bl.trafficLayer=cb;bl.Geolocation=cP;bl.Geocoder=V;bl.Boundary=gw;bl.LocalCity=W;bl.LocalSearch=dK;bl.Autocomplete=gZ;bl.BusLineSearch=dZ;bl.WalkingRoute=a7;bl.RidingRoute=bj;bl.DrivingRoute=fB;bl.TransitRoute=bF;bl.RouteSearch=hq;function dY(e,i){for(var T in i){e[T]=i[T]}}bl.verify();bl.apiLoad();})(BMapGL,"BMapGL");