window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20211207"},"satellite":{"version":"009","updateDate":"20211207"},"normalTraffic":{"version":"081","updateDate":"20211207"},"satelliteTraffic":{"version":"083","updateDate":"20211207"},"mapJS":{"version":"104","updateDate":"20211207"},"satelliteStreet":{"version":"083","updateDate":"20211207"},"earthVector":{"version":"001","updateDate":"20211207"}},"webapp":{"high_normal":{"version":"001","updateDate":"20211207"},"lower_normal":{"version":"002","updateDate":"20211207"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20211207"},"vectorIcon":{"version":"002","updateDate":"20211207"}}};window.MSV={"mapstyle":{"updateDate":"20210923","version":"001"}};window.BMAP_AUTHENTIC_KEY="7Cc5Kmn672miPzG4qQhvlOrERcXMMinq";window.BMapGL=window.BMapGL||{};(function(bo,eF){var C=C||{version:"20150702",emptyFn:function(){}};(function(){C._log=[];var i=0;var T={};C.BaseClass=function(hY){T[(this.hashCode=(hY||C.BaseClass.guid()))]=this};C.BaseClass.guid=function(){return"mz_"+(i++).toString(36)};C.BaseClass.create=function(){var hY=new C.BaseClass();hY.decontrol();return hY};var e=C.instance=C.I=function(hY){return T[hY]};C.BaseClass.prototype.dispose=function(){if(this.hashCode){delete T[this.hashCode]}for(var hY in this){if(typeof this[hY]!="function"){delete this[hY]}}};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(hZ,h0){var hY=C._log;if(hY.length>100){hY.reverse().length=50;hY.reverse()}hY[hY.length]="["+hZ+"]["+(this._className||"Object")+" "+this.hashCode+"] "+h0}})();Function.prototype.inherits=function(hY,T){var e,hZ,h1=this.prototype,h0=function(){};h0.prototype=hY.prototype;hZ=this.prototype=new h0();if(typeof(T)=="string"){hZ._className=T}for(e in h1){hZ[e]=h1[e]}this.prototype.constructor=h1.constructor;h1=h0=null;return hZ};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 hY=i.hashCode||C.BaseClass.guid();i.hashCode=hY;if(e[T][hY]){this._wlog("warning","repeat key:"+hY)}e[T][hY]=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(hY){if(!this._listeners){this._listeners={}}var T,e=this._listeners,hZ=hY.type;hY.target=hY.srcElement=hY.target||hY.srcElement||this;hY.currentTarget=this;if(typeof this[hZ]=="function"){this[hZ](hY)}if(typeof e[hZ]=="object"){for(T in e[hZ]){if(typeof e[hZ][T]=="function"){e[hZ][T].call(this,hY)}}}return hY.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 hZ=0;var e=0;var h0=0;var i=0;var h4=0;var h2=0;var h3=0;var h1=0;var hY=0;var h5=0;if(typeof window.opera==="object"&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(T)){h0=parseFloat(RegExp.$2)}else{if(/OPR(\/(\d+)(\..?)?)/.test(T)){h0=parseInt(RegExp.$2,10)}else{if(/Edge\/((\d+)\.\d+)/.test(T)){hZ=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)){h4=parseFloat(RegExp.$2)}else{if(navigator.vendor==="Netscape"&&/Netscape(\s|\/)(\d+(\.\d+)?)/.test(T)){h3=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)){h1=parseInt(RegExp.$1,10)}else{if(!e&&!hZ&&T.indexOf("Gecko")>-1&&T.indexOf("KHTML")===-1&&/rv\:(\d+(\.\d+)?)/.test(T)){hY=parseFloat(RegExp.$1)}else{if(!hZ&&/chrome\/(\d+(\.\d+)?)/i.test(T)){h2=parseFloat(RegExp.$1)}else{if(!hZ&&/AppleWebKit\/(\d+(\.\d+)?)/.test(T)){h5=parseInt(RegExp.$1,10)}}}}var h6={edge:hZ,ie:e,firefox:h4,netscape:h3,opera:h0,safari:i,chrome:h2,gecko:hY,trident:h1,webkit:h5};return h6})();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(hY){var h1=C.Dom.getOwnerDocument(hY);var h0=C.isGecko>0&&h1.getBoxObjectFor&&C.Dom.getStyle(hY,"position")=="absolute"&&(hY.style.top===""||hY.style.left==="");var h2={left:0,top:0};var i=(C.isIE&&!C.isStrict)?h1.body:h1.documentElement;if(hY==i){return h2}var T=null;var hZ;if(hY.getBoundingClientRect){hZ=hY.getBoundingClientRect();h2.left=hZ.left+Math.max(h1.documentElement.scrollLeft,h1.body.scrollLeft);h2.top=hZ.top+Math.max(h1.documentElement.scrollTop,h1.body.scrollTop);h2.left-=h1.documentElement.clientLeft;h2.top-=h1.documentElement.clientTop;if(C.isIE&&!C.isStrict){h2.left-=2;h2.top-=2}}else{if(h1.getBoxObjectFor&&!h0){hZ=h1.getBoxObjectFor(hY);var e=h1.getBoxObjectFor(i);h2.left=hZ.screenX-e.screenX;h2.top=hZ.screenY-e.screenY}else{T=hY;do{h2.left+=T.offsetLeft;h2.top+=T.offsetTop;if(C.isWebkit>0&&C.Dom.getStyle(T,"position")=="fixed"){h2.left+=h1.body.scrollLeft;h2.top+=h1.body.scrollTop;break}T=T.offsetParent}while(T&&T!=hY);if(C.isOpera>0||(C.isWebkit>0&&C.Dom.getStyle(hY,"position")=="absolute")){h2.top-=h1.body.offsetTop}T=hY.offsetParent;while(T&&T!=h1.body){h2.left-=T.scrollLeft;if(!C.isOpera||T.tagName!="TR"){h2.top-=T.scrollTop}T=T.offsetParent}}}return h2};C.Dom.getOwnerDocument=function(e){return e.nodeType==9?e:e.ownerDocument||e.document};C.Dom.setProperties=function(i,e){C.each(e,function(hY,T){C.Dom._setProperty(i,T,hY)})};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=[],hY=arguments.length-1;hY>-1;hY--){var hZ=arguments[hY];T[hY]=null;if(typeof hZ=="object"&&hZ&&hZ.dom){T[hY]=hZ.dom}else{if((typeof hZ=="object"&&hZ&&hZ.tagName)||hZ==window||hZ==document){T[hY]=hZ}else{if(typeof hZ=="string"&&(hZ=document.getElementById(hZ))){T[hY]=hZ}}}}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(h0,e){if(typeof e!="function"){return h0}if(h0){if(h0.length===undefined){for(var T in h0){e.call(h0[T],h0[T],T)}}else{for(var hY=0,hZ=h0.length;hY0&&!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(h5,h3){if(h3==null){h3=document}var h2=[],h1=h3.getElementsByTagName("*"),hY=h1.length,h4=new RegExp("(^|\\s)"+h5+"(\\s|$)"),h0,hZ;for(h0=0,hZ=0;h0-1};C.insertHTML=function(hY,e,T){hY=C.G(hY);if(hY===null){return hY}var i,hZ;if(hY.insertAdjacentHTML){hY.insertAdjacentHTML(e,T)}else{i=hY.ownerDocument.createRange();e=e.toUpperCase();if(e=="AFTERBEGIN"||e=="BEFOREEND"){i.selectNodeContents(hY);i.collapse(e=="AFTERBEGIN")}else{hZ=e=="BEFOREBEGIN";i[hZ?"setStartBefore":"setEndAfter"](hY);i.collapse(hZ)}i.insertNode(i.createContextualFragment(T))}return hY};if(typeof HTMLElement!="undefined"&&HTMLElement.prototype.__lookupGetter__&&!HTMLElement.prototype.__lookupGetter__("children")&&!window.opera){try{HTMLElement.prototype.__defineGetter__("children",function(){for(var T=[],hY=0,h0,hZ=0,e=this.childNodes.length;hZ-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 f9=window.location.protocol==="http:"?"http:":"https:";var e0={fontFamily:'Arial,Helvetica,"PingFang SC","Hiragino Sans GB",STHeiti,sans-serif',mapStyleNameIdPair:{"default":0,"grayed-out":1},mapHost:f9+"//map.baidu.com",apiHost:f9+"//api.map.baidu.com",apiIMG:f9+"//api.map.baidu.com/images",staticHost:f9+"//webmap0.bdimg.com",imgPath:f9+"//webmap0.bdimg.com/image/api/",tileDomain:[f9+"//maponline0.bdimg.com",f9+"//maponline1.bdimg.com",f9+"//maponline2.bdimg.com",f9+"//maponline3.bdimg.com"],optDomain:"http://10.120.25.45:8017",rasterTilePath:"/tile/",vectorTilePath:"/pvd/",originTilePath:[f9+"//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 f9+"//maponline0.bdimg.com/sty/"+i},getMapStyleFiles:function(T){var hZ=true;if(typeof T==="string"&&T!=="default"){hZ=false}var h0=hZ?"":"_"+(this.mapStyleNameIdPair[T]-1);var i=fF();var hY="udt="+i.udt+"&v="+i.ver;var e=f9+"//maponline0.bdimg.com/sty/";return[e+"icons_2x"+h0+".js?"+hY,e+"fs"+h0+".js?"+hY,e+"indoor_fs.js?"+hY]},tvc:{ditu:{normal:{version:"088",updateDate:"20210726"},satellite:{version:"009",updateDate:"20210726"},normalTraffic:{version:"081",updateDate:"20210726"},satelliteTraffic:{version:"083",updateDate:"20210726"},mapJS:{version:"104",updateDate:"20210726"},satelliteStreet:{version:"083",updateDate:"20210726"},panoClick:{version:"1033",updateDate:"20180108"},panoUdt:{version:"20180108",updateDate:"20180108"},panoSwfAPI:{version:"20150123",updateDate:"20150123"},panoSwfPlace:{version:"20141112",updateDate:"20141112"},earthVector:{version:"001",updateDate:"20210726"}}},msv:{mapstyle:{updateDate:"20210726",version:"001"}}};e0.imgResources={blankGIF:e0.staticHost+"/res/litemapapi/v1d1/images/blank.gif?20170501",markerPng:e0.staticHost+"/res/litemapapi/v1d1/images/marker.png?20170501",locPng:e0.staticHost+"/res/litemapapi/v1d1/images/loc.png?20180918",locNewPng:e0.staticHost+"/res/litemapapi/v1d1/images/loc_new.png?20190314",zoomPng:e0.staticHost+"/res/litemapapi/v1d1/images/zoombtn.png?20180918",mapLogoPng:e0.staticHost+"/res/litemapapi/v1d1/images/logo-2x.png?20190226"};var e8=e0;var a3="ruler.cur";if(C.Browser.ie||C.Browser.edge){C.extend(e8,{distCursor:"url("+e8.imgPath+a3+"),crosshair",defaultCursor:"url("+e8.imgPath+"openhand.cur),default",draggingCursor:"url("+e8.imgPath+"closedhand.cur),move"})}else{if(C.Browser.firefox){C.extend(e8,{distCursor:"url("+e8.imgPath+a3+"),crosshair",defaultCursor:"-moz-grab",draggingCursor:"-moz-grabbing"})}else{if(C.Browser.chrome||C.Browser.safari){C.extend(e8,{distCursor:"url("+e8.imgPath+a3+") 2 6,crosshair",defaultCursor:"url("+e8.imgPath+"openhand.cur) 8 8,default",draggingCursor:"url("+e8.imgPath+"closedhand.cur) 8 8,move"});if(C.Platform.macintosh){e8.defaultCursor="-webkit-grab";e8.draggingCursor="-webkit-grabbing"}}else{C.extend(e8,{distCursor:"url("+e8.imgPath+a3+"),crosshair",defaultCursor:"url("+e8.imgPath+"openhand.cur),default",draggingCursor:"url("+e8.imgPath+"closedhand.cur),move"})}}}bo=bo||{};bo.version="gl";bo._register=[];bo.register=function(e){this._register[this._register.length]=e};bo.guid=1;bo.getGUID=function(e){return(e||"")+bo.guid++};var gk=window.BMAP_AUTHENTIC_KEY||"";function dS(e,i,hY){var T=new Date();T.setTime(T.getTime()+hY*24*60*60*1000);document.cookie=e+"="+escape(i)+";expires="+T.toGMTString()}function d6(e,i){if(navigator.cookieEnabled){return dS(e,i,30)}if(localStorage){return localStorage.setItem(e,i)}if(sessionStorage){return sessionStorage.setItem(e,i)}}bo.getSeckeyCid=function(){var i=+new Date();var e=f9+"//dlswbr.baidu.com/heicha/mw/abclite-2063-s.js?_t="+i;ht.load(e,ew)};function ew(){if(window.___abvk){d6("SECKEY_ABVK",window.___abvk)}}window.__abbaidu_2063_cb=function(i){var e=JSON.parse(i);d6("BMAP_SECKEY",e.data)};bo.bmapVerifyCbk=function(e){if(e&&e.error!==0){if(typeof map!=="undefined"){map.getContainer().innerHTML="";map.__listeners={}}bo=null;var i="百度未授权使用地图API,可能是因为您提供的密钥不是有效的百度地图开放平台密钥,或此密钥未对本应用的百度地图JavaScriptAPI授权。您可以访问如下网址了解如何获取有效的密钥:https://lbs.baidu.com/apiconsole/key#。";switch(e.error){case 101:i="您所使用的密钥ak有问题,不支持jsapi服务,可以访问该网址了解如何获取有效密钥:http://lbsyun.baidu.com/apiconsole/key#。";break;case 102:i="MCODE参数不存在,mobile类型MCODE参数必需,详情查看:http://lbsyun.baidu.com/apiconsole/key#。";break;case 200:i="APP不存在,AK有误请检查再重试,详情查看:http://lbsyun.baidu.com/apiconsole/key#。";break;case 201:i="APP被您禁用啦,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 202:i="APP被管理员删除啦,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 203:i="APP类型错误,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 210:i="APP IP校验失败,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 220:i="APP Referer校验失败。请检查该ak设置的白名单与访问所有的域名是否一致。详情查看:http://lbsyun.baidu.com/apiconsole/key#";break;case 230:i="APP Mcode码校验失败,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 240:i="APP服务被禁用了,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情,或联系我们了解详情。";break;case 250:i="该用户不存在... 请登录 https://lbs.baidu.com 的控制台,注册成为开发者申请ak吧。";break;case 251:i="该用户被自己删除啦,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看自己的应用具体详情。";break;case 252:i="该用户被管理员删除啦,可以访问 http://lbsyun.baidu.com/apiconsole/key# 了解如何获取有效密钥,或请联系我们了解详情。";break;case 260:i="您所使用的密钥AK不包含该服务呢,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看服务选择情况,或请联系我们了解详情。";break;case 261:i="您所使用的密钥AK的该服务被禁用啦,可以访问 http://lbsyun.baidu.com/apiconsole/key# 查看服务选择情况,或请联系我们了解详情。";break;case 401:i="您所使用的AK并发超限了,请登录 http://lbsyun.baidu.com/cashier/quota#/home 了解详情。";break;case 302:i="您所使用的AK天配额超限了,请登录 http://lbsyun.baidu.com/cashier/quota#/home 了解详情。";break}alert(i)}};bo.frequencyCbk=function(e){if(e){window.QTFrequency=e}};bo.verify=function(){var e=e8.apiHost+"/?qt=verify&v=gl&type=webgl&ak="+gk+"&callback="+eF+".bmapVerifyCbk";ht.load(e)};bo.frequency=function(){};bo.apiLoad=bo.apiLoad||function(){};function fQ(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]}}}fQ.prototype.setData=function(T,hY){var e=this._cache;var i=this._size;if(i===0){return}if(e.length>i){this._removeOld()}if(!e[T]){e.push(hY)}e[T]=hY;hY._key_=T};fQ.prototype.getHitRate=function(){return Math.round(this._totalHitTimes/this._totalGetTimes*1000)/1000};fQ.prototype.getData=function(i){var e=this._cache[i];if(e){this._totalHitTimes++}this._totalGetTimes++;return e};fQ.prototype.removeData=function(hZ){if(this._options.clearCallback){this._options.clearCallback(this._cache[hZ])}var T=this._cache;var h0=T[hZ];for(var hY=0,e=T.length;hY=0;hZ--){var hY=this._cache[hZ]._key_;if(!h0[hY]){T.splice(hZ,1);if(this._options.clearCallback){this._options.clearCallback(T[hY])}delete T[hY]}}};fQ.prototype.getDataCount=function(){return this._cache.length};function am(){}C.extend(am.prototype,{centerAndZoomIn:function(h3,T,h4){var h1=this;if(!h3&&!T){return}h3=h3||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 h2(){h1._earth=new bo.Earth(h1,{showRealSunlight:h1.config.showRealSunlight,showMilkyway:h1.config.showMilkyway,earthBackground:h1.config.earthBackground});h1._proxyEarthEvents();h1._changeEarthMapType(BMAP_EARTH_MAP);C.extend(h1,bo.EarthView.prototype);if(!h1._navigationCtrl&&h1.config.showControls){h1._navigationCtrl=new bo.NavigationControl3D(h1)}delete h1.temp.originMapType}ed.load("earth",function(){if(bo["FeatureStyle"+h1.config.style]){h2()}else{h1.loadMapStyleFiles(function(){h2()})}})}}this.lastLevel=this.zoomLevel||T;this.zoomLevel=T;var hZ=new bb("onload");hZ.point=h3;hZ.zoom=T;this.centerPoint=this.restrictCenter(new hz(h3.lng,h3.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 h0=new c5(i,"baidu",this.mapType);var hY=new cR({mapType:this.mapType,copyright:h0,customLayer:false,baseLayer:true,tileTypeName:"web"});hY._isInnerLayer=true;this.addTileLayer(hY);if(this.mapType===BMAP_SATELLITE_MAP&&this._isHybridShow===true){this._addHybirdMap()}}this.dispatchEvent(hZ);this.loaded=true;h4=h4||{};h4.callback&&h4.callback()},_setPlatformPosition:function(h4,h3,h7){h7=h7||{};if(h4===0&&h3===0&&!h7.point){return}if(isNaN(h7.initMapOffsetX)){h7.initMapOffsetX=this.offsetX}if(isNaN(h7.initMapOffsetY)){h7.initMapOffsetY=this.offsetY}var h5=h4+h7.initMapOffsetX;var h2=h3+h7.initMapOffsetY;if(h7.point){var i=this.restrictCenter(h7.point);if(!i.equals(this.centerPoint)){this.centerPoint=i.clone();this.fire(new bb("oncenter_changed"))}}else{var hY=this.offsetX-h5;var e=this.offsetY-h2;var T=this.getZoomUnits();var h1=this.centerPoint.lng;var h0=this.centerPoint.lat;var hZ=new hz(h1,h0);this.centerPoint=this.restrictCenter(new hz(hZ.lng+hY*T,hZ.lat-e*T),T);this.fire(new bb("oncenter_changed"));if(this.zoomLevel<10){h5=this.offsetX-(this.centerPoint.lng-hZ.lng)/T;h2=this.offsetY+(this.centerPoint.lat-hZ.lat)/T}}this.offsetX=h5;this.offsetY=h2;var h6=this.platform.style;h6.left=h5+"px";h6.top=h2+"px";this.maskLayer.style.left=-h5+"px";this.maskLayer.style.top=-h2+"px";if(h7.dispatchEvent!==false){this.dispatchEvent(new bb("onmoving"))}},zoomTo:function(e,h1,h5){h5=h5||{};h5.zoomCenter=h1;if(h5.noAnimation!==true){this.deepZoomTo(e,h5);return}if(typeof e!=="number"){return}var hZ=b6[this.mapType];if(!hZ){return}var T=e;e=this._getProperZoom(e).zoom;if(e===this.zoomLevel){var h2=new bb("onzoomexceeded");h2.targetZoom=T;this.dispatchEvent(h2);h5.callback&&h5.callback();return}this.lastLevel=this.zoomLevel;if(h1){this.temp._cPoint=h1;this.temp._cPixel=this.pointToPixelIn(h1)}else{if(this.getInfoWindow()){var h4=this.getInfoWindow().getPoint();this.temp._cPixel=this.pointToPixelIn(h4);this.temp._cPoint=h4}}if(this.config.zoomCenter){h1=this.config.zoomCenter;this.temp._cPoint=h1;this.temp._cPixel=this.pointToPixelIn(h1)}if(h1||this.temp.infoWin&&this.temp.infoWin.isOpen()){var i=this.temp._cPoint;var h3=this.temp._cPixel;var hY=this.getZoomUnits(e);var h0=new hz(i.lng+hY*(this.width/2-h3.x),i.lat-hY*(this.height/2-h3.y));this.centerPoint=this.restrictCenter(h0,hY,e);if(this.centerPoint.zoom){e=this.centerPoint.zoom}}if(h5.fireEvent!==false){this.dispatchEvent(new bb("onzoomstart"))}if(e!==this.zoomLevel){this.zoomLevel=e;this.dispatchEvent(new bb("onzooming"));this.dispatchEvent(new bb("onzoomstartcode"))}if(h5.fireEvent!==false){this.dispatchEvent(new bb("onzoomend"))}if(h5.callback){h5.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(h2,hY){hY=hY||{};var h0=h2-this.zoomLevel;var hZ=this._getProperZoom(h2);if(hZ.exceeded){var e=new bb("onzoomexceeded");e.targetZoom=h2;this.dispatchEvent(e);return}var i;if(hY.zoomCenter){i=this.pointToPixelIn(hY.zoomCenter)}else{if(this.getInfoWindow()){i=this.pointToPixelIn(this.getInfoWindow().getPoint(),{zoom:this.lastLevel})}else{var i=new em(this.width/2,this.height/2)}}this.lastLevel=this.zoomLevel;var h1=this.deepZoom||new bE(this);var T=h0>0?1:-1;h1.zoomMap(i,h0,T,null,hY)},flyToIn:function(h3,e){if(e===this.zoomLevel){this.panToIn(h3);return}var h0=this._getProperZoom(e);if(h0.exceeded){var h4=new bb("onzoomexceeded");h4.targetZoom=e;this.dispatchEvent(h4);return}var h2=e-this.zoomLevel;var T=new em(this.width/2,this.height/2);var i=this.pointToPixelIn(h3);var h1=new ec(i.x-T.x,i.y-T.y);this.lastLevel=this.zoomLevel;if(Math.abs(h2)>=4||Math.abs(h1.width)>this.width||Math.abs(h1.height)>this.height){this.centerAndZoomIn(h3,e);return}var hZ=this.deepZoom||new bE(this);var hY=h2>0?1:-1;hZ.zoomMap(i,h2,hY,h1)},panToIn:function(i,T){T=T||{};if(!i||i.equals(this.centerPoint)){T.callback&&T.callback();return}var hY=this.pointToPixelIn(i);var e=Math.round(this.width/2);var hZ=Math.round(this.height/2);if(Math.abs(e-hY.x)>this.width||Math.abs(hZ-hY.y)>this.height||T.noAnimation===true){this._panToIn(e-hY.x,hZ-hY.y,i);T.callback&&T.callback()}else{this._panBy(e-hY.x,hZ-hY.y,T)}},_panToIn:function(i,e,hY){var T=this.temp;if(T.operating===true){return}if(T.dragAni){T.dragAni.stop();T.dragAni=null;this.dispatchEvent(new bb("onmoveend"))}this.dispatchEvent(new bb("onmovestart"));this._setPlatformPosition(i,e,{point:hY});this.dispatchEvent(new bb("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,hZ){if(this.temp.operating===true){return}hZ=hZ||{};this.dispatchEvent(new bb("onmovestart"));var hY=this;var T=hY.temp;T.pl=hY.offsetX;T.pt=hY.offsetY;if(T.tlPan){T.tlPan.cancel()}if(T.dragAni){T.dragAni.stop();T.dragAni=null;this.dispatchEvent(new bb("onmoveend"))}T.tlPan=new o({fps:hZ.fps||hY.config.fps,duration:hZ.duration||hY.config.actionDuration,transition:hZ.transition||cn.easeInOutQuad,render:function(h0){this.terminative=hY.temp.operating;if(hY.temp.operating){return}hY._setPlatformPosition(Math.ceil(i*h0),Math.ceil(e*h0),{initMapOffsetX:T.pl,initMapOffsetY:T.pt})},finish:function(h0){hY.dispatchEvent(new bb("onmoveend"));hY.temp.tlPan=false;if(hY.temp.stopArrow===true){hY.temp.stopArrow=false;if(hY.temp.arrow!==0){hY._arrow()}}hZ.callback&&hZ.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(h2,hZ,h3){this.isRestrict=false;hZ=hZ||this.getZoomUnits();h3=h3||this.zoomLevel;var T=this.pixelToPointIn(new em(0,0),{center:h2,zoom:h3});var h0=this.pixelToPointIn(new em(0,this.height),{center:h2,zoom:h3});if(this.zoomLevel<5){if(T.lat>c8.MAX_LAT&&h0.latc8.MAX_LAT){this.isRestrict=true;h2.lat=c8.MAX_LAT-this.height/2*hZ}else{if(h0.lat=c8.HIGH_RES_MIN_RATIO?2:1,enableEarth:a8.ifEnableEarth(),defaultMaxBounds:new dT(new hz(-21364736,-10616832),new hz(23855104,15859712)),showControls:false,showRealSunlight:true,showMilkyway:true,earthBackground:null,showStreetLayer:true,minZoom:null,maxZoom:null,style:"default",backgroundColor:null,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(b6[this.mapType][this._renderType]){T=b6[this.mapType][this._renderType].minZoom}else{T=b6[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){hY=true;T=e}if(this._renderType!=="webgl"){T=Math.round(T)}return{zoom:T,exceeded:hY}},getContainer:function(){return this.container},getZoomUnits:function(T){if(this.mapType===BMAP_EARTH_MAP){return Math.pow(2,18-this._earth.getImageZoom())}var e=b6[this.mapType];if(typeof e!=="object"){return null}var i=T||this.zoomLevel;return Math.pow(2,(e.zoomLevelBase-i))},pointToPixelIn:function(h9,ib){if(!h9){return}ib=ib||{};if(this.mapType===BMAP_EARTH_MAP){var h0;if(!h9._llPt){h0=eq.convertMC2LL(h9);h9._llPt=h0}h0=h9._llPt;var h5=null;var hZ=null;if(typeof ib.zoom==="number"){var h8=this._earth;var ia=h8._getEarthZoomByImgZoom(ib.zoom);if(ia<=3){h5=h8._generateTmpPMatrix(ia)}hZ=h8._generateTmpMVMatrix(h8.getCenter(),ia)}var h1=this._earth.fromLatLngToPixel(h0,{useRound:false,isCalcOnBack:true,matrixInfo:{modelViewMatrix:hZ,projectionMatrix:h5}});return h1}if((this._heading%360===0&&this._tilt===0)||!this._webglMapCamera){var h7=this.getZoomUnits(ib.zoom);var h3=ib.center||this.centerPoint;var hY=this.width/2;var h2=this.height/2;var h6;if(h9.lng*h3.lng<0){var i=Math.abs(h9.lng-h3.lng);var e=(d7._mc180X*2-i)/h7;if(h3.lng<0){h6=hY-e}else{h6=hY+e}}else{h6=(h9.lng-h3.lng)/h7+hY}var h4=(h3.lat-h9.lat)/h7+h2;if(ib.useRound!==false){h6=Math.round(h6);h4=Math.round(h4)}return new em(h6,h4)}var T=this._webglMapCamera.fromMCToScreenPixel(h9.lng,h9.lat,ib);if(ib.useRound===false){return T}T.x=Math.round(T.x);T.y=Math.round(T.y);return T},pixelToPointIn:function(e,h5){if(!e){return}h5=h5||{};if(this.mapType===BMAP_EARTH_MAP){if(typeof h5.zoom==="number"){var h3=this._earth;var h0=null;var T=null;var h4=h3._getEarthZoomByImgZoom(h5.zoom);if(h4<=3){h0=h3._generateTmpPMatrix(h4)}T=h3._generateTmpMVMatrix(h3.getCenter(),h4)}var i=this._earth.fromPixelToLatLng(e,{matrixInfo:{modelViewMatrix:T,projectionMatrix:h0}});if(i===null){return null}return eq.convertLL2MC(i)}if((this._heading%360!==0||this._tilt>0)&&this._webglMapCamera){return this._webglMapCamera.fromScreenPixelToMC(e.x,e.y,h5)}var h1=h5.center||this.centerPoint;var h2=this.getZoomUnits(h5.zoom);var hZ=h1.lng+h2*(e.x-this.width/2);var hY=h1.lat-h2*(e.y-this.height/2);return new hz(hZ,hY)},pointToOverlayPixelIn:function(e,hY){hY=hY||{};var T=this.pointToPixelIn(e,{zoom:hY.zoom,center:hY.center,forLabel:true,frustumTest:true,useRound:hY.useRound});if(!T){return}if(hY.fixPosition&&this.mapType!=="B_EARTH_MAP"){var hZ=this.getSize();var i=this.worldSize(hY.zoom);if(T.x>hZ.width){while(T.x>hZ.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 eq()},lnglatToMercator:function(e,hY){var i=new hz(e,hY);var T=eq.convertLL2MC(i);return[T.lng,T.lat]},mercatorToLnglat:function(i,e){if(isNaN(i)||isNaN(e)){return[]}i=parseFloat(i);e=parseFloat(e);var hY=new hz(i,e);var T=eq.convertMC2LL(hY);return[T.lng,T.lat]},getBoundsIn:function(){var ib=arguments[0];if(this.mapType===BMAP_EARTH_MAP&&this._earth){var h5=this._earth.getCustomBounds();if(!h5){return this.config.defaultMaxBounds}var h4=h5.getSouthWest();var e=h5.getNorthEast();if(h4.lng>e.lng){e.lng=180}var iv=eq.convertLL2MC(h4);var ij=eq.convertLL2MC(e);var h8=this.config.defaultMaxBounds;var ii=Math.max(iv.lng,h8.sw.lng);var ih=Math.max(iv.lat,h8.sw.lat);var ia=Math.min(ij.lng,h8.ne.lng);var h9=Math.min(ij.lat,h8.ne.lat);var id=new dT(new hz(ii,ih),new hz(ia,h9));id.pointBottomLeft=new hz(ii,ih);id.pointBottomRight=new hz(ia,ih);id.pointTopLeft=new hz(ii,h9);id.pointTopRight=new hz(ia,h9);id.setMinMax();id.makeNormalizedPoint(this._earth.getHeading());return id}ib=ib||{};var hZ=ib.margins||[0,0,0,0];var ip=this.pixelToPointIn({x:hZ[3],y:this.height-hZ[2]},ib);var iu=this.pixelToPointIn({x:this.width-hZ[1],y:hZ[0]},ib);var ig=typeof ib.heading==="number"?ib.heading:(this._heading%360);var T=typeof ib.tilt==="number"?ib.tilt:this._tilt;var h7=this._webglMapCamera;if((ig===0&&T===0)||!h7){this._bounds.setSouthWest(ip);this._bounds.setNorthEast(iu);this._bounds.pointBottomLeft=ip;this._bounds.pointBottomRight=new hz(iu.lng,ip.lat);this._bounds.pointTopRight=iu;this._bounds.pointTopLeft=new hz(ip.lng,iu.lat);this._bounds.setMinMax();this._bounds.makeNormalizedPoint(ig);return this._bounds}var ie=this.pixelToPointIn({x:hZ[3],y:hZ[0]},ib);var hY=h7.getPosition();var iw=Math.sqrt(Math.pow(ie.lng-hY[0],2)+Math.pow(ie.lat-hY[1],2));var iq=this.getZoomUnits();var iy=iw/iq;var im=h7._frustumSideLen;var h3=h7._fovy;if(iy>im||(90-T)

h1){h1=il[ir].lng}if(il[ir].lath6){h6=il[ir].lat}}this._bounds.setSouthWest(new hz(it,iz));this._bounds.setNorthEast(new hz(h1,h6));this._bounds.pointTopLeft=ie;this._bounds.pointTopRight=iu;this._bounds.pointBottomRight=ic;this._bounds.pointBottomLeft=ip;this._bounds.makeNormalizedPoint(ig);this._bounds.setMinMax();return this._bounds},isLoaded:function(){return !!this.loaded},_getBestLevel:function(i,h7){var h0=0;if(this._renderType==="webgl"&&!gb()){h0=100}var h1=h7.margins||[10,10,10,10];var hY=h7.zoomFactor||0;var h2=h1[1]+h1[3];var hZ=h1[0]+h1[2];var e=this.getMinZoom();var h6=this.getMaxZoom();var h5=i.toSpan();var h4=h5.width/(this.width-h2-h0);var h3=h5.height/(this.height-hZ-h0);var T=18-eH(Math.max(h4,h3));if(Th6){T=h6}T+=hY;if(this._renderType!=="webgl"){T=Math.floor(T)}return T},getViewportIn:function(h7,hZ){if(this.mapType===BMAP_EARTH_MAP){h7=h7||[];var h1=[];for(var h8=0;h8=0;h6--){h2.extend(h0[h6])}if(h2.isEmpty()){return h3}}var ic=h2.getCenter();var e=this._getBestLevel(h2,hZ);if(hZ.margins){var T=hZ.margins;var ib=(T[1]-T[3])/2;var h4=(T[0]-T[2])/2;var ia=this.getZoomUnits(e);ic.lng=ic.lng+ia*ib;ic.lat=ic.lat+ia*h4}return{center:ic,zoom:e}},setViewportIn:function(hY,hZ){if(this.mapType===BMAP_EARTH_MAP){var h3;if(hY&&hY.center){var T=eq.convertMC2LL(hY.center);var h1=this._earth._getEarthZoomByImgZoom(hY.zoom,T);h3={center:T,zoom:h1}}else{h3=[];for(var h0=0;h0c8.MAX_DRAG_TILT_L2){i.setTilt(c8.MAX_DRAG_TILT_L2,{callback:function(){i._changeEarthMapType(e)}})}else{i._changeEarthMapType(e)}},_changeEarthMapType:function(T){var hY=this;var h1=hY.tileMgr.tileLayers;if(this._mapTypeChangAni){this._mapTypeChangAni.stop()}var h0;if(this._earth){h0=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(!hY._earth){return}h0.style.opacity=e},finish:function(){for(var e=h1.length-1,h2=e;h2>=0;h2--){var h4=h1[h2].tilesDiv;if(h4){h4.style.visibility="hidden"}if(h1[h2]._isInnerLayer&&hY._renderType!=="webgl"){hY.removeTileLayer(h1[h2])}}hY._mapTypeChangAni=null;hY._mapTypeChanging=false;function h3(){var h8=hY.getZoom()-2;var h9=hY.getCenterIn();var h6=eq.convertMC2LL(h9);hY._earth=new bo.Earth(hY,{center:h6,zoom:h8,showRealSunlight:hY.config.showRealSunlight,showMilkyway:hY.config.showMilkyway,earthBackground:hY.config.earthBackground});hY._proxyEarthEvents();var h5=hY.mapType;hY.mapType=T;var h7=new bb("onmaptypechange");h7.zoomLevel=this.zoomLevel;h7.mapType=T;h7.exMapType=h5;hY.dispatchEvent(h7);hY._setMapTypeStatus(T);C.extend(hY,bo.EarthView.prototype);if(!hY._navigationCtrl&&hY.config.showControls){hY._navigationCtrl=new eZ(hY)}}if(!hY._earth){if(bo["FeatureStyle"+hY.config.style]){h3()}else{hY.loadMapStyleFiles(function(){h3()})}}if(parseInt(hY.maskLayer.style.opacity,10)===1){setTimeout(function(){hY.maskLayer.style.zIndex=9;hY.maskLayer.style.opacity=0},1000)}}});if(!this._earth){return}var i=this.mapType;this.mapType=T;var hZ=new bb("onmaptypechange");hZ.zoomLevel=this.zoomLevel;hZ.mapType=T;hZ.exMapType=i;this.dispatchEvent(hZ);hY._setMapTypeStatus(T);C.extend(hY,bo.EarthView.prototype)},getMapStyleId:function(){if(typeof this.config.style==="string"){return this.config.style}return this.config.mapStyleId||"custom"},_setMapTypeStatus:function(T){var h2=arguments[1];if(T===BMAP_EARTH_MAP){var h0=this._earth.getEarthCanvas();if(h0){h0.style.display=""}var h3={noAnimation:true};this._earth.setCenter(eq.convertMC2LL(this.centerPoint),h3);this._earth.setImageZoom(this.zoomLevel,h3);this._earth.setTilt(this.getTilt(),h3);this._earth.setHeading(this.getHeading(),h3)}else{if(this.preMapType===BMAP_EARTH_MAP&&this._earth){var h1=this._earth;var hY=h1.getMapZoom();var hZ=h1._imageRawZoom||hY;var i=hZ-hY;var e=h1.getCenter();if(this._renderType==="webgl"){this._tilt=h1.getTilt();if(this.zoomLevel>7){this._heading=h1.getHeading();h2&&h2(e,hY);return}if(h1.getHeading()!==0){h1.setTilt(this.getTilt());h1.setHeading(this.getHeading(),{callback:function(){h2&&h2(e,hY)}})}else{h2&&h2(e,hY)}return}if(i<0.1&&h1.getTilt()===0&&h1.getHeading()===0){h2&&h2(e,hY);return}h1.setTilt(0);h1.setHeading(0);h1.setZoom(h1.getZoom()-i,{callback:function(){h2&&h2(e,hY)}})}}},_proxyEarthEvents:function(){var hZ=this;var h0=this._earth;h0.on("tilesload",function(i){hZ.fire(i)});h0.on("centerandzoom",function(i){hZ.dispatchEvent(new bb("onmoveend"));hZ.dispatchEvent(new bb("onzoomend"))});function hY(i){hZ.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(hY){hY=hY||this._initDate;var T=bz(hY);var e=eq.convertLL2MC(new hz(T[0],T[1]));var h6=e.latLng;var h1=bo.Projection.convertMC2LL(this.centerPoint);var h3=hY.getUTCHours();var h5=h3+24*h1.lng/360;var h4=h5-12;var h2=h4*60*0.25;var h0=Math.asin(Math.sin(dK(h1.lat))*Math.sin(dK(h6.lat))+Math.cos(dK(h1.lat))*Math.cos(dK(h6.lat))*Math.cos(dK(h2)));var hZ=Math.asin(Math.sin(dK(h2))*Math.cos(dK(h6.lat))/Math.cos(h0));var i="north";if(h1.lat=19){return c8.MAX_DRAG_TILT}else{if(e<=18){if(e=this._enableTiltZoom-2){return(1-(this._enableTiltZoom-e)/2)*c8.MAX_DRAG_TILT_L2}return 0}return c8.MAX_DRAG_TILT_L2}else{return(c8.MAX_DRAG_TILT-c8.MAX_DRAG_TILT_L2)*(e-18)+c8.MAX_DRAG_TILT_L2}}},worldSize:function(i){var e=i||this.zoomLevel;return c8.WORLD_SIZE_MC/this.getZoomUnits(e)},setTrafficOn:function(e){if(e&&Number(e)>1){ce.setZIndex(Number(e))}this.addTileLayer(ce)},setTrafficOff:function(){this.removeTileLayer(ce)},showOverlayContainer:function(){this.setDisplayOptions({overlay:true})},hideOverlayContainer:function(){this.setDisplayOptions({overlay:false})},addLabelsToMapTile:function(T){for(var e=0;e"-1"){ht.load(h1)}else{bo.customStyleInfo.xhr=gG.post(h1,h6,styleCbk)}})}else{if(h1.indexOf("jsonp")>"-1"){ht.load(h1)}else{bo.customStyleInfo.xhr=gG.post(h1,h6,styleCbk)}}})}},getFeatureStyleTags:function(){var e=[];var hZ=Object.keys(bo);for(var hY=0;hY-1&&bo[T]){e.push(T)}}return e},setCopyrightOffset:function(hY,i){var T=new bb("oncopyrightoffsetchange",{logo:hY,cpy:i});this.dispatchEvent(T)},_setTextRenderType:function(e){if(e){this.config.textRenderType=e;return}if(this.config.textRenderType!==null){return}if(gb()){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 bb("ondestroy"))},centerAndZoom:function(e,h0,T){if(Object.prototype.toString.call(h0)!=="[object Undefined]"){h0=parseInt(h0,10)}if(typeof e==="string"){var hY=this;var hZ=new V();hZ.getPoint(e,function(h1){e=h1;var h2=eq.convertLL2MC(e);hY.centerAndZoomIn(h2,h0,T)})}else{var i=eq.convertLL2MC(e);this.centerAndZoomIn(i,h0,T)}},pointToPixel:function(e,T){var i=eq.convertLL2MC(e);var hY={};C.extend(hY,T);if(hY&&hY.center){hY.center=eq.convertLL2MC(hY.center)}return this.pointToPixelIn(i,hY)},pixelToPoint:function(T,i){var hY={};C.extend(hY,i);if(hY&&hY.center){hY.center=eq.convertLL2MC(hY.center)}var e=this.pixelToPointIn(T,hY);return eq.convertMC2LL(e)},pointToOverlayPixel:function(e,T){var i=eq.convertLL2MC(e);var hY={};C.extend(hY,T);if(hY&&hY.center){hY.center=eq.convertLL2MC(hY.center)}return this.pointToOverlayPixelIn(i,hY)},overlayPixelToPoint:function(T,i){var hY={};C.extend(hY,i);if(hY&&hY.center){hY.center=eq.convertLL2MC(hY.center)}var e=this.overlayPixelToPointIn(T,hY);return eq.convertMC2LL(e)},setViewport:function(T,hY){var e;if(T&&T.center){e={};C.extend(e,T);e.center=eq.convertLL2MC(e.center)}else{e=[];for(var hZ=0;hZ2){h7.push(h0.join("|"))}}return h7.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 hY=e.stylers["level"];var T={};C.extend(T,i);if(hY===undefined){return T}else{T[parseInt(hY,10)]=true;return T}},onStyleDataBack:function(hY,e,i,T,h0){if(hY.status!==0){return}if(hY.data.style.length===3){if(!bo.customStyleInfo.baseFs){bo.customStyleInfo.baseFs=hY.data.style}bo.StyleBody=hY.data.style[2]}else{bo.StyleBody=hY.data.style}var hZ=bo.customStyleInfo.baseFs;bo["FeatureStyle"+i]=hZ;this.updateFrontFeatureStyle()},updateFrontFeatureStyle:function(){if(bo.customStyleInfo.zoomFrontStyle.main["bmapRoadarrowVisibility"]){for(var e=this.map.getMinZoom();e<=this.map.getMaxZoom();e++){if(!bo.customStyleInfo.zoomFrontStyle[e]["bmapRoadarrowVisibility"]){bo.customStyleInfo.zoomFrontStyle[e]["bmapRoadarrowVisibility"]=bo.customStyleInfo.zoomFrontStyle.main["bmapRoadarrowVisibility"]}}}}};var bJ={map:null,labelCache:{},calcDrawMc:function(T,i,e){var hY=[];switch(i){case"fill":hY=this.calcFill(T,e);break;case"line":break;case"building3d":hY=this.calcBuilding3d(T,e);break}return hY},calcFill:function(hZ,T){var h0=[];for(var hY=0;hY0){h2=hZ.verticesLength[T-1]}end=hZ.verticesLength[T];var h0=[];var hY="";if(hZ.vertex){h0=hZ.vertex;hY="building3d"}else{if(hZ.data[0]){h0=hZ.data[0];hY=hZ.type}else{continue}}var h1=this.calcDrawMc(h0.slice(h2,end),hY,e);this.map.addAreaSpot(h1,{userData:{styleId:hZ.styleIds[T],type:"mapstyle"}})}},addLabelIntoAreaSpots:function(e){if(f.environment!=="customEditor"){return}for(var hZ=0;hZh1){return h1}while(h2T){h2=hZ}else{h1=hZ}hZ=(h1-h2)*0.5+h2}return hZ};bR.prototype.solve=function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))};var cn={};function o(T){var e={duration:1000,fps:30,delay:0,transition:cn.linear,dropLastAnimation:false};if(T){for(var hY in T){e[hY]=T[hY]}}if(T.beginTime){this._beginTime=T.beginTime}this._callbacks=[];this._options=e;if(e.delay){var hZ=this;setTimeout(function(){hZ._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(hY){var h1=this;hY=hY||new Date().getTime();hY=hY-this._pauseTime;if(!this._beginTime){this._beginTime=hY}if(!this._endTime&&typeof this._options.duration==="number"){this._endTime=this._beginTime+this._options.duration}if(h1._endTime!==null&&hY>=h1._endTime){if(h1._options.dropLastAnimation===false){h1._options.render(h1._options.transition(1),1,hY)}if(typeof h1._options.finish==="function"){h1._options.finish(hY,this)}for(var h0=0,e=h1._callbacks.length;h0=hZ.percentage&&hY0){i.unselectable="on";i.selectstart=function(){return false};i.onmousedown=function(T){T.preventDefault();return false}}else{var e=dd(i);e.MozUserSelect="none";e.WebkitUserSelect="none";i.addEventListener("mousedown",function(T){T.preventDefault()},false)}}function hk(e){return e&&e.parentNode&&e.parentNode.nodeType!==11}function dI(i,e){i.insertAdjacentHTML("beforeEnd",e);return i.lastChild}function hI(T,i){var hY=document.createElement("div");hY.innerHTML=i;var e=hY.childNodes[0];return T.parentNode.insertBefore(e,T)}function h(i){i=i||window.event;i.stopPropagation?i.stopPropagation():i.cancelBubble=true}function bU(i){i=i||window.event;i.preventDefault?i.preventDefault():i.returnValue=false;return false}function db(i){h(i);return bU(i)}function fP(){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 fw(hZ){if(!hZ){return}hZ.onload=hZ.onerror=null;var T=hZ.attributes,hY,e,h0;if(T){e=T.length;for(hY=0;hY>4);h4=((h3&15)<<4)|(h1>>2);h2=((h1&3)<<6)|h0;T=T+String.fromCharCode(h6);if(h1!==64){T=T+String.fromCharCode(h4)}if(h0!==64){T=T+String.fromCharCode(h2)}h6=h4=h2="";h5=h3=h1=h0=""}while(hY-1||e.indexOf("iPad")>-1){return true}return false}function eG(){var e=navigator.userAgent;if(e.indexOf("Android")>-1){return true}return false}function dK(e){return e*Math.PI/180}function de(e){return e/Math.PI*180}function dO(e,hZ){var hY=Math.pow(10,hZ);if(typeof e==="number"){return Math.round(e*hY)/hY}for(var T=0;Te){T=e}}return T}function f5(e,i){while(e<0){e+=i}return e%i}function eb(i,e){return(i>=0&&e>=0)||(i<0&&e<0)}function a5(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 eP(hY,T){for(var e=0;ehY||T.lati){return false}return true}function gD(h2,h1,h0,hY){var hZ=gB(h0,hY,h2);var T=gB(h0,hY,h1);var i=gB(h2,h1,h0);var e=gB(h2,h1,hY);if(hZ*T<0&&i*e<0){return true}else{if(hZ===0&&ch(h0,hY,h2)){return true}else{if(T===0&&ch(h0,hY,h1)){return true}else{if(i===0&&ch(h2,h1,h0)){return true}else{if(e===0&&ch(h2,h1,hY)){return true}else{return false}}}}}}function hG(T,i){var e=i.parentNode;if(e.lastChild===i){e.appendChild(T)}else{e.insertBefore(T,i.nextSibling)}}function hM(h4,h5){if(h5===0){return h4}var h3=0;var h1=0;if(!h4){throw"异常"}if(h4.length===0){return[]}for(var hZ=1,T=h4.length-1;hZh3){h1=hZ;h3=h2}}var e=[];if(h3>=h5){var h7=h4.slice(0,h1);var h6=h4.slice(h1,h4.length);var h0=hM(h7,h5);var hY=hM(h6,h5);for(var hZ=0,T=h0.length;hZ=0){hY=Math.floor(T/65536)*65536;i=hY;e=T-hY}else{hY=Math.floor(-T/65536)*65536;i=-hY;e=T+hY}return[i,e]}function G(e){if(e.lng>=0&&e.lat>=0){return new hz(e.lng-10000000,e.lat-6000000)}if(e.lng>=0&&e.lat<0){return new hz(e.lng-10000000,e.lat+6000000)}if(e.lng<0&&e.lat>=0){return new hz(e.lng+10000000,e.lat-6000000)}if(e.lng<0&&e.lat<0){return new hz(e.lng+10000000,e.lat+6000000)}}var fH=null;if(window.performance&&window.performance.now){fH=function(){return performance.now()}}else{if(Date.now){fH=function(){return Date.now()}}else{fH=function(){return(new Date).getTime()}}}function bL(hY,e,i){var T="mouseWheel";if(C.Platform.macintosh){if(!isNaN(hY)&&(hY<10||hY!==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&&hY===12){T="mouseWheel"}return T}function dg(h7,h2){var h6=h7[0];var h5=h7[1];var hY=false;for(var h1=0,h0=h2.length-2;h1h5)!==(T>h5))&&(h6<(h3-h4)*(h5-hZ)/(T-hZ)+h4);if(e){hY=!hY}h0=h1}return hY}function cE(T,e,i,hY){hY=hY||0.4;if(T>i){T=Math.pow(T-i+1,hY)+i-1}else{if(Ti-i5?i5:i6},e.offset=function(i,i5){return i4(i=new Date(+i),null==i5?1:Math.floor(i5)),i},e.range=function(i6,i,i5){var i7=[];if(i6=e.ceil(i6),i5=null==i5?1:Math.floor(i5),!(i>i6&&i5>0)){return i7}do{i7.push(new Date(+i6))}while(i4(i6,i5),i3(i6),i>i6);return i7},e.filter=function(i){return iX(function(i5){for(;i3(i5),!i(i5);){i5.setTime(i5-1)}},function(i5,i6){for(;--i6>=0;){for(;i4(i5,1),!i(i5);){}}})},T&&(e.count=function(i,i5){return iH.setTime(+i),iL.setTime(+i5),i3(iH),i3(iL),Math.floor(T(iH,iL))},e.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?e.filter(it?function(i5){return it(i5)%i===0}:function(i5){return e.count(0,i5)%i===0}):e:null}),e}function iM(e){return iX(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())*iG)/iU})}function iE(e){return iX(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)/iU})}var iH=new Date,iL=new Date,iS=iX(function(){},function(i,T){i.setTime(+i+T)},function(i,T){return T-i});iS.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?iX(function(i){i.setTime(Math.floor(i/e)*e)},function(i,T){i.setTime(+i+T*e)},function(i,T){return(T-i)/e}):iS:null};var i1=iS.range,iZ=1000,iG=60000,iW=3600000,iO=86400000,iU=604800000,h4=iX(function(e){e.setTime(Math.floor(e/iZ)*iZ)},function(i,T){i.setTime(+i+T*iZ)},function(i,T){return(T-i)/iZ},function(e){return e.getUTCSeconds()}),iY=h4.range,iN=iX(function(e){e.setTime(Math.floor(e/iG)*iG)},function(i,T){i.setTime(+i+T*iG)},function(i,T){return(T-i)/iG},function(e){return e.getMinutes()}),ic=iN.range,iA=iX(function(i){var T=i.getTimezoneOffset()*iG%iW;0>T&&(T+=iW),i.setTime(Math.floor((+i-T)/iW)*iW+T)},function(i,T){i.setTime(+i+T*iW)},function(i,T){return(T-i)/iW},function(e){return e.getHours()}),iT=iA.range,io=iX(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())*iG)/iO},function(e){return e.getDate()-1}),h3=io.range,ik=iM(0),im=iM(1),hZ=iM(2),ii=iM(3),h6=iM(4),iD=iM(5),iK=iM(6),h1=ik.range,iC=im.range,ia=hZ.range,iz=ii.range,iP=h6.range,iB=iD.range,i0=iK.range,iR=iX(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()}),i2=iR.range,ih=iX(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()});ih.every=function(e){return isFinite(e=Math.floor(e))&&e>0?iX(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 h9=ih.range,iI=iX(function(e){e.setUTCSeconds(0,0)},function(i,T){i.setTime(+i+T*iG)},function(i,T){return(T-i)/iG},function(e){return e.getUTCMinutes()}),iq=iI.range,ip=iX(function(e){e.setUTCMinutes(0,0,0)},function(i,T){i.setTime(+i+T*iW)},function(i,T){return(T-i)/iW},function(e){return e.getUTCHours()}),il=ip.range,ij=iX(function(e){e.setUTCHours(0,0,0,0)},function(i,T){i.setUTCDate(i.getUTCDate()+T)},function(i,T){return(T-i)/iO},function(e){return e.getUTCDate()-1}),ig=ij.range,ie=iE(0),id=iE(1),ib=iE(2),h8=iE(3),h7=iE(4),h2=iE(5),h0=iE(6),hY=ie.range,iy=id.range,iV=ib.range,iJ=h8.range,iQ=h7.range,ix=h2.range,iw=h0.range,iv=iX(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()}),iu=iv.range,h5=iX(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()});h5.every=function(e){return isFinite(e=Math.floor(e))&&e>0?iX(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 ir=h5.range;iF.timeInterval=iX,iF.timeMillisecond=iS,iF.timeMilliseconds=i1,iF.utcMillisecond=iS,iF.utcMilliseconds=i1,iF.timeSecond=h4,iF.timeSeconds=iY,iF.utcSecond=h4,iF.utcSeconds=iY,iF.timeMinute=iN,iF.timeMinutes=ic,iF.timeHour=iA,iF.timeHours=iT,iF.timeDay=io,iF.timeDays=h3,iF.timeWeek=ik,iF.timeWeeks=h1,iF.timeSunday=ik,iF.timeSundays=h1,iF.timeMonday=im,iF.timeMondays=iC,iF.timeTuesday=hZ,iF.timeTuesdays=ia,iF.timeWednesday=ii,iF.timeWednesdays=iz,iF.timeThursday=h6,iF.timeThursdays=iP,iF.timeFriday=iD,iF.timeFridays=iB,iF.timeSaturday=iK,iF.timeSaturdays=i0,iF.timeMonth=iR,iF.timeMonths=i2,iF.timeYear=ih,iF.timeYears=h9,iF.utcMinute=iI,iF.utcMinutes=iq,iF.utcHour=ip,iF.utcHours=il,iF.utcDay=ij,iF.utcDays=ig,iF.utcWeek=ie,iF.utcWeeks=hY,iF.utcSunday=ie,iF.utcSundays=hY,iF.utcMonday=id,iF.utcMondays=iy,iF.utcTuesday=ib,iF.utcTuesdays=iV,iF.utcWednesday=h8,iF.utcWednesdays=iJ,iF.utcThursday=h7,iF.utcThursdays=iQ,iF.utcFriday=h2,iF.utcFridays=ix,iF.utcSaturday=h0,iF.utcSaturdays=iw,iF.utcMonth=iv,iF.utcMonths=iu,iF.utcYear=h5,iF.utcYears=ir,Object.defineProperty(iF,"__esModule",{value:!0})});function gt(e){this._elemType=e;this._objCollection={}}gt.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=bo.getGUID("obj_pool_");this._objCollection[e]=i;return i};gt.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}};gt.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 gG={get:function(i,hZ,e,T){var hY=new XMLHttpRequest();hY.open("GET",i,true);hY.timeout=10000;hY.ontimeout=function(){T&&T()};hY.onreadystatechange=function(h0){if(this.readyState===4){if(this.status===200){hZ&&hZ(hY.responseText)}else{e&&e()}}};hY.send()},post:function(i,h0,hZ,e,T){var hY=new XMLHttpRequest();hY.open("POST",i,true);hY.setRequestHeader("Content-type","application/x-www-form-urlencoded");hY.timeout=10000;hY.ontimeout=function(){T&&T()};hY.onreadystatechange=function(h1){if(this.readyState===4){if(this.status===200){hZ&&hZ(hY.responseText,h0)}else{e&&e()}}};hY.send(h0);return hY}};var ht=(function(e){function i(h0,T,hZ){var hY=S("script",{src:h0,type:"text/javascript",charset:"utf-8"});if(hY.addEventListener){hY.addEventListener("load",function(h2){var h1=h2.target;h1.parentNode.removeChild(h1);T&&T()},false);hY.addEventListener("error",function(h1){hZ&&hZ(null)},false)}else{if(hY.attachEvent){hY.attachEvent("onreadystatechange",function(h2){var h1=window.event.srcElement;if(h1&&(h1.readyState==="loaded"||h1.readyState==="complete")){h1.parentNode.removeChild(h1)}T&&T()})}}e.getElementsByTagName("head")[0].appendChild(hY)}return{load:function(h1,T,hY){if(typeof h1==="string"){i(h1,T,hY)}else{if(h1.length>0){var h0=h1.length;for(var hZ=0;hZ-1){return{col:hY,row:h4,zoom:h3,useZoom:T}}else{var h1=di.mapZoomBaseIndex[h3];var h0=di.baseScaleZoom[h1+1];if(!h0){return null}var h2=this.getFactorByZooms(h0,h3);var e=di.baseZoomInfo[h0];return{col:Math.floor(hY/h2),row:Math.floor(h4/h2),zoom:h0,useZoom:e[e.length-1]}}return null}if(h3-1-1){return[{col:hZ,row:h1,zoom:e,useZoom:T}]}else{var ic=0;var h9=e;while(ich8){return null}var h7=Math.pow(2,ie);var i=hZ*h7;var h6=h1*h7;var h3=e+ie;var h5=[];for(var ib=0;ib<2;ib++){var h0=i+ib;for(var ia=0;ia<2;ia++){var h2=h6+ia;h5.push({col:h0,row:h2,zoom:h3,useZoom:h3})}}return h5},getFactorByZooms:function(i,hY){var T=di.mapZoomBaseIndex[i];var hZ=di.mapZoomBaseIndex[hY];var e=di.baseScaleZoomMercatorSize[T];var h0=di.baseScaleZoomMercatorSize[hZ];return e/h0}};var a8={};var ag=["swiftshader","microsoft basic render driver"];var cl=["intel","nvidia","amd","apple","geforce"];function dv(e){e=e.toLowerCase();if(ag.indexOf(e)>=0){return true}if(e.indexOf("mobile")>=0){return true}return false}function fJ(T){T=T.toLowerCase();for(var e=0;e=0){return true}}return false}function dZ(e){if(!e){return false}if(dv(e)){return false}if(fJ(e)){return true}return false}a8.ifEnableEarth=function(i){var e=a8.ifEnableEarth;if(!i&&typeof e._enable==="boolean"){return e._enable}if(a8.ifSupportWebGL()){e._enable=true;return true}e._enable=false;return false};a8.ifEnableWebGLMap=function(i){var e=a8.ifEnableWebGLMap;if(!i&&typeof e._enable==="boolean"){return e._enable}if(a8.ifSupportWebGL()){if(dw.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};a8.params={};a8.ifSupportWebGL=function(){var i=a8.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 hZ=null;var h5={alpha:true,antialias:false,failIfMajorPerformanceCaveat:true,preserveDrawingBuffer:false,stencil:false};try{hZ=T.getContext("webgl",h5)||T.getContext("experimental-webgl",h5)}catch(h1){i._supportWebGL=false}if(hZ===null){i._supportWebGL=false}else{i._supportWebGL=true;var h3=hZ.getExtension("WEBGL_debug_renderer_info");var h2="";if(h3){h2=hZ.getParameter(h3.UNMASKED_RENDERER_WEBGL);if(dZ(h2)===true){i._supportWebGL=true}var h4=hZ.getParameter(h3.UNMASKED_VENDOR_WEBGL);i._renderer=h2;i._vendor=h4}if(!h3&&C.Browser.firefox){i._supportWebGL=true}if(!h3&&C.Platform.macintosh){i._supportWebGL=true}if(hZ.drawingBufferWidth!==T.width||hZ.drawingBufferHeight!==T.height){i._supportWebGL=false}if(hZ.getParameter(hZ.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<4){i._supportWebGL=false}var hY=hZ.getParameter(hZ.MAX_TEXTURE_SIZE);a8.params.maxTextureSize=hY;if(hY<4096){i._supportWebGL=false}var h0=hZ.getParameter(hZ.MAX_TEXTURE_IMAGE_UNITS);if(h0<8){i._supportWebGL=false}if(!hZ.getShaderPrecisionFormat||hZ.getShaderPrecisionFormat(hZ.FRAGMENT_SHADER,hZ.HIGH_FLOAT).precision<23){i._supportWebGL=false}}return i._supportWebGL};a8.ifSupportCanvas2d=function(){var hZ=a8.ifSupportCanvas2d;if(typeof hZ.supportCanvas2d==="boolean"){return hZ.supportCanvas2d}var T=document.createElement("canvas");var i=null;try{i=T.getContext("2d")}catch(hY){hZ.supportCanvas2d=false}if(i===null){hZ.supportCanvas2d=false}else{hZ.supportCanvas2d=true}return hZ.supportCanvas2d};a8.ifCanvas2dInBlackList=function(){return true};a8.ifEnableCanvas2dMap=function(){return false;var i=navigator.userAgent;var e=0;var hY=0;var hZ=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)){hY=parseFloat(RegExp.$1);if(hY>=6.1){if(/chrome\/(\d+\.\d)/i.test(i)){e=parseFloat(RegExp.$1);if(e>=31){return true}}if(/MSIE (\d+(\.\d+)?)/.test(i)){hZ=parseFloat(RegExp.$1);if(hZ>=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};a8.ifSupportCSS3=function(h2,i){var h1=document.createElement("div");var h0="Webkit Moz O ms".split(" ");var e=h0.length;var T="";var hY=h1.style;if(h2 in hY){T=h2}h2=h2.replace(/^[a-z]/,function(h3){return h3.toUpperCase()});while(e--){var hZ=h0[e]+h2;if(hZ in hY){T=hZ;break}}if(i){return T}else{return T.length>0?true:false}};a8.isModernBrowser=a8.ifSupportCanvas2d()&&a8.ifSupportCSS3("transform");function e4(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}e4.prototype.setData=function(hY,h0){var i=this._cache;var T=this._size;if(T===0){return}var e=this._curSize;if(e===T){this._removeOld()}var hZ;if(!i[hY]){hZ={key:hY,data:h0,older:null,newwer:null};i[hY]=hZ;if(this._least===null){this._least=hZ}if(this._most===null){this._most=hZ}this._curSize++}else{hZ=i[hY];hZ.data=h0;if(this._most===hZ){return}hZ.older&&(hZ.older.newer=hZ.newer);hZ.newer&&(hZ.newer.older=hZ.older);if(this._least===hZ){this._least=hZ.newer}}if(this._most&&this._most!==hZ){this._most.newer=hZ;hZ.older=this._most;this._most=hZ;hZ.newer=null}};e4.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};e4.prototype.getAllData=function(){return this._cache};e4.prototype.getHitRate=function(){return this._hitTimes/this._getDataTimes};e4.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--};e4.prototype._removeOld=function(){var e=this._cache;var hY=Math.round(this._size*0.6);var T=0;while(this._least&&T=72.004&&T<=137.8347&&i>=0.8293&&i<=55.8271}function iH(iM,iL){var iP,i,iR,T=(iR=300+(iP=iM-105)+2*(i=iL-35)+0.1*iP*iP+0.1*iP*i+0.1*iw(iv(iP)),iR+=2*(20*ip(6*iP*iJ)+20*ip(2*iP*iJ))/3,(iR+=2*(20*ip(iP*iJ)+40*ip(iP/3*iJ))/3)+2*(150*ip(iP/12*iJ)+300*ip(iP/30*iJ))/3),iK=function(iU,iT){var iS=2*iU-100+3*iT+0.2*iT*iT+0.1*iU*iT+0.2*iw(iv(iU));return iS+=2*(20*ip(6*iU*iJ)+20*ip(2*iU*iJ))/3,iS+=2*(20*ip(iT*iJ)+40*ip(iT/3*iJ))/3,iS+2*(160*ip(iT/12*iJ)+320*ip(iT*iJ/30))/3}(iM-105,iL-35),iO=iL/180*iJ,iN=ip(iO),iQ=iw(iN=1-io*iN*iN);return[T=180*T/(iB/iQ*ir(iO)*iJ),iK=180*iK/(iB*(1-io)/(iN*iQ)*iJ)]}function iy(iK){var i=iK[0],T=iK[1];if(!iE(i,T)){return[i,T]}var iL=iH(i,T);return[i+iL[0],T+iL[1]]}function iq(iM){var iQ=iM[0],T=iM[1];if(!iE(iQ,T)){return[iQ,T]}for(var iK=[iQ,T],iO=iK[0],iL=iK[1],iP=iy([iO,iL]),iN=iP[0]-iQ,iR=iP[1]-T;iv(iN)>0.000001||iv(iR)>0.000001;){iN=(iP=iy([iO-=iN,iL-=iR]))[0]-iQ,iR=iP[1]-T}return[iO,iL]}var iC=Math.sin,iD=Math.cos,h6=Math.atan2,iG=Math.sqrt,im=3000*Math.PI/180;function iu(iK){var i=iK[0]-0.0065,T=iK[1]-0.006,iM=iG(i*i+T*T)-0.00002*iC(T*im),iL=h6(T,i)-0.000003*iD(i*im);return[iM*iD(iL),iM*iC(iL)]}function ia(iK){var i=iK[0],T=iK[1],iM=iG(i*i+T*T)+0.00002*iC(T*im),iL=h6(T,i)+0.000003*iD(i*im);return[iM*iD(iL)+0.0065,iM*iC(iL)+0.006]}var ij=180/Math.PI,h1=Math.PI/180,h3=6378137,iI=20037508.342789244;function ig(i){return[i[0]*ij/h3,(0.5*Math.PI-2*Math.atan(Math.exp(-i[1]/h3)))*ij]}function ix(iK){var i=Math.abs(iK[0])<=180?iK[0]:iK[0]-360*(iK[0]<0?-1:1),T=[h3*i*h1,h3*Math.log(Math.tan(0.25*Math.PI+0.5*iK[1]*h1))];return T[0]>iI&&(T[0]=iI),T[0]<-iI&&(T[0]=-iI),T[1]>iI&&(T[1]=iI),T[1]<-iI&&(T[1]=-iI),T}var ie,id,ic,il,h9,hY,ik=Math.abs,iz=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],h8=[75,60,45,30,15,0],h0=[[1.410526172116255e-8,0.00000898305509648872,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,17337981.2],[-7.435856389565537e-9,0.000008983055097726239,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,0.00000898305509983578,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552e-8,0.000008983055099779535,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437e-9,0.000008983055096812155,0.00006995724062,23.10934304144901,-0.00023663490511,-0.6321817810242,-0.00663494467273,0.03430082397953,-0.00466043876332,2555164.4],[2.890871144776878e-9,0.000008983055095805407,-3.068298e-8,7.47137025468032,-0.00000353937994,-0.02145144861037,-0.00001234426596,0.00010322952773,-0.00000323890364,826088.5]],iA=[[-0.0015702102444,111320.7020616939,1704480524535203,-10338987376042340,26112667856603880,-35149669176653700,26595700718403920,-10725012454188240,1800819912950474,82.5],[0.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-0.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-0.0003218135878613132,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]];function h7(iL,T,iK){var iN=ik(T)/iK[9],iM=iK[0]+iK[1]*ik(iL),i=iK[2]+iK[3]*iN+iK[4]*Math.pow(iN,2)+iK[5]*Math.pow(iN,3)+iK[6]*Math.pow(iN,4)+iK[7]*Math.pow(iN,5)+iK[8]*Math.pow(iN,6);return[iM*=iL<0?-1:1,i*=T<0?-1:1]}function it(iK){for(var i=iK[0],T=iK[1],iM=[],iL=0;iLh8[iL]){iM=iA[iL];break}}return h7(i,T,iM)}function h5(iK){for(var i=iK[0],T=iK[1],iM=[],iL=0;iL=iz[iL]){iM=h0[iL];break}}return h7(i,T,iM)}function h4(T,i){if(!T){throw new Error(i)}}function ih(i){return !!i&&"[object Array]"===Object.prototype.toString.call(i)}function ib(i){return !isNaN(Number(i))&&null!==i&&!ih(i)}function h2(){for(var iK=[],i=0;i=2,"Invalid input coordinate: "+iO),h4(ib(iO[0])&&ib(iO[1]),"Invalid input coordinate: "+iO),iO=iO.map(Number),iL=!0);var iK=iP;return iL?iK(iO):(hZ(iO,(function(iR){var i;i=iK(iR),iR[0]=i[0],iR[1]=i[1]})),iO)}})}));var g6={ColorRefTable:{aliceblue:["#f0f8ff","rgb(240,248,255)"],antiquewhite:["#faebd7","rgb(250,235,215)"],aqua:["#00ffff","rgb(0,255,255)"],aquamarine:["#7fffd4","rgb(127,255,212)"],azure:["#f0ffff","rgb(240,255,255)"],beige:["#f5f5dc","rgb(245,245,220)"],bisque:["#ffe4c4","rgb(255,228,196)"],black:["#000000","rgb(0,0,0)"],blanchedalmond:["#ffebcd","rgb(255,235,205)"],blue:["#0000ff","rgb(0,0,255)"],blueviolet:["#8a2be2","rgb(138,43,226)"],brown:["#a52a2a","rgb(165,42,42)"],burlywood:["#deb887","rgb(222,184,135)"],cadetblue:["#5f9ea0","rgb(95,158,160)"],chartreuse:["#7fff00","rgb(127,255,0)"],chocolate:["#d2691e","rgb(210,105,30)"],coral:["#ff7f50","rgb(255,127,80)"],cornflowerblue:["#6495ed","rgb(100,149,237)"],cornsilk:["#fff8dc","rgb(255,248,220)"],crimson:["#dc143c","rgb(220,20,60)"],cyan:["#00ffff","rgb(0,255,255)"],darkblue:["#00008b","rgb(0,0,139)"],darkcyan:["#008b8b","rgb(0,139,139)"],darkgoldenrod:["#b8860b","rgb(184,134,11)"],darkgray:["#a9a9a9","rgb(169,169,169)"],darkgreen:["#006400","rgb(0,100,0)"],darkgrey:["#a9a9a9","rgb(169,169,169)"],darkkhaki:["#bdb76b","rgb(189,183,107)"],darkmagenta:["#8b008b","rgb(139,0,139)"],darkolivegreen:["#556b2f","rgb(85,107,47)"],darkorange:["#ff8c00","rgb(255,140,0)"],darkorchid:["#9932cc","rgb(153,50,204)"],darkred:["#8b0000","rgb(139,0,0)"],darksalmon:["#e9967a","rgb(233,150,122)"],darkseagreen:["#8fbc8f","rgb(143,188,143)"],darkslateblue:["#483d8b","rgb(72,61,139)"],darkslategray:["#2f4f4f","rgb(47,79,79)"],darkslategrey:["#2f4f4f","rgb(47,79,79)"],darkturquoise:["#00ced1","rgb(0,206,209)"],darkviolet:["#9400d3","rgb(148,0,211)"],deeppink:["#ff1493","rgb(255,20,147)"],deepskyblue:["#00bfff","rgb(0,191,255)"],dimgray:["#696969","rgb(105,105,105)"],dimgrey:["#696969","rgb(105,105,105)"],dodgerblue:["#1e90ff","rgb(30,144,255)"],firebrick:["#b22222","rgb(178,34,34)"],floralwhite:["#fffaf0","rgb(255,250,240)"],forestgreen:["#228b22","rgb(34,139,34)"],fuchsia:["#ff00ff","rgb(255,0,255)"],gainsboro:["#dcdcdc","rgb(220,220,220)"],ghostwhite:["#f8f8ff","rgb(248,248,255)"],gold:["#ffd700","rgb(255,215,0)"],goldenrod:["#daa520","rgb(218,165,32)"],gray:["#808080","rgb(128,128,128)"],green:["#008000","rgb(0,128,0)"],greenyellow:["#adff2f","rgb(173,255,47)"],grey:["#808080","rgb(128,128,128)"],honeydew:["#f0fff0","rgb(240,255,240)"],hotpink:["#ff69b4","rgb(255,105,180)"],indianred:["#cd5c5c","rgb(205,92,92)"],indigo:["#4b0082","rgb(75,0,130)"],ivory:["#fffff0","rgb(255,255,240)"],khaki:["#f0e68c","rgb(240,230,140)"],lavender:["#e6e6fa","rgb(230,230,250)"],lavenderblush:["#fff0f5","rgb(255,240,245)"],lawngreen:["#7cfc00","rgb(124,252,0)"],lemonchiffon:["#fffacd","rgb(255,250,205)"],lightblue:["#add8e6","rgb(173,216,230)"],lightcoral:["#f08080","rgb(240,128,128)"],lightcyan:["#e0ffff","rgb(224,255,255)"],lightgoldenrodyellow:["#fafad2","rgb(250,250,210)"],lightgray:["#d3d3d3","rgb(211,211,211)"],lightgreen:["#90ee90","rgb(144,238,144)"],lightgrey:["#d3d3d3","rgb(211,211,211)"],lightpink:["#ffb6c1","rgb(255,182,193)"],lightsalmon:["#ffa07a","rgb(255,160,122)"],lightseagreen:["#20b2aa","rgb(32,178,170)"],lightskyblue:["#87cefa","rgb(135,206,250)"],lightslategray:["#778899","rgb(119,136,153)"],lightslategrey:["#778899","rgb(119,136,153)"],lightsteelblue:["#b0c4de","rgb(176,196,222)"],lightyellow:["#ffffe0","rgb(255,255,224)"],lime:["#00ff00","rgb(0,255,0)"],limegreen:["#32cd32","rgb(50,205,50)"],linen:["#faf0e6","rgb(250,240,230)"],magenta:["#ff00ff","rgb(255,0,255)"],maroon:["#800000","rgb(128,0,0)"],mediumaquamarine:["#66cdaa","rgb(102,205,170)"],mediumblue:["#0000cd","rgb(0,0,205)"],mediumorchid:["#ba55d3","rgb(186,85,211)"],mediumpurple:["#9370db","rgb(147,112,219)"],mediumseagreen:["#3cb371","rgb(60,179,113)"],mediumslateblue:["#7b68ee","rgb(123,104,238)"],mediumspringgreen:["#00fa9a","rgb(0,250,154)"],mediumturquoise:["#48d1cc","rgb(72,209,204)"],mediumvioletred:["#c71585","rgb(199,21,133)"],midnightblue:["#191970","rgb(25,25,112)"],mintcream:["#f5fffa","rgb(245,255,250)"],mistyrose:["#ffe4e1","rgb(255,228,225)"],moccasin:["#ffe4b5","rgb(255,228,181)"],navajowhite:["#ffdead","rgb(255,222,173)"],navy:["#000080","rgb(0,0,128)"],oldlace:["#fdf5e6","rgb(253,245,230)"],olive:["#808000","rgb(128,128,0)"],olivedrab:["#6b8e23","rgb(107,142,35)"],orange:["#ffa500","rgb(255,165,0)"],orangered:["#ff4500","rgb(255,69,0)"],orchid:["#da70d6","rgb(218,112,214)"],palegoldenrod:["#eee8aa","rgb(238,232,170)"],palegreen:["#98fb98","rgb(152,251,152)"],paleturquoise:["#afeeee","rgb(175,238,238)"],palevioletred:["#db7093","rgb(219,112,147)"],papayawhip:["#ffefd5","rgb(255,239,213)"],peachpuff:["#ffdab9","rgb(255,218,185)"],peru:["#cd853f","rgb(205,133,63)"],pink:["#ffc0cb","rgb(255,192,203)"],plum:["#dda0dd","rgb(221,160,221)"],powderblue:["#b0e0e6","rgb(176,224,230)"],purple:["#800080","rgb(128,0,128)"],red:["#ff0000","rgb(255,0,0)"],rosybrown:["#bc8f8f","rgb(188,143,143)"],royalblue:["#4169e1","rgb(65,105,225)"],saddlebrown:["#8b4513","rgb(139,69,19)"],salmon:["#fa8072","rgb(250,128,114)"],sandybrown:["#f4a460","rgb(244,164,96)"],seagreen:["#2e8b57","rgb(46,139,87)"],seashell:["#fff5ee","rgb(255,245,238)"],sienna:["#a0522d","rgb(160,82,45)"],silver:["#c0c0c0","rgb(192,192,192)"],skyblue:["#87ceeb","rgb(135,206,235)"],slateblue:["#6a5acd","rgb(106,90,205)"],slategray:["#708090","rgb(112,128,144)"],slategrey:["#708090","rgb(112,128,144)"],snow:["#fffafa","rgb(255,250,250)"],springgreen:["#00ff7f","rgb(0,255,127)"],steelblue:["#4682b4","rgb(70,130,180)"],tan:["#d2b48c","rgb(210,180,140)"],teal:["#008080","rgb(0,128,128)"],thistle:["#d8bfd8","rgb(216,191,216)"],tomato:["#ff6347","rgb(255,99,71)"],turquoise:["#40e0d0","rgb(64,224,208)"],violet:["#ee82ee","rgb(238,130,238)"],wheat:["#f5deb3","rgb(245,222,179)"],white:["#ffffff","rgb(255,255,255)"],whitesmoke:["#f5f5f5","rgb(245,245,245)"],yellow:["#ffff00","rgb(255,255,0)"],yellowgreen:["#9acd32","rgb(154,205,50)"]},parseHexToRgbaArray:function(h0){var h1=h0.replace("#","");if(h1.length===3){h1+="f"}else{if(h1.length===6){h1+="ff"}}var e=[];var hZ=h1.length;var hY=hZ===8?2:1;for(var T=0;T=0&&hZ<60){h1=h2;h0=T;e=0}else{if(hZ>=60&&hZ<120){h1=T;h0=h2;e=0}else{if(hZ>=120&&hZ<180){h1=0;h0=h2;e=T}else{if(hZ>=180&&hZ<240){h1=0;h0=T;e=h2}else{if(hZ>=240&&hZ<300){h1=T;h0=0;e=h2}else{if(hZ>=300&&hZ<360){h1=h2;h0=0;e=T}}}}}}h1=(h1+i)*255>255?255:(h1+i)*255;h0=(h0+i)*255>255?255:(h0+i)*255;e=(e+i)*255>255?255:(e+i)*255;return[Math.round(h1),Math.round(h0),Math.round(e)]},formatColorCssToRgbaArray:function(h0,T,hY){hY=(typeof hY!=="boolean")?true:hY;if(typeof h0!=="string"){return hY?[0,0,0,1]:[0,0,0,255]}var i=(h0||"Black").trim().toLowerCase();var e=[];var hZ=g6.ColorRefTable[i];if(hZ!==undefined){i=hZ[0]}e=g6.parseCSSColor(i);if(T!==undefined&&!isNaN(Number(T))){T=Number(T);e[3]=g6.fitTo(T,0,1)}else{e[3]=Number((e[3]/255).toFixed(2))}if(!hY){e[3]=Math.floor(e[3]*255)}return e},fitTo:function(T,i,e){if(Te){T=e}}return T}};(function(h0){function ia(ig,ij){var ii=(ig&65535)+(ij&65535);var ih=(ig>>16)+(ij>>16)+(ii>>16);return(ih<<16)|(ii&65535)}function h9(ig,ih){return(ig<>>(32-ih))}function h4(il,ii,ih,ig,ik,ij){return ia(h9(ia(ia(ii,il),ia(ig,ij)),ik),ih)}function e(ii,ih,im,il,ig,ik,ij){return h4((ih&im)|(~ih&il),ii,ih,ig,ik,ij)}function h1(ii,ih,im,il,ig,ik,ij){return h4((ih&il)|(im&~il),ii,ih,ig,ik,ij)}function h7(ii,ih,im,il,ig,ik,ij){return h4(ih^im^il,ii,ih,ig,ik,ij)}function id(ii,ih,im,il,ig,ik,ij){return h4(im^(ih|~il),ii,ih,ig,ik,ij)}function T(ir,il){ir[il>>5]|=128<<(il%32);ir[((il+64)>>>9<<4)+14]=il;var ii;var ik;var ij;var ih;var ig;var iq=1732584193;var ip=-271733879;var io=-1732584194;var im=271733878;for(ii=0;ii>5]>>>(ii%32))&255)}return ig}function h3(ih){var ij;var ig=[];ig[(ih.length>>2)-1]=undefined;for(ij=0;ij>5]|=(ih.charCodeAt(ij/8)&255)<<(ij%32)}return ig}function h2(ig){return h8(T(h3(ig),ig.length*8))}function ie(ii,il){var ih;var ik=h3(ii);var ig=[];var ij=[];var im;ig[15]=ij[15]=undefined;if(ik.length>16){ik=T(ik,ii.length*8)}for(ih=0;ih<16;ih+=1){ig[ih]=ik[ih]^909522486;ij[ih]=ik[ih]^1549556828}im=T(ig.concat(h3(il)),512+il.length*8);return h8(T(ij.concat(im),512+128))}function ic(ij){var ii="0123456789abcdef";var ih="";var ig;var ik;for(ik=0;ik>>4)&15)+ii.charAt(ig&15)}return ih}function h5(ig){return unescape(encodeURIComponent(ig))}function hY(ig){return h2(h5(ig))}function h6(ig){return ic(hY(ig))}function i(ig,ih){return ie(h5(ig),h5(ih))}function ib(ig,ih){return ic(i(ig,ih))}function hZ(ih,ii,ig){if(!ii){if(!ig){return h6(ih)}return hY(ih)}if(!ig){return ib(ii,ih)}return i(ii,ih)}if(typeof define==="function"&&define.amd){define(function(){return hZ})}else{if(typeof module==="object"&&module.exports){module.exports=hZ}else{h0.md5=hZ}}})(this);var cB={request:function(h4,h0,T,h7,hY){var h1=new Date().getTime();var h3=(Math.random()*100000).toFixed(0);bo._rd["_cbk"+h3]=function(h8){if(h8.result&&h8.result["error"]&&h8.result["error"]===202){alert("该AK因为恶意行为已经被管理员封禁!");return}T=T||{};h4&&h4(h8,T);delete bo._rd["_cbk"+h3]};h7=h7||"";var h6;if(T&&T.useEncodeURI){h6=hq(h0,encodeURI)}else{h6=hq(h0,encodeURIComponent)}var h2=this;var i=e8.apiHost+"/"+h7+"?"+h6+"&ie=utf-8&oue=1&fromproduct=jsapi";if(!hY){i+="&res=api"}i+="&callback="+eF+"._rd._cbk"+h3;var hZ=window.___abvk?window.___abvk:this.getSeckeyCidItem("SECKEY_ABVK");var e=this.getSeckeyCidItem("BMAP_SECKEY");var h5=encodeURIComponent(hZ+","+e);i+="&ak="+gk+"&v=gl&seckey="+h5+"&timeStamp="+h1;ht.load(i)},getSeckeyCidItem:function(i){if(navigator.cookieEnabled){var T=new RegExp("(^| )"+i+"=([^;]*)(;|$)");var e=document.cookie.match(T);if(e){return unescape(e[2])}return -1}if(localStorage){return localStorage.getItem(i)?localStorage.getItem(i):-1}if(sessionStorage){return sessionStorage.getItem(i)?localStorage.getItem(i):-1}}};window.srqtimer=null;window.firstTime=true;window.srqcount=0;bo._rd={};var D={request:function(h1,e){if(e){var h0=(Math.random()*100000).toFixed(0);BMapGL._rd["_cbk"+h0]=function(h3){e&&e(h3);delete BMapGL._rd["_cbk"+h0]};h1+="&callback=BMapGL._rd._cbk"+h0}function hZ(h4){var h3;var h5=new RegExp("(^| )"+h4+"=([^;]*)(;|$)");if(h3=document.cookie.match(h5)){return unescape(h3[2])}else{return -1}}var T=window.___abvk?window.___abvk:this.getSeckeyCidItem("SECKEY_ABVK");var h2=this.getSeckeyCidItem("BMAP_SECKEY");var i=encodeURIComponent(T+","+h2);h1+="&seckey="+i;var hY=S("script",{src:h1,type:"text/javascript",charset:"utf-8"});if(hY.addEventListener){hY.addEventListener("load",function(h4){var h3=h4.target;h3.parentNode.removeChild(h3)},false);hY.addEventListener("error",function(h3){e&&e([,,,,,])},false)}else{if(hY.attachEvent){hY.attachEvent("onreadystatechange",function(h4){var h3=window.event.srcElement;if(h3&&(h3.readyState=="loaded"||h3.readyState=="complete")){h3.parentNode.removeChild(h3)}})}}document.getElementsByTagName("head")[0].appendChild(hY);hY=null},getSeckeyCidItem:function(i){if(navigator.cookieEnabled){var T=new RegExp("(^| )"+i+"=([^;]*)(;|$)");var e=document.cookie.match(T);if(e){return unescape(e[2])}return -1}if(localStorage){return localStorage.getItem(i)?localStorage.getItem(i):-1}if(sessionStorage){return sessionStorage.getItem(i)?localStorage.getItem(i):-1}}};function a7(){this._map=null;this._container;this._type="control";this.blockInfoWindow=true;this._visible=true}a7.inherits(eg,"Control");C.extend(a7.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&&bV(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",db)}},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=dI(this._opts.container,'
')}else{var i='
';if(e&&e.config.autoSafeArea&&bv()){this._safeAreaContainer=dI(this._map.container,i);this._safeAreaContainer.style.position="absolute";this._safeAreaContainer.style.bottom="env(safe-area-inset-bottom)";this._container=dI(this._safeAreaContainer,i)}else{this._container=dI(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(hY){if(this.anchorFixed||typeof hY!=="number"||isNaN(hY)||hYBMAP_ANCHOR_BOTTOM_RIGHT){hY=this.defaultAnchor}this._opts.offset=this._opts.offset||this.defaultOffset;var T=this._opts.anchor;this._opts.anchor=hY;if(!this._container){return}var h0=this._container;var e=this._opts.offset.width;var hZ=this._opts.offset.height;h0.style.left=h0.style.top=h0.style.right=h0.style.bottom="auto";switch(hY){case BMAP_ANCHOR_TOP_LEFT:h0.style.top=hZ+"px";h0.style.left=e+"px";break;case BMAP_ANCHOR_TOP_RIGHT:h0.style.top=hZ+"px";h0.style.right=e+"px";break;case BMAP_ANCHOR_BOTTOM_LEFT:h0.style.bottom=hZ+"px";h0.style.left=e+"px";break;case BMAP_ANCHOR_BOTTOM_RIGHT:h0.style.bottom=hZ+"px";h0.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[hY])},getAnchor:function(){return this._opts.anchor},setOffset:function(e){if(!e){return}this._opts=this._opts||{};this._opts.offset=new ec(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 bb("onshow"))},hide:function(){if(this._visible===false){return}this._visible=false;if(this._container){this._container.style.display="none"}this.dispatchEvent(new bb("onhide"))},isPrintable:function(){return !!this._opts.printable},isVisible:function(){if(!this._container&&!this._map){return false}return !!this._visible},_asyncLoadCode:function(){var e=this;ed.load("control",function(){if(e._asyncDraw){e._asyncDraw()}})}});var hK={TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_LEFT:2,BOTTOM_RIGHT:3};bo.ControlAnchor=hK;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 dH(e){a7.call(this);e=e||{};this._opts={printable:false};C.extend(this._opts,e);this._copyrightCollection=[];this.defaultAnchor=BMAP_ANCHOR_BOTTOM_LEFT;this.defaultOffset=new ec(5,2);this.setAnchor(e.anchor);this._canShow=true;this.sateMapStyle=false;this.blockInfoWindow=false;this._asyncLoadCode()}dH.inherits(a7,"CopyrightControl");C.extend(dH.prototype,{initialize:function(e){this._map=e;return this._container},addCopyright:function(hY){var e={minZoom:0,bounds:null,content:"",mapType:""};for(var T in hY){e[T]=hY[T]}if(this._map){var h1=e.minZoom;if(h1===-1||h1this._map.getMaxZoom()){e.minZoom=this._map.getMinZoom()}if(e.mapType!==""&&!b6[e.mapType]){e.mapType=BMAPGL_NORMAL_MAP}}var hZ=this.getCopyright(hY.id);if(hZ){for(var h0 in e){hZ[h0]=e[h0]}}else{this._copyrightCollection.push(e)}},getCopyright:function(hY){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 bC(i){a7.call(this);i=i||{};this._opts={printable:false};this.defaultAnchor=BMAP_ANCHOR_TOP_RIGHT;this.defaultOffset=new ec(10,10);this.setAnchor(i.anchor);this._opts=C.extend(C.extend(this._opts,{offset:this.defaultOffset,enableSwitch:true}),i);var e=this;ed.load("control",function(){e._asyncDraw()})}bC.inherits(a7,"MapTypeControl");C.extend(bC.prototype,{initialize:function(e){this._map=e;return this._container},showStreetLayer:function(e){this._map.showStreetLayer(e)}});function cy(e){a7.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=hK.BOTTOM_RIGHT;this.defaultOffset=new ec(15,20);this.setAnchor(e.anchor);this._asyncLoadCode()}cy.inherits(a7,"ZoomControl");C.extend(cy.prototype,{initialize:function(e){this._map=e;return this._container}});function bA(e){a7.call(this);e=e||{};this._opts={autoZoom:true,autoViewport:true};this._opts=C.extend(this._opts,e);this.defaultAnchor=hK.BOTTOM_LEFT;this.defaultOffset=new ec(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()}bA.inherits(a7,"LocationControl");C.extend(bA.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){a7.call(this);e=e||{};this._opts={};this._opts=C.extend(this._opts,e);this.defaultAnchor=hK.BOTTOM_LEFT;this.defaultOffset=new ec(5,15);if(gb()){this.defaultOffset=new ec(10,10)}this.setAnchor(e.anchor)}af.inherits(a7,"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 gH(e,i){this._map=e;this._indoorInfo=i;this._visible=true;this._adjustVisible=true;this._isMobile=gb();this._sizeConfig={FLOOR_BTN_HEIGHT:this._isMobile?35:26,SWITCH_ARROW_HEIGHT:this._isMobile?20:15};this._init()}gH.prototype._init=function(){this._render();this._bindDom();this._bind();this._adjustDisplayHeight();var e=new bb("onindoor_bar_show");e.uid=this._indoorInfo.uid;this._map.dispatchEvent(e)};gH.prototype._render=function(){if(!this._indoorInfo){return}var h2=this._isMobile;var e=this._div=S("div");C.ac(e,"floor-select-container");h2&&C.ac(e,"mobile");h2&&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 h0=S("div");C.ac(h0,"floor-switch-top-icon");i.appendChild(h0);var hZ=this._btnBottom=S("button");var T=S("div");C.ac(T,"floor-switch-bottom-icon");hZ.appendChild(T);C.ac(hZ,"floor-switch-bottom");C.ac(hZ,"bottom-border-radius");var hY=this._floorsContainer=S("div");C.ac(hY,"floors-container");hY.appendChild(this._createFloorsDom());this._div.appendChild(i);this._div.appendChild(hY);this._div.appendChild(hZ);var h3=0;if(this._btnTop.style.display===""){h3=2*this._sizeConfig.SWITCH_ARROW_HEIGHT}this._div.style.height=parseInt(this._floorsContainer.style.height,10)+h3+"px";this._map.getContainer().appendChild(this._div);if(!h2){var h1=this;setTimeout(function(){h1._div.style.right="20px"},20)}};gH.prototype._createFloorsDom=function(){if(!this._indoorInfo){return}var T=this._ol=S("ol");var h0=this._indoorInfo.currentFloor;for(var hZ=this._indoorInfo.floors.length-1;hZ>=0;hZ--){var h1=this._indoorInfo.floors[hZ].floorName;var e=S("li");var hY=S("button");C.ac(hY,"btn-select-floor");if(hZ===h0){C.ac(hY,"selected")}hY.setAttribute("data-floor",hZ);hY.innerHTML=h1;e.appendChild(hY);T.appendChild(e)}return T};gH.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()};gH.prototype._bindDom=function(){var e=this;C.on(this._floorsContainer,"click",function(hY){var T=hY.target||hY.srcElement;if(T.tagName.toLowerCase()==="button"){e._map.showIndoor(e._indoorInfo.uid,parseInt(T.getAttribute("data-floor"),10));var i=new bb("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",db);C.on(this._div,"mousewheel",db);this._map.addEventListener("resize",function(){e._adjustDisplayHeight()})};gH.prototype._adjustDisplayHeight=function(){if(!this._indoorInfo){return}var h0=this._map.getSize().height;var h1=this._sizeConfig.FLOOR_BTN_HEIGHT;var h2=h0-291-100;if(this._isMobile){h2=h0-12-108-this._map.config.bottomOffset}var e=this._indoorInfo.floors.length;var T=e*h1;var hY=e;var h4=0;var h5=this._floorsContainer.children[0];if(T>h2){this._showArrow=true;C.rc(h5.children[0].children[0],"top-border-radius");C.rc(h5.children[e-1].children[0],"bottom-border-radius")}else{this._showArrow=false;C.ac(h5.children[0].children[0],"top-border-radius");C.ac(h5.children[e-1].children[0],"bottom-border-radius")}while(T>h2){if(hY===0){break}hY--;h4=2*this._sizeConfig.SWITCH_ARROW_HEIGHT;T=hY*h1+h4}this._currentDisplayHeight=T;if(hY<3){this._setAdjustVisbile(false)}else{this._setAdjustVisbile(true)}this._floorsContainer.style.height=hY*h1+"px";var hZ=this._indoorInfo.currentFloor;var i=e-hZ;var h3=hZ-1;this._div.style.height=parseInt(this._floorsContainer.style.height,10)+h4+"px";var h6=-(e-(hZ+Math.round(hY/2)))*h1;this._setBarSliderTop(h6);if(hY=i*T){hY=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(hY>=0){hY=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=hY+"px"};gH.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"}};gH.prototype._bind=function(){var i=this._map;var e=this;i.on("indoor_status_changed",function(h2){if(e._visible===false){return}var T=e._ol;var h0=h2.uid;if(!h0){return}var h1=h2.floor;for(var hZ=0;hZ=c8.HIGH_RES_MIN_RATIO?2:1;this._imgPath=e8.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(hN.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(){eP(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 bb("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 bb("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 bb("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 ev(T,i){this._map=T;this._target=T;var hY=T.temp.originMapType||T.mapType;if(hY==="B_EARTH_MAP"&&T._earth){this._target=T._earth}this._outContainer=i||T.getContainer();this._imgRatio=a6()>=c8.HIGH_RES_MIN_RATIO?2:1;this._imgPath=e8.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(ev.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(hY){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 bb("ontiltmsdown"));e._tiltAni=new o({duration:9999999,render:function(hZ){i=e._target.getTilt();if(T==="in"&&i0){e._target.setTilt(i-1,{noAnimation:true})}}},finish:function(){e._tiltAni=null}});e._clickTimer=null},200);hY.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(hY){if(!e._enabled){return}if(!e._clickTimer){return}if(e._target.getLock()){return}clearTimeout(e._clickTimer);e._map.fire(new bb("ontiltclick"));var i=e._target.getTilt();e._target.setLock(true);hY.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){hY=26;e=0;i=0}var hZ="-"+(110+i+hY+e)+"px 1px";this._div&&(this._div.style.backgroundPosition=hZ);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 cf(i){eg.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;ed.load("menu",function(){e._draw()})}cf.inherits(eg,"ContextMenu");C.extend(cf.prototype,{initialize:function(e){this._map=e},remove:function(){this._map=null},addItem:function(hZ,e){if(!hZ||hZ._type!="menuitem"||hZ._text==""||hZ._width<=0){return}for(var hY=0,T=this._items.length;hYthis._items.length-1){e=-1}hZ._insertIndex=e;if(e===-1){this._items.push(hZ);this._rItems.push(hZ)}else{this._items.splice(e,0,hZ);this._rItems.splice(e,0,hZ)}},removeItem:function(hY){if(!hY||hY._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 hY=0,e=this._items.length;hYT){this._items[hY]._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 fE(T,hY,i){if(!T||!hY||typeof hY!="function"){return}eg.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=hY;this._map=null;this._type="menuitem";this._contextmenu=null;this._container=null;this._enabled=true;var e=this;ed.load("menu",function(){e._draw()})}fE.inherits(eg,"MenuItem");C.extend(fE.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 dT(e,i){this.setSouthWest(e);this.setNorthEast(i)}C.extend(dT.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 hZ=Math.max(this.sw.lng,T.sw.lng);var i=Math.min(this.ne.lng,T.ne.lng);var hY=Math.max(this.sw.lat,T.sw.lat);var e=Math.min(this.ne.lat,T.ne.lat);return new dT(new hz(hZ,hY),new hz(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 hz(0,0)}var T;var hZ;T=new hz(Math.abs(e.lng),Math.abs(e.lat));for(var hY=0;hY=this.MCBAND[hY]){hZ=this.MC2LL[hY];break}}var h0=this.convertor(e,hZ);return new c4(h0.lat,h0.lng)},convertLL2MC:function(h1){if(!h1){return new hz(0,0)}var h3=h1.lat;var hY=h1.lng;hY=this.getLoop(h1.lng,-180,180);h3=fL(h3,-85,85);var h0;for(var hZ=0;hZ=this.LLBAND[hZ]){h0=this.LL2MC[hZ];break}}if(!h0){for(hZ=0;hZe){T-=e-i}while(Ti-1){e=e-i}while(e<0){e=e+i}return e},getLoopBox:function(e,hY){var i=this.HALF_SIZE*2;if(e[0]>0&&hY[2]<0){hY[2]=hY[2]+i}else{if(e[0]<0&&hY[0]>0){hY[0]=hY[0]-i}}return hY},createOrUpdateTileCoord:function(T,e,hY,i){if(i!==undefined){i[0]=T;i[1]=e;i[2]=hY;return i}else{return[T,e,hY]}},createOrUpdateTileRange:function(e,hY,hZ,T,i){if(i!==undefined){i.minX=e;i.maxX=hY;i.minY=hZ;i.maxY=T;return i}else{return{minX:e,maxX:hY,minY:hZ,maxY:T}}},fromEPSG4326:function(T,h3,h1){var hZ=T.length;var h0=h1>1?h1:2;var e=h3;if(e===undefined){if(h0>2){e=T.slice()}else{e=new Array(hZ)}}for(var hY=0;hYthis.MAX_SAFE_Y){h2=this.MAX_SAFE_Y}else{if(h2<-this.MAX_SAFE_Y){h2=-this.MAX_SAFE_Y}}e[hY+1]=h2}return e},toEPSG4326:function(T,h2,h1){var hZ=T.length;var h0=h1>1?h1:2;var e=h2;if(e===undefined){if(h0>2){e=T.slice()}else{e=new Array(hZ)}}for(var hY=0;hY90){i=90}}while(e<-180){e+=360}while(e>180){e-=360}e=e||0;i=i||0;hz.call(this,e,i)}c4.inherits(hz,"LatLng");C.extend(c4.prototype,{equals:function(e){return(this.lat===e.lat&&this.lng===e.lng)},clone:function(){return new c4(this.lat,this.lng)},add:function(e){return new c4(this.lng+e.lng,this.lat+e.lat)},sub:function(e){return new c4(this.lat-e.lat,this.lng-e.lng)},mult:function(e){return new c4(this.lng*e,this.lat*e)},div:function(e){return new c4(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 eL(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 c4(e.lat,e.lng);this._ne=new c4(i.lat,i.lng);this._swLng=e.lng;this._swLat=e.lat;this._neLng=i.lng;this._neLat=i.lat}}C.extend(eL.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 hZ=Math.max(this._swLng,T._swLng);var i=Math.min(this._neLng,T._neLng);var hY=Math.max(this._swLat,T._swLat);var e=Math.min(this._neLat,T._neLat);this._sw=new c4(hY,hZ);this._ne=new c4(e,i);this._swLng=hZ;this._swLat=hY;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 c4(0,0)}if(!this._ne){this._ne=new c4(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=e8.apiHost+"/geoconv/v1/?coords=";C.each(i,function(h0){e+=h0.lng+","+h0.lat+";"});e=e.replace(/;$/gi,"");e=e+"&from="+hZ+"&to="+hY+"&v=gl&type=webgl&ak="+gk;D.request(e,function(h1){if(h1.status===0){var h0=[];C.each(h1.result,function(h2){h0.push(new hz(h2.x,h2.y))});delete h1.result;h1.points=h0}T&&T(h1)})}});var dV={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 ek={_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=dI(this._map.container,this._html);C.on(e,"mouseup",function(T){if(T.button==2){db(T)}});C.on(e,"contextmenu",db);e.style.display="none"},getDrawPoint:function(hY,h1,hZ){hY=window.event||hY;var i=hY.offsetX||hY.layerX||0;var h0=parseInt(hY.offsetY)||parseInt(hY.layerY)||0;var T=hY.target||hY.srcElement;if(T!=ek.getDom(this._map)&&h1==true){while(T&&T!=this._map.container){if(!(T.clientWidth==0&&T.clientHeight==0&&T.offsetParent&&T.offsetParent.nodeName.toLowerCase()=="td")){i+=T.offsetLeft;h0+=T.offsetTop}T=T.offsetParent}}if(T!=ek.getDom(this._map)&&T!=this._map.container){return}if(typeof i==="undefined"||typeof h0==="undefined"){return}if(isNaN(i)||isNaN(h0)){return}if(hZ){i=i+hZ.x;h0=h0+hZ.y}return this._map.pixelToPointIn(new em(i,h0))},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 bl(){this._type="overlay"}bl.inherits(C.BaseClass,"Overlay");bl.getZIndex=function(i,e){i=i*1;if(!i){return 0}if(e){i=eq.convertMC2LL(new hz(0,i)).lat}return(i*-100000)<<1};C.extend(bl.prototype,{_i:function(e){this._map=e;if(!this.domElement&&bV(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 bb("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 cV(){C.BaseClass.call(this);bl.call(this);this._visible=true;this._visibleInternal=true;this.infoWindow=null;this._dblclickTime=0}cV.inherits(bl,"OverlayInternal");C.extend(cV.prototype,{initialize:function(e){this.map=e;C.BaseClass.call(this,this.hashCode);return null},draw:function(){},remove:function(){this.decontrol();bl.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,hY){if(!T){return this.point}else{var e=hY?hY.width:0;var hZ=hY?hY.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+hZ}else{i.x=i.x+e;i.y=i.y+hZ}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 e2(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()}e2.prototype._init=function(){if(this.map._renderType!=="webgl"){this._createOverlayContainers()}else{this._createWebGLOverlayContainers()}this._bind()};e2.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)}};e2.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)};e2.prototype._createOverlayDiv=function(e,hY){var T=S("div");var i=T.style;i.position="absolute";i.top=i.left=i.width=i.height="0";i.zIndex=hY;e.appendChild(T);return T};e2.prototype._bind=function(){var hZ=this.map;var hY=this;function i(h1){hY.draw(h1)}if(hZ._renderType!=="webgl"){hZ.addEventListener("load",i);hZ.addEventListener("moveend",i);hZ.addEventListener("resize",i);hZ.addEventListener("zoomend",i);hZ.addEventListener("zooming_inner",i)}else{hZ.on("update",i)}hZ.addEventListener("zoomend",function(h1){if(this.mapType==="B_EARTH_MAP"){if(this._earth.getZoom()0;h1--){if(hY._customOverlays[h1].enableMassClear!==false){this.removeOverlay(hY._customOverlays[h1]);hY._customOverlays.splice(h1,1)}}});hZ.addEventListener("infowindowopen",function(h2){var h1=this.infoWindow;if(h1){C.hide(h1.popDom);C.hide(h1.shadowDom)}});function T(){if(this.getMapType()==="B_EARTH_MAP"||this._renderType==="webgl"){if(hY._zoomingOrMoving===false){this._panes.markerMouseTarget.style.display="none";hY._zoomingOrMoving=true}}}function e(h3){if(this.getMapType()==="B_EARTH_MAP"||this._renderType==="webgl"){if(hY._zoomingOrMoving===true){this._panes.markerMouseTarget.style.display="";hY._zoomingOrMoving=false;for(var h2=0;h21){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 dT();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(cV,"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(hZ){var hY=hZ.split(",");e.push(new hz(hY[0],hY[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 dT();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 hz(e.lng,e.lat);this._calcBounds()},setPositionAt:function(i,e){if(!e||!this.points[i]){return}var T=eq.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 dT(eq.convertMC2LL(e.getSouthWest()),eq.convertMC2LL(e.getNorthEast()));i.setMinMax();return i},remove:function(){if(this.map){this.map.removeEventListener("onmousemove",this._graphMouseEvent);this.map.removeEventListener("onclick",this._graphClickEvent)}cV.prototype.remove.call(this);this._clearCache();var e=new bb("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;ed.load("poly",function(){e.addVertexs()},true)},disableEditing:function(){this._config.enableEditing=false;var e=this;ed.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){hZ=this.greatCirclePoints}var h0=this.getParseTolerance(e.getZoom(),e.config.coordType);if(!this.hasMultipleParts){var h3=hM(hZ,h0)}else{var h3=[];for(var T=0;T1&&this.srcSetObject["2x"]){return this.srcSetObject["2x"]}return this.imageUrl};hi.prototype.setPrintImageUrl=function(e){if(!e){return}this.printImageUrl=e};hi.prototype.setSize=function(e){if(!e){return}this.size=new ec(e.width,e.height);this._renderData=null};hi.prototype.setOffset=function(e){if(!e){return}this.anchor=this.offset=new ec(e.width,e.height);this._renderData=null};hi.prototype.setAnchor=function(e){this.setOffset(e)};hi.prototype.setImageOffset=function(e){if(!e){return}this.imageOffset=new ec(e.width,e.height);this._renderData=null};hi.prototype.setInfoWindowOffset=function(e){if(!e){return}this.infoWindowOffset=new ec(e.width,e.height)};hi.prototype.setImageSize=function(e){if(!e){return}this.imageSize=new ec(e.width,e.height)};hi.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};hi.prototype.toString=function(){return"Icon"};hi.prototype.generateRenderData=function(h0){var T=this.offset;var e=this.size;var h2=this.imageOffset;var h1=[];h1.push(-T.width,T.height-e.height,0);h1.push(e.width-T.width,T.height-e.height,0);h1.push(e.width-T.width,T.height,0);h1.push(-T.width,T.height-e.height,0);h1.push(e.width-T.width,T.height,0);h1.push(-T.width,T.height,0);if(h0!==0){for(var hZ=0;hZ730){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=e8.imgPath;this.overlay=null;var e=this;ed.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 eq.convertMC2LL(e)},getPoint:function(){var e=this.getPointIn();return eq.convertMC2LL(e)},getOffset:function(){return this._config.offset},dispose:function(){C.BaseClass.prototype.decontrol.call(this)},toString:function(){return"InfoWindow"}});c8.prototype.openInfoWindow=function(T,e){T.latLng=new c4(e.lat,e.lng);var i=eq.convertLL2MC(e);this.openInfoWindowIn(T,i)};c8.prototype.closeInfoWindow=function(){var e=this.temp.infoWin||this.temp._infoWin;if(e&&e.overlay){e.overlay.closeInfoWindow()}};c8.prototype.openInfoWindowIn=function(hY,e){if(!hY||hY.toString()!=="InfoWindow"||!e||e.toString()!=="Point"){return}var i=this.temp;if(!i.marker){var T=new hi(e8.imgPath+"blank.gif",{width:1,height:1});i.marker=new dr(e,{icon:T,width:1,height:1,offset:new ec(0,0),infoWindowOffset:new ec(0,0),clickable:false});i.marker._fromMap=1}else{i.marker.setPoint(e)}this.addOverlay(i.marker);i.marker.show();i.marker.openInfoWindow(hY)};cV.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)}};cV.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 aM(T,i){cV.call(this);this.content=T;this.map=null;this.domElement=null;this._config={width:0,offset:new ec(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;ed.load("marker",function(){e._draw()})}aM.inherits(cV,"Label");C.extend(aM.prototype,{setPoint:function(e){if(e&&e.toString()==="Point"&&!this.getMarker()){this.point=this._config.point=new hz(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 ec(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 fV(T,i){var hY={};for(var e in i){if(i.hasOwnProperty(e)){if(e==="position"){hY.point=eq.convertLL2MC(i[e]);this.latLng=new c4(i[e]["lat"],i[e]["lng"])}else{hY[e]=i[e]}}}aM.call(this,T,hY)}fV.inherits(aM,"LabelOut");C.extend(fV.prototype,{toString:function(){return"Label"},setPosition:function(e){this.latLng=new c4(e.lat,e.lng);var i=eq.convertLL2MC(e);this.setPoint(i)},getPosition:function(){return this.latLng;var e=this.getPositionIn();return eq.convertMC2LL(e)}});window.BMAP_ANIMATION_DROP=1;window.BMAP_ANIMATION_BOUNCE=2;function dr(e,i){cV.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 ec(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 hi(e8.imgPath+"marker_red.png",new ec(23,25),{offset:new ec(10,25),infoWindowOffset:new ec(10,0)})}this._isDragging=false;var T=this;ed.load("marker",function(){T._draw()})}dr.TOP_ZINDEX=bl.getZIndex(-90)+1000000;dr.DRAG_ZINDEX=dr.TOP_ZINDEX+1000000;dr._injectMethond=function(e){C.extend(dr.prototype,e)};dr.inherits(cV,"Marker");C.extend(dr.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 aM)){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 hz(e.lng,e.lat);this.latLng=eq.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 aC(e,T){this.latLng=new c4(e.lat,e.lng);var i=eq.convertLL2MC(e);dr.call(this,i,T)}aC.inherits(dr,"MarkerOut");C.extend(aC.prototype,{toString:function(){return"Marker"},setPosition:function(e){this.latLng=new c4(e.lat,e.lng);var i=eq.convertLL2MC(e);this.setPositionIn(i)},getPosition:function(){return this.latLng;var e=this.getPositionIn();return eq.convertMC2LL(e)},});window.BMAP_SHAPE_CIRCLE=1;window.BMAP_SHAPE_RECT=2;function bd(i,e,T){cV.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;fL(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 hi?T.icon:"";this._config.enableMassClear=T.enableMassClear||true;var hY=this;ed.load("marker",function(){hY._draw()})}bd.inherits(cV,"Marker3D");C.extend(bd.prototype,{setPoint:function(e){this.point=this._config.point=new hz(e.lng,e.lat);this.latLng=eq.convertMC2LL(e);var i=new bb("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 bb("onlineupdate");e.overlay=this;this.dispatchEvent(e)}});function cv(i,e,hY){this.latLng=new c4(i.lat,i.lng);var T=eq.convertLL2MC(i);bd.call(this,T,e,hY)}cv.inherits(bd,"Marker3d");C.extend(cv.prototype,{toString:function(){return"Marker3D"},setHeight:function(e){this._config.height=Number(e);this.draw();var i=new bb("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 hY=i.getCurrentImageUrl()!==e;this._config.icon=i;this.textureCoord=this.textureCoordGLMap=null;this.draw();var T=new bb("onstatus_change");T.overlay=this;T.action="setIcon";T.imageUrlChanged=hY;this.fire(T)}},getIcon:function(){return this._config.icon},setPosition:function(e){this.latLng=new c4(e.lat,e.lng);var i=eq.convertLL2MC(e);this.setPositionIn(i)},getPosition:function(){var e=this.getPositionIn();return eq.convertMC2LL(e)}});function a(T,e){w.call(this,e);this._normalizedBounds=new dT();this.setPoints(T);var i=this;ed.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<-c8.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c8.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c8.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c8.WORLD_SIZE_MC_HALF}},calcGreatCirclePoints:function(hY,T){var h0=hY.latLng;var hZ=T.latLng;if(h0.equals(hZ)){return}var e=eq.getDistance(dK(h0.lng),dK(h0.lat),dK(hZ.lng),dK(hZ.lat));if(e<250000){return}var h4=Math.round(e/150000);var h8=this.calcAngularDistance(h0,hZ);this.greatCirclePoints.push(hY);var h7=h0.lng;var h6=hY;for(var h1=0;h130037726){if(h5.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<-c8.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c8.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c8.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c8.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(hY,h0){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<-c8.WORLD_SIZE_MC_HALF||e._normalizedBounds.ne.lng>c8.WORLD_SIZE_MC_HALF){e._normalizedBounds.sw.lng=-c8.WORLD_SIZE_MC_HALF;e._normalizedBounds.ne.lng=c8.WORLD_SIZE_MC_HALF}}});function aQ(T,e){w.call(this,e);e=e||{};if(typeof e.fillOpacity==="number"){this._config.fillOpacity=e.fillOpacity}else{this._config.fillOpacity=0.6}fL(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;ed.load("poly",function(){i._draw()})}aQ.inherits(w,"Polygon");C.extend(aQ.prototype,{setPoints:function(h0){var hY=[];if(typeof h0==="string"||h0.length===1||h0[0] instanceof hz||h0[0] instanceof c4||this instanceof ge||h0.length===0){if(h0.length===1){h0=h0[0]}var e=this._processSinglePointArray(h0);this._userPoints=e.userPoints;hY=e.innerPoints;this.hasMultipleParts=false}else{this._userPoints=[];for(var hZ=0;hZ1&&!innerPoints[0].equals(innerPoints[innerPoints.length-1])){innerPoints.push(new hz(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 hz(e.lng,e.lat);this.points[i]=new hz(e.lng,e.lat);if(i===0&&!this.points[0].equals(this.points[this.points.length-1])){this.points[this.points.length-1]=new hz(e.lng,e.lat)}this._calcBounds()},setPositionAt:function(i,e){if(!this._userPoints[i]){return}var T=eq.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 hb(h3,h0){if(!h3||h3.length===0){return}var h2=[];if(typeof h3==="string"||h3[0] instanceof hz||h3[0] instanceof c4){var e=this._processSinglePointArray(h3);for(var h1=0;h11&&!innerPoints[0].equals(innerPoints[innerPoints.length-1])){innerPoints.push(new hz(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 hz(e.lng,e.lat);this.points[i]=new hz(e.lng,e.lat);if(i===0&&!this.points[0].equals(this.points[this.points.length-1])){this.points[this.points.length-1]=new hz(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 bb("onlineupdate");i.overlay=this;this.dispatchEvent(i)},getAltitude:function(){return this._config.altitude}});function cg(h2,h0,h3){if(!h2||h2.length===0){return}this.userPath=h2;var e=[];if(typeof h2==="string"||h2[0] instanceof hz||h2[0] instanceof c4){var h4=this._processSinglePointArray(h2);for(var hZ=0;hZ730){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=e8.imgPath;this.overlay=null;var e=this;ed.load("simpleInfowindow",function(){e._draw()})}hO.inherits(C.BaseClass,"SimpleInfoWindow");C.extend(hO.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"}});c8.prototype.openSimpleInfoWindow=function(hY,e){if(!hY||hY.toString()!="SimpleInfoWindow"||!e||e.toString()!="Point"){return}var i=this.temp;if(!i.marker){var T=new hi(e8.imgPath+"blank.gif",{width:1,height:1});i.marker=new dr(e,{icon:T,width:1,height:1,offset:new ec(0,0),infoWindowOffset:new ec(0,0),clickable:false});i.marker._fromMap=1}else{i.marker.setPoint(e)}this.addOverlay(i.marker);i.marker.show();i.marker.openSimpleInfoWindow(hY)};c8.prototype.closeSimpleInfoWindow=function(){var e=this.temp.infoWin||this.temp._infoWin;if(e&&e.overlay){e.overlay.closeSimpleInfoWindow()}};cV.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)}};cV.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 em(e,i){e=isNaN(e)?0:e;i=isNaN(i)?0:i;this.x=e;this.y=i}em.prototype.equals=function(e){if(!e){return false}return e.x===this.x&&e.y===this.y};em.prototype.clone=function(){return new em(this.x,this.y)};em.prototype.toString=function(){return"Pixel"};function ec(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}}ec.prototype.equals=function(e){return !!(e&&this.width===e.width&&this.height===e.height)};ec.prototype.toString=function(){return"Size"};var bH={B_NORMAL_MAP:{tileUrls:eu(e8.tileDomain,e8.rasterTilePath),vectorTileUrls:eu(e8.tileDomain,e8.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:e8.imgPath+"bg.png",bounds:new dT(new hz(-21364736,-11708041.66),new hz(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:e8.imgPath+"bg.png",bounds:new dT(new hz(-21364736,-10616832),new hz(23855104,15859712)),imgExtend:"png"},B_STREET_MAP:{tileUrls:eu(e8.tileDomain,e8.rasterTilePath),tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,zoomLevelBase:18,errorUrl:e8.imgPath+"bg.png",bounds:new dT(new hz(-21364736,-10616832),new hz(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:e8.imgPath+"blank.gif",bounds:new dT(new hz(-21364736,-10616832),new hz(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:e8.imgPath+"blank.gif",bounds:new dT(new hz(-21364736,-10616832),new hz(23855104,15859712)),imgExtend:"png"},B_NONE_MAP:{tileUrls:"",tileSize:256,baseUnits:256,zoomLevelMin:3,zoomLevelMax:19,minDataZoom:3,maxDataZoom:19,minZoom:3,maxZoom:19,zoomLevelBase:18,errorUrl:e8.imgPath+"bg.png",bounds:new dT(new hz(-21364736,-11708041.66),new hz(23855104,12474104.17)),imgExtend:"png"}};var b6=bH;function bT(h3,i,hZ,T,hY){this.mgr=h3;this.position=hZ;this._cbks=[];this.name=h3.getTileName(T,hY,h3.map.config.style);this.info=T;this._transparentPng=hY.isTransparentPng();var h4=S("img");dm(h4);h4.galleryImg=false;var h2=h4.style;h2.position="absolute";h2.width=h3.tileSize+"px";h2.height=h3.tileSize+"px";h2.left=hZ[0]+"px";h2.top=hZ[1]+"px";this.img=h4;this.src=i;if(ab&&hZ._offsetX===0){h2.opacity=0;h2.willChange="opacity"}var h1=this;this.img.onload=function(ic){if(!h1.mgr){return}var h7=h1.mgr;var h5=h7.bufferTiles;if(h7.bufferNumber>0){h5[h1.name]=h1;h5.push(h1.name)}var h9=h5.length-h7.bufferNumber;for(var ia=0;h9>0&&ia0&&this._transparentPng){this.img.src=e8.imgPath+"blank.gif"}else{this.img.src=this.src}};bT.prototype._callCbks=function(){var T=this;for(var e=0;e8);function fj(e){this.tileLayers=[];this.map=e;this.bufferNumber=300;this.mapTiles=[];this.bufferTiles=[];this.config=b6[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={}}bo.register(function(i){if(i._renderType==="webgl"){return}var e=i.tileMgr=new fj(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(fj.prototype,{addTileLayer:function(hY){var T=this;var i=hY.target;T.tileLayers.push(i);if(T.map.loaded){T.moveGridTiles()}},removeTileLayer:function(h5){var h6=this;var h3=h5.target;var h1=h3.mapType;var h0=h6.mapTiles;var h8=h6.bufferTiles;for(var T in h8){var hY=T.split("-")[1];if(hY==h1){delete h8[T]}}for(var T in h0){var hY=T.split("-")[1];if(hY==h1){delete h0[T]}}if(h6.zoomsDiv&&h6.zoomsDiv.parentNode){h6.zoomsDiv.parentNode.removeChild(h6.zoomsDiv);h6.zoomsDiv.innerHTML=""}var hZ=h6.map;if(hZ.deepZoom){var h7=hZ.deepZoom.preDeepZoomDiv;if(h7&&h7.parentNode){h7.parentNode.removeChild(h7)}}for(var h4=0,h2=h6.tileLayers.length;h4=1.5?2:1;this.normalUdt=aD("ditu","normal").udt;this.numLoading=0;this.useThumbData=false;this.useThumbData=this.opts.useThumbData||false;if(this.baseLayer){this.useThumbData=true}if(typeof this.opts.customLayer==="boolean"){this.customLayer=this.opts.customLayer}else{this.customLayer=true}}cR.inherits(eg,"TileLayer");C.extend(cR.prototype,{isTransparentPng:function(){return this.transparentPng},getTilesUrl:function(h5,e){var T=b6[this.mapType];if(typeof T!=="object"){return null}var hY=h5.x;var h6=h5.y;if(this.mapType!==BMAP_SATELLITE_MAP){var h6=d7.calcLoopParam(h6,e).col}var i="";if(this.opts.tileUrlTemplate){i=this.opts.tileUrlTemplate;i=i.replace(/\{X\}/,h6);i=i.replace(/\{Y\}/,hY);i=i.replace(/\{Z\}/,e)}else{if(this.mapType===BMAPGL_NORMAL_MAP){var h4=this.isCanvasMap?0:1;var h0=T.tileUrls[Math.abs(h6+hY)%T.tileUrls.length];if(window.offLineIPAddress){h0=window.offLineIPAddress+"tile5/"}var hZ=this.map.config.style;i=h0+"?qt=vtile&x="+hY+"&y="+h6+"&z="+e+(hZ==="default"?"":("&styleId=1"))+"&styles=pl&udt="+this.normalUdt+"&scaler="+this.scaler+"&showtext="+h4;i=i.replace(/-(\d+)/gi,"M$1")}if(this.mapType===BMAP_SATELLITE_MAP){var h1=aD("ditu","satellite");var h3=h1.ver;var h2=h1.udt;i=T.tileUrls[Math.abs(h6+hY)%T.tileUrls.length]+"u=x="+hY+";y="+h6+";z="+e+";v="+h3+";type=sate&fm=46&udt="+h2;i=i.replace(/-(\d+)/gi,"M$1")}}return i},initialize:function(h0){this.map=h0;if(h0._renderType==="webgl"){var hZ=null;if(this.customLayer!==false){hZ=this.getTilesUrl}C.extend(this,fY);this.labelProcessor=new dj(this);this.callbackDataQueue=[];if(hZ){this.getTilesUrl=hZ}var i=this;h0.on("indoor_data_refresh",function(h1){if(!i.baseLayer){return}i._refreshIndoorData(h1.uid,h1.floor)});h0.on("custom_labels_ready",function(h1){if(!i.baseLayer){return}i._doWorkAfterLabelImageLoad(h1.virtualTile,h1.labelCanvas,null,h1.imgKey)});h0.on("glmoduleloaded",function(){if(!i.baseLayer){return}i.updateAllIconsTextureCoords()})}if(!h0.temp.layerZIndex){h0.temp.layerZIndex=0}this.zIndex=this.zIndex||0;if(this.baseLayer){this.zIndex=0}this.adjustZIndex();if(!h0.temp.layid){h0.temp.layid=0}if(!this.opts.mapType){this.mapType="BMAP_CUSTOM_LAYER_"+h0.temp.layid;h0.temp.layid++}else{this.mapType=this.opts.mapType}var T=b6[this.mapType];if(!T){b6[this.mapType]={tileUrls:[],tileSize:256,baseUnits:256,zoomLevelMin:1,zoomLevelMax:19,minZoom:3,maxZoom:19,minDataZoom:3,maxDataZoom:19,zoomLevelBase:18,errorUrl:e8.imgPath+"/blank.gif",bounds:new dT(new hz(-21364736,-10616832),new hz(23855104,15859712)),imgExtend:"png"}}if(h0._renderType!=="webgl"){var hY=dI(h0.platform,'
');hY.style.display="";hY.style.left=Math.ceil(-h0.offsetX+h0.width/2)+"px";hY.style.top=Math.ceil(-h0.offsetY+h0.height/2)+"px";this.tilesDiv=hY}this.isCanvasMap=h0.isCanvasMap();this.lastZoom=h0.getZoom();var e=this;this.addEventListener("initDrawData",function(h1){if(e.opts.boundary){e.addBoundary(e.opts.boundary)}})},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},adjustZIndex:function(){if(this.map&&this.map._featureMgr){var e=this.map._featureMgr.result.bkData;while(e[this.zIndex]){this.zIndex+=1}}},setZIndex:function(e){this.setTargetZIndex(e)},setTargetZIndex:function(e){this.zIndex=e;this.drawIndex=e;if(this.tilesDiv){this.tilesDiv.style.zIndex=e}},calcLoopParam:function(e,i){return d7.calcLoopParam(e,i)},addBoundary:function(h0){if(!h0||!this.map){return}if(typeof h0==="string"){h0=[h0]}for(var hY=0;hY-1;hZ--){var h0={};T=hY.children[hZ].style;h0.top=parseInt(T.top,10);h0.left=parseInt(T.left,10);this._zoomAniInfo[hZ]=h0}},prepareLabelLayer:function(){var hZ=this._map;if(this._enableCanvas2dMap&&hZ.canvas2dMapMgr){if(this.touchZoomLabelCanvas){this.touchZoomLabelCanvas.parentNode.removeChild(this.touchZoomLabelCanvas)}var i=hZ.canvas2dMapMgr._labelCanvas;this.touchZoomLabelCanvas=i.cloneNode(false);var e=this.touchZoomLabelCanvas.getContext("2d");e.drawImage(i,0,0);hZ.platform.insertBefore(this.touchZoomLabelCanvas,hZ.platform.firstChild);var hY=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-(hZ.offsetX+hY))+"px "+(this._fixPosition.y-(hZ.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 hY=this._map;if(hY.getRenderType()==="dom"){if(hY.overlayDiv){hY.overlayDiv.style.visibility="hidden"}if(hY.overlayDivEx){hY.overlayDivEx.style.visibility="hidden"}}var h0=hY.tileMgr.tileLayers;var hZ;for(var T=0,e=h0.length;T-1;h7--){var h5=this._zoomAniInfo[h7];h6=hY.children[h7].style;var hZ=h5.left-h2.x;var T=h5.top-h2.y;h5.dx=hZ*e-hZ;h5.dy=T*e-T;h5.preDx=hZ-hZ;h5.preDy=T-T;ie=h5.preDx+(h5.dx-h5.preDx);h3=h5.preDy+(h5.dy-h5.preDy)+h4;h6.left=h5.left+ie+"px";h6.top=h5.top+h3+"px";h6.width=h6.height=256*e+"px"}if(this._enableCanvas2dMap){var id=!ic._isIE9?"translate3d(0px, "+h4+"px, 0) scale("+e+")":"translate(0px, "+h4+"px) scale("+e+")";this.touchZoomLabelCanvas.style[h9]=id}},setZoomFinish:function(){this._animationDiv=null},startAnimation:function(h1){this.prepareLayer();this.hideNonAnimationLayers();var il=this._map;if(this.touchZoomLabelCanvas){this.touchZoomLabelCanvas.style.display="none"}h1=h1||{};var ij=h1.zoomCount||0;var h6=h1.fixPosition;var ih=h1.fixMCPosition;var h4=h1.pixOffset;this._zoomCount=ij;var hY=il.getZoom();var ik=hY+ij;var e=il.config.enableContinuousZoom;var ia=0.5;var h5=5;var T=Math.pow(2,ij);var io=this._baseLayerDiv;var h7={x:h6.x-parseInt(io.style.left,10)-il.offsetX,y:h6.y-parseInt(io.style.top,10)-il.offsetY};var h2=this._animationDiv;var ie=h2.children.length;var iq=this._preZoomTimes;var ii=[];var ig=this._transformStyleName;var h3=this._transformOriginStyleName;for(var id=ie-1;id>-1;id--){var ib={};var ic=h2.children[id].style;ib.top=parseInt(ic.top,10);ib.left=parseInt(ic.left,10);var h0=ib.left-h7.x;var hZ=ib.top-h7.y;ib.dx=h0*T-h0;ib.dy=hZ*T-hZ;ib.preDx=h0*iq-h0;ib.preDy=hZ*iq-hZ;ii[id]=ib}var im=this;var h9;var ip;var h8;this._zoomAni=new o({fps:60,duration:e?500:1,transition:function(i){i=i*h5/(2*ia);return h5*i-ia*i*i},render:function(iA){iA=iA*(4*ia)/(h5*h5);h9=iq+iA*(T-iq);var it=hY+eH(h9);var iy=null;var ix=0;var iB=0;if(h1.onAnimationBeforeLooping){var iC=h1.onAnimationBeforeLooping(iA,it);iy=iC.loopingCenter;ix=iC.yDiff;iB=iC.totalYDiff}for(var iu=ii.length-1;iu>-1;iu--){var iv=ii[iu];if(h2.children[iu]){var iz=h2.children[iu].style;ip=iv.preDx+(iv.dx-iv.preDx)*iA-h4.width*iA;h8=iv.preDy+(iv.dy-iv.preDy)*iA-h4.height*iA+ix;iz.left=iv.left+ip+"px";iz.top=iv.top+h8+"px";iz.height=iz.width=256*h9+"px"}}var ir=h4.width*iA;var iw=h4.height*iA;if(il.isRestrict){im._enableCanvas2dMap&&im._canvas2dMapMgr.clearLabel()}else{im._enableCanvas2dMap&&im._canvas2dMapMgr.drawLabel(h9,h6,hY,ik,ij,iA,ir,iw,iB,ix)}im._preZoomTimes=h9;im._preRenderTick=iA;h1.onAnimationLooping&&h1.onAnimationLooping(iA,it,iy)},finish:function(){im._preZoomTimes=1;im._zoomAni=null;im._animationDiv=null;h1.onAnimationFinish&&h1.onAnimationFinish();im.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(ib){var ia=ib.textImg;var T=ib.textPos;var h8=this.ratio;var h6=this.sizeRatio/h8;var hZ=this._colorCtx;var h3=this._colorCvsSize;hZ.clearRect(0,0,h3,h3);var h5=0;var e=0;var h2=0;for(var h4=0;h4h5){h5=T[h4].width;e=h4;h2=T[h4].drawX}}h5/=h6;var h7=0;for(var h4=0,h1=T.length;h4h5){h5=h9.width/h6}h7+=h9.height/h6+2*h8}var hY=hZ.getImageData(0,0,h5,h7);var h0=hZ.getImageData(0,0,h5,h7);return[hY,h0]},_bindEvent:function(i){var e=this,T=i._map;T.addEventListener("onspotmouseover",function(h1){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(h1.spots.length>0){var h0=h1.spots[0].userdata.uid;var hZ=h1.spots[0].userdata.name;var hY=e.findLabelByUid(h0,hZ);hY&&e._toHighLightColor(hY)}});T.addEventListener("onspotmouseout",function(h1){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(h1.spots.length>0){var h0=h1.spots[0].userdata.uid;var hZ=h1.spots[0].userdata.name;var hY=e.findLabelByUid(h0,hZ);hY&&e._toDefaultColor(hY)}});T.addEventListener("onspotclick",function(h1){if(!this.isCanvasMap()||!this.temp.isPermitSpotOver){return}if(h1.spots&&h1.spots.length>0){var h0=h1.spots[0].userdata.uid;var hZ=h1.spots[0].userdata.name;var hY=e.findLabelByUid(h0,hZ);hY&&e._changeBaseMapState(hY)}else{e._recoverNormalState()}});T.on("spot_status_reset",function(){e._recoverNormalState()});T.on("spot_highlight",function(hZ){var hY=e.findLabelByUid(hZ.uid);hY&&e._changeBaseMapState(hY)})},_getTextBound:function(h9){if(!h9.textPos){return null}var h7=this.ratio;var h5=this.sizeRatio/h7;var T=h9.textPos;var h8=h9.baseDrawX;var h6=h9.baseDrawY;var h3=h8*h7+(T[0].drawX-h8)/h5;var h1=h6*h7+(T[0].drawY-h6)/h5;var hZ=h3+T[0].width/h5;var e=h1+T[0].height/h5;for(var h4=0,h2=T.length;h4hZ){hZ=h0+ia.width}if(hY+ia.height>e){e=hY+ia.height}}return[h3,h1,hZ,e]},_toHighLightColor:function(T){if(T._tempRank&&T._tempRank==this.RANK5){return}var h2=this._getTextBound(T);if(!h2){return}var hY=Math.round(h2[0]);var i=Math.round(h2[1]);var e=this.getLabelImageData(T);var h0=e[0];var hZ=e[1];var h1=this._canvas2dMapMgr.getFilterImageData(h0,this.RANK5);T._oldImgData=hZ;this._labelCtx.putImageData(h1,hY,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(hY){var T=this._canvas2dMapMgr;var i=hY.guid;var e=hY.guidExt;var hZ={guid:i,name:hY.name,guidExt:e};T._labelStrategy.setStrategyInfo(hZ);T._loadData()},_recoverNormalState:function(){var e=this._canvas2dMapMgr;e._labelStrategy.setStrategyInfo(null);e._loadData()},findLabelByUid:function(h0,hY){var h2=this._canvas2dMapMgr,e=h2._computedLabel;for(var hZ=0,T=e.length;hZi5){i5=i8.drawX+i8.width}if(i8.drawY+i8.height>i4){i4=i8.drawY+i8.height}}}}}else{h6.tileX=hY;h6.tileY=T;id=hY+h6.minXOriginal;ib=T+h6.minYOriginal;i5=hY+h6.maxXOriginal;i4=T+h6.maxYOriginal}if(id!=undefined){var iX=iU+(id-iU)/iN;var iW=iT+(ib-iT)/iN;var iz=iU+(i5-iU)/iN;var ix=iT+(i4-iT)/iN;h6.minX=iX;h6.minY=iW;h6.maxX=iz;h6.maxY=ix;var i1=(iX+iz)/2,i0=(iW+ix)/2,iI=ic+(i1-iY/2)*ih,iG=ia+(iH/2-i0)*ih;h6.geoX=iI;h6.geoY=iG;iB.push(h6)}}}if(jc){for(var iy=0,iu=jc.length;iyi5){i5=im+iZ.width}if(h9+iZ.height>i4){i4=h9+iZ.height}if(ig.length===2){var il=ig[1];var ij=iU+il.destX;var h8=iT+il.destY;if(h8i5){i5=ij+il.width}if(h8+il.height>i4){i4=h8+il.height}}iQ._tempBounds=[id,ib,i5,i4];var iF=h7.iconPos;var h1=iF.geoX;var hZ=iF.geoY;var iU=(h1-ic)/ih+iY/2;var iT=(ia-hZ)/ih+iH/2;var id=iU+iF.destX;var ib=iT+iF.destY;var i5=id+iF.width;var i4=ib+iF.height;h7.textPos=h7.textPos||h7._textPos;var ig=h7.textPos;var iZ=ig[0];var im=iU+iZ.destX;var h9=iT+iZ.destY;if(imi4){i4=h9+iZ.height}if(ig.length===2){var il=ig[1];var ij=iU+il.destX;var h8=iT+il.destY;if(iji4){i4=h8+il.height}}h7._tempBounds=[id,ib,i5,i4]}for(var iy=0,iu=jc.length;iyja[2]||i6[3]ja[3])){ie++;if(iC.textPos){iC._textPos=iC.textPos;delete iC.textPos}}var ja=jb._tempBounds;if(!(i6[2]ja[2]||i6[3]ja[3])){ie++;if(jb.textPos){jb._textPos=jb.textPos;delete jb.textPos}}if(ie>=2){if(i2.textPos){i2._textPos=i2.textPos;delete i2.textPos}}}}for(var iy=0,iu=jc.length;iyi5){i5=iZ.drawX+iZ.width}if(iZ.drawY+iZ.height>i4){i4=iZ.drawY+iZ.height}if(ig.length===2){var il=ig[1];il.drawX=iU+il.destX;il.drawY=iT+il.destY;if(il.drawXi5){i5=il.drawX+il.width}if(il.drawY+il.height>i4){i4=il.drawY+il.height}}}var iX=iU+(id-iU)/iN;var iW=iT+(ib-iT)/iN;var iz=iU+(i5-iU)/iN;var ix=iT+(i4-iT)/iN;iD.minX=iX;iD.minY=iW;iD.maxX=iz;iD.maxY=ix;var iP=(iX+iz)/2;var iO=(iW+ix)/2;var h2=ic+(iP-iY/2)*ih;var h0=ia+(iH/2-iO)*ih;iD.geoX=h2;iD.geoY=h0;iB.push(iD)}}var iR=this._strategyInfo;if(iR){var iA=iR.guid;var iJ=iR.name;var ip=iR.guidExt;for(var iy=0,iu=iB.length;iyiE.maxX-iw||i2.maxY-iwiE.maxY-iw)){i2.arrIntersectIndex.push(iv)}}}for(var iy=0,iu=iB.length;iyh3){var T=h1.splice(0,h0);for(var h4=0,h2=T.length;h40){this.isDrawText=true}},_loadLabelData:function(h7,h6,h5,T,h8,e){var h0=h7.toString();var hY=h6.toString();var h2="cbk_"+h0.replace("-","_")+"_"+hY.replace("-","__")+"_"+Math.floor(h5);var ic=eF+"."+h2;var ib=this._labelDataUrls;var h4=Math.abs(h7+h6)%ib.length;var ii=ib[h4];if(window.offLineIPAddress){ii=window.offLineIPAddress+"pvd/"}var i=this.labelStyleParam;var ia="?qt=vtile";var id="";if(this._map.config.style!=="default"){id="&styleId=1"}var h9="x={x}&y={y}&z={z}&udt={udt}&v={v}&styles={styles}"+id+"&textonly=1&textimg=1&scaler={scaler}&fn="+encodeURIComponent(ic);var ie=d7.calcLoopParam(h7,h5).col;var h3=this.ratio>1?2:1;var h1=h9.replace(/{x}/,ie).replace(/{y}/,h6).replace(/{z}/,Math.floor(h5)).replace(/{styles}/,i).replace(/{udt}/,this._udt).replace(/{v}/,this._version).replace(/{scaler}/,h3);var hZ=ii+ia+"¶m="+window.encodeURIComponent(gr(h1));var ih=this;var ig=ih._map;bo[h2]=function(ij){ih._vectorDrawLib.parseLabelData(ij,h7,h6,h5,T,h8,function(ip){var il=ig.getCenterIn();var iq=ig.getZoom();var it="viewKey_"+Math.floor(il.lng)+"_"+Math.floor(il.lat)+"_"+iq;ih._labelCount--;var iu=ih._getCache(h7,h6,h5,T).updateLabelCounter;ih._labelCount-=iu;var im=ih._curViewLabels;if(it===e||(ih._labelCount<0&&iq===h5)){im.push(ip)}if(it===e){ih.statResponseCount++}if(ih._labelCount<=0){var ik=(new Date()).getTime();ih.updateLabel();var io=(new Date()).getTime();var ir=new bb("oncanvasmaploaded");ir.drawTime=io-ik;if(ih.statResponseCount===ih.statRequestCount){ir.isAllLoadedDrawing=true}ig.dispatchEvent(ir)}ih._setCacheValue(h7,h6,h5,T,ip);delete bo[h2]})};ht.load(hZ)},drawLabel:function(T,hY,h5,i,h3,hZ,e,h0,h4,h1){var h2=this;if(!h2._computedLabel){return}if(h2._computedLabel._zoom!==h5){h2.clearLabel();return}h2._map.temp.isPermitSpotOver=false;h2.clearLabel();h2._vectorDrawLib.zoomingIconAndText(this._labelCtx,h2._computedLabel,T,hY,i,h3,hZ,e,h0,h4,h1)},_addSpotData:function(){this._spotData=[];var h5=this._map.getZoom();for(var h0=0,hZ=this._computedLabel.length;h0h5)){continue}var h1=[];h1[0]=(h2.minX-h2.maxX)/2;h1[1]=(h2.minY-h2.maxY)/2;h1[2]=(h2.maxX-h2.minX)/2;h1[3]=(h2.maxY-h2.minY)/2;var hY=null;if(h2.iconPos){hY=new hz(h2.iconPos.geoX,h2.iconPos.geoY)}var T=h2.name?h2.name.replace("\\\\","
"):"";if(h2.iconPos&&h2.iconPos.iconType.indexOf("ditie")>-1&&this._map.getZoom()>14){T=""}var h4={n:T,pt:new hz(h2.geoX,h2.geoY),userdata:{iconPoint:hY,uid:h2.guid,name:T,type:h2.iconPos?h2.iconPos.iconType:"",iconImg:h2.iconImg,mapPoi:true,adver_log:h2.adver_log||""},bd:h1,tag:"MAP_SPOT_INFO"};this._spotData.push(h4)}var h3=new bb("onspotsdataready");h3.spots=this._spotData;this._map._spotDataOnCanvas=this._spotData;this._map.dispatchEvent(h3)},isClickableLabel:function(e){if(e.isDel||(!e.guid&&!e.name)){return false}return true},getFilterImageData:function(T,h1){var h2=T.data,h0=this._labelStrategy,h1=parseInt(h1);for(var h3=0,hZ=h2.length;h30&&!h6){continue}var ia=Math.round(ik[0]/100);var h9=Math.round(ik[1]/100);var io={lng:ih+ia,lat:ig-(id*h3-h9)};var h1=ia/h3;var h0=id-h9/h3;var ie=ik[7]||"";var iu=ik[5];var ii={type:"fixed",name:ie,textImg:ic,rank:ik[4],baseX:h1,baseY:h0,iconPos:null,textPos:null,guid:ik[3]||"",tracer:ip,direction:iu,startScale:3};if((iu!==dY&&h6||!h6)&&it!==null){ii.iconPos=this._getIconPosition(it,h5,h1,h0,io);if(ii.iconPos){T=ii.iconPos.width;ib=ii.iconPos.height}}if(T===0){ii.direction=dY}if(h6){ii.textPos=this._getTextDrawData(ik,h1,h0,T,ib)}if(ii.textPos||ii.iconPos){ij.push(ii)}}}},_isVisible:function(e,i){var hY;if(!this._binaryCache[e]){hY=e.toString(2);if(hY.length<8){hY=new Array(8-hY.length+1).join("0")+hY}this._binaryCache[e]=hY}hY=this._binaryCache[e];var T=I[i].start;return hY[i-T]==="1"},_getIconPosition:function(h2,h0,T,i,e){var hY=this._map.config.style;var h3=bo["iconSetInfo"+hY][h2];if(!h3){if(h2.charCodeAt(0)>=48&&h2.charCodeAt(0)<=57){h3=bo["iconSetInfo"+hY]["_"+h2]}}if(!h3){return null}var hZ=h3[0];var h1=h3[1];hZ=hZ*h0;h1=h1*h0;return{srcX:0,srcY:0,destX:T-hZ/2,destY:i-h1/2,width:hZ,height:h1,geoX:e.lng,geoY:e.lat,mcPt:e,iconType:h2}},_getTextDrawData:function(h9,h8,h7,hY,h5){var ie=h9[5];if(typeof ie!=="number"){ie=0}var h3=this.ratio;var h2=h3/2;hY*=h2;h5*=h2;var h4=h9[12];var hZ=h4.length;var ii=0;var ih=0;var id=[];var ic=0;var ig=0;for(var ib=0;ib0&&e>0){id.push({srcX:h0,srcY:i,destX:ii,destY:ih,width:T,height:e})}}if(id.length>0){return id}return null},_getLineLabelInfo:function(h6,hY,hZ,im,iB,id,ik,ij,il,ic){if(h6.length!==10){return}var ip=this.ratio;var T=this.ratio;var ix=h6[7].length;var ie=h6[1];var iz=h6[3];var iF=h6[8];var h2=h6[4];var e=2;var h0=h2.slice(0,e);for(var iC=e;iCia){ia=iJ+h1}if(iI+h4>h9){h9=iI+h4}}ig.push({angle:h8,srcX:h3,srcY:h5,destX:iJ,destY:iI,width:h1,height:h4})}var iy={type:"line",textImg:hY,rank:ie,baseX:iv,baseY:it,arrWordPos:ig,minXOriginal:iq,minYOriginal:io,maxXOriginal:ia,maxYOriginal:h9,text:""};ic.push(iy)}},alterColor:function(h1,e,h0){var T=this._colorCtx,i=this._canvas2dMapMgr;T.clearRect(0,0,h1.width,h1.height);T.drawImage(e,h1.srcX,h1.srcY,h1.width,h1.height,0,0,h1.width,h1.height);var hZ=T.getImageData(0,0,h1.width,h1.height),hY=i.getFilterImageData(hZ,h0);T.putImageData(hY,0,0)},drawIconAndText:function(id,ic,e){var h4=this.ratio;var h2=this.sizeRatio/h4;var h6=2/h4;var iq=this;for(var ih=0,ie=ic.length;ih10&&ik<350){id.save();var io=Math.round(ir+ij.width/2);var im=Math.round(ip+ij.height/2);id.translate(io,im);id.rotate(-ik/180*Math.PI);id.drawImage(ia,ij.srcX,ij.srcY,ij.width,ij.height,-Math.round(ij.width/2),-Math.round(ij.height/2),ij.width/h2,ij.height/h2);id.restore()}else{id.drawImage(ia,ij.srcX,ij.srcY,ij.width,ij.height,ir,ip,ij.width/h2,ij.height/h2)}}}}}},isCollide:function(h0,h9,h8,e,h2,T,h4){for(var hZ=0,hY=T.length;hZh3[1]+h3[3]+h7||h8+h2h3[2]+h3[4]+h6)){return true}}}return false},zoomingIconAndText:function(iq,ij,hY,io,ip,iS,iy,h6,iE,ix,ig){var iT=this.ratio;var h7=this.sizeRatio/iT;var iU=2/iT;var i4=iT/2;var iO=io.x;var iN=io.y;var ir=2*iT;if(ig!==0){iN+=ix}var ia=undefined,h3=undefined,h0=undefined,h5=undefined,ie=undefined;var iD=iS>0?true:false;if(!iD){ia=[];var iH=1-iy}for(var i0=0,iY=ij.length;i010&&im<350){var iQ=iJ+iR.width/2;var iP=iI+iR.height/2;var hZ=im/180*Math.PI;var iv=Math.cos(hZ);var ib=Math.sin(hZ);var iG=iv;var ic=iv;var iF=ib;var id=-ib;var il=iQ-iQ*iv-iP*ib;var e=iP+iQ*ib-iP*iv;iq.save();iq.transform(iG,id,iF,ic,il,e);iq.drawImage(h1,iR.srcX,iR.srcY,h5,ie,h3,h0,h5/h7,ie/h7);iq.restore()}else{iq.drawImage(h1,iR.srcX,iR.srcY,h5,ie,h3,h0,h5/h7,ie/h7)}!iD&&ia.push([i0,h3,h0,h5,ie])}}iq.restore()}}}});function gT(e){this.initVars(e)}C.extend(gT.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(h0,h4){var h2=this;this.bizData=h0;this.objTextsPng=null;this.arrIconsPng=null;var T=h0.textsPng;var h6=h0.iconsPng;if(!T||!h6){return}var h3=new Image();h3.onload=function(){h2.objTextsPng=this;h2.calcIconAndTextInfo(h4);this.onload=null};h3.src=this.base64Prefix+T;var h5=h6.length;var e=[];for(var hZ=0;hZh2.width||i>h2.height)&&(e>h2.width||h6>h2.height)){return false}return true},_setPlatformPosition:function(h5,h4,h7){h7=h7||{};if(h5===0&&h4===0&&!h7.point){return}if(isNaN(h7.initMapOffsetX)){h7.initMapOffsetX=this.offsetX}if(isNaN(h7.initMapOffsetY)){h7.initMapOffsetY=this.offsetY}var h1=dK(this._heading);if(this._tilt>0){h4=h4/Math.cos(dK(this._tilt))}var h6=h5*Math.cos(h1)+h4*Math.sin(h1);var h3=-h5*Math.sin(h1)+h4*Math.cos(h1);h6=h6+h7.initMapOffsetX;h3=h3+h7.initMapOffsetY;if(h7.point){var i=this.restrictCenter(h7.point);if(!i.equals(this.centerPoint)){this.centerPoint=i.clone();this.fire(new bb("oncenter_changed"))}}else{var hY=this.offsetX-h6;var e=this.offsetY-h3;var h2=this.centerPoint.lng;var h0=this.centerPoint.lat;var hZ=new hz(h2,h0);var T=this.getZoomUnits();this.centerPoint=this.restrictCenter(new hz(hZ.lng+hY*T,hZ.lat-e*T),T);this.fire(new bb("oncenter_changed"))}this.offsetX=h6;this.offsetY=h3;this.dispatchEvent(new bb("onmoving"))},restrictCenter:function(hY,hZ){if(this.config.restrictCenter===false){return hY}hZ=hZ||this.getZoomUnits();var T=this.pixelToPointIn(new em(0,0),{center:hY});var i=this.pixelToPointIn(new em(0,this.height),{center:hY});if(this.zoomLevel<5){if(T.lat>c8.MAX_LAT&&i.latc8.MAX_LAT){hY.lat=c8.MAX_LAT-this.height/2*hZ}else{if(i.lathZ){this._tilt=hZ}if(h9){if(this._heading%360!==0||this._tilt>0){var i=this._webglMapCamera.fromScreenPixelToMC(T.x,T.y,{center:h2,zoom:this.zoomLevel});if(i){var h6=i.sub(h1);var hY=h2.sub(h6);this.centerPoint=this.restrictCenter(hY)}}else{var h3=this.getZoomUnits();var hY=new hz(h9.lng-h3*(T.x-this.width/2),h9.lat+h3*(T.y-this.height/2));this.centerPoint=this.restrictCenter(hY,h3)}this.fire(new bb("oncenter_changed"))}this._checkFireZoomend();ia.callback&&ia.callback();return}this._animationInfo.zoom={current:this.zoomLevel,diff:e-this.zoomLevel,target:e};var h7=this;h7._checkFireZoomend();var h8=this._tilt;if(this.fixPoint||h8>c8.MAX_DRAG_TILT_L2){ia.renderCallback=function(){var ie=h7.getCurrentMaxTilt();if(h7._tilt>ie){h7._tilt=ie}var ig=h7.fixPixel;if(!h7.fixPixel||!h7.fixPoint){return}var ib=h7.fixPixel;var im=h7.fixPoint;var ij=h7.fixCenter;var ih=h7.mousePosMCPoint;if(h7._heading%360!==0||h7._tilt>0){var ic=h7._webglMapCamera.fromScreenPixelToMC(ib.x,ib.y,{center:ij,zoom:h7.zoomLevel,tilt:h7._tilt});if(ic){var il=ic.sub(ih);var id=ij.sub(il);h7.centerPoint=h7.restrictCenter(id)}}else{var ii=ib;var ik=h7.getZoomUnits();var id=new hz(im.lng-ik*(ii.x-h7.width/2),im.lat+ik*(ii.y-h7.height/2));h7.centerPoint=h7.restrictCenter(id,ik)}h7.fire(new bb("oncenter_changed"))}}if(ia.fromMouseWheel===true){this._startInfiniteZoomAnimation(ia);ia.callback&&ia.callback();return}this._startAnimation(ia)},_checkFireZoomend:function(){var e=this;if(e.fireZoomendTimer){clearTimeout(e.fireZoomendTimer)}e.fireZoomendTimer=setTimeout(function(){if(e.zoomEventStatus==="zooming"){e.fire(new bb("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,iv,id){id=id||{};var hZ=this._getProperZoom(iv);iv=hZ.zoom;if(this.centerPoint.equals(T)&&this.zoomLevel===iv&&typeof id.heading!=="number"&&typeof id.tilt!=="number"){return}var e=this.getHeading()%360;var h5=this.getTilt();var ib=0;var ig=0;var h8=this.getBounds().containsPoint(T);if(typeof id.heading==="number"){ib=id.heading}else{if(h8){ib=e}}if(typeof id.tilt==="number"){ig=id.tilt}else{if(h8){ig=h5}}this._heading=e;var ir=ib-e;var im=ig-h5;var h9=this;var h1=this.zoomLevel;var h2=1.42;var ii=this.zoomScale(iv-h1);var ix=this.getZoomUnits();var h7=this.centerPoint.div(ix);var iy=T.div(ix);var iq=this.worldSize();var il=h2;var ik=Math.max(this.width,this.height);var ij=ik/ii;var h6=iy.sub(h7).mag();var i=il*il;function iu(iA){var iz=(ij*ij-ik*ik+(iA?-1:1)*i*i*h6*h6)/(2*(iA?ij:ik)*i*h6);return Math.log(Math.sqrt(iz*iz+1)-iz)}function hY(iz){return(Math.exp(iz)-Math.exp(-iz))/2}function h3(iz){return(Math.exp(iz)+Math.exp(-iz))/2}function ic(iz){return hY(iz)/h3(iz)}var h4=iu(0);var io=function(iz){return(h3(h4)/h3(h4+il*iz))};var ip=function(iz){return ik*((h3(h4)*ic(h4+il*iz)-hY(h4))/i)/h6};var h0=(iu(1)-h4)/il;if(Math.abs(h6)<0.000001||h0===Infinity||isNaN(h0)){if(Math.abs(ik-ij)<0.000001){this._animationInfo.zoom={current:this.zoomLevel,diff:iv-this.zoomLevel};this._animationInfo.center={current:this.centerPoint,diff:T.sub(this.centerPoint)};this._animationInfo.heading={current:e,diff:ib-e};this._animationInfo.tilt={current:h5,diff:ig-h5};this.setLock(true);this._startAnimation({callback:function(iz){h9.setLock(false);if(id.callback){id.callback(iz)}},duration:id.duration});return}var iw=ij5){it=(h0-5)/2+it}}var ie=id.duration||1000*h0/it;if(isNaN(ie)){var ih={};for(var ia in id){ih[ia]=id[ia];ih.noAnimation=true}this.centerAndZoomIn(T,iv,ih);return}this.fire(new bb("onmovestart"));this.fire(new bb("onzoomstart"));this.setLock(true);this._startAnimation({duration:ie,renderCallback:function(iz,iA){var iB=iz*h0;var iE=ip(iB);var iD=h1+h9.scaleZoom(1/io(iB));if(iDh9.getMaxZoom()){iD=h9.getMaxZoom()}if(iD!==h9.zoomLevel){h9.zoomLevel=iD;h9.fire(new bb("onzoom_changed"))}h9.centerPoint=h7.add(iy.sub(h7).mult(iE)).mult(ix);h9.fire(new bb("oncenter_changed"));if(typeof ib==="number"){var iC=iz/0.7;if(iC>1){iC=1}h9.setHeading(e+ir*iz,{noAnimation:true})}if(typeof ig==="number"){h9.setTilt(h5+im*iz,{noAnimation:true})}},callback:function(iz,iA){h9.setLock(false);if(iA&&iA.stop===true){h9.fire(new bb("onmoveend"));h9.fire(new bb("onzoomend"));id.callback&&id.callback(iz);return}if(iv!==h9.zoomLevel){h9.zoomLevel=iv;h9.fire(new bb("onzoom_changed"))}h9.fire(new bb("onmoveend"));h9.fire(new bb("onzoomend"));id.callback&&id.callback(iz)}})},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 hY=this.pointToPixelIn(i);var e=Math.round(this.width/2);var h0=Math.round(this.height/2);var hZ=this._ifUseAnimation(i,this.zoomLevel);if(T.noAnimation===true||hZ===false){this._stopAllAnimations();this._panToIn(e-hY.x,h0-hY.y,i);T.callback&&T.callback();return}this.flyToIn(i,this.zoomLevel,T)},_panToIn:function(i,e,hY){var T=this.temp;if(T.operating===true){return}if(T.dragAni){T.dragAni.stop(false,{readyToMove:true});T.dragAni=null}this.dispatchEvent(new bb("onmovestart"));this._setPlatformPosition(i,e,{point:hY});this.dispatchEvent(new bb("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,hZ){if(this.temp.operating===true){return}hZ=hZ||{};this.dispatchEvent(new bb("onmovestart"));var hY=this;var T=hY.temp;T.pl=hY.offsetX;T.pt=hY.offsetY;if(T.tlPan){T.tlPan.cancel()}if(T.dragAni){T.dragAni.stop(false,{readyToMove:true});T.dragAni=null}T.tlPan=new o({fps:hZ.fps||hY.config.fps,duration:hZ.duration||hY.config.actionDuration,transition:hZ.transition||cn.easeInOutQuad,render:function(h0){this.terminative=hY.temp.operating;if(hY.temp.operating){return}hY._setPlatformPosition(i*h0,e*h0,{initMapOffsetX:T.pl,initMapOffsetY:T.pt})},finish:function(h0){hY.dispatchEvent(new bb("onmoveend"));hY.temp.tlPan=false;if(hY.temp.stopArrow===true){hY.temp.stopArrow=false;if(hY.temp.arrow!==0){hY._arrow()}}}})},_startAnimation:function(i){var hZ=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 h0=i.duration||500;var h1=i.transition||cn.ease;var e=new bb("onanimation_start");this.fire(e);if(i.unstopable){hZ=this._animationInfoUnstopable}var hY=new o({duration:h0,transition:h1,render:function(h4,h3){for(var h2 in hZ){if(!hZ.hasOwnProperty(h2)){continue}var h6=hZ[h2].current;var h5=hZ[h2].diff;T._setValueTick(h2,h6,h5,h4)}if(i.renderCallback){i.renderCallback(h4,h3)}},finish:function(h2){T.fire(new bb("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(h2)}},onStop:function(h2){h2=h2||{};T.fire(new bb("onanimation_end"));if(h2.stopCurrentAnimation){T._animationInfo={}}T._ani=null;if(i.mapNeedCbk){i.mapNeedCbk()}if(i.callback){i.callback(null,{stop:true})}}});if(i.unstopable){T._unstopableAni=hY}else{T._ani=hY}},_startInfiniteZoomAnimation:function(e){var i=this;if(i._ani){i._ani.stop(!!e.goToEnd,{stopCurrentAnimation:e.stopCurrentAnimation})}if(i._infiniteAni){return}this.fire(new bb("onanimation_start"));i._infiniteAni=new o({duration:10000,transition:cn.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 bb("onanimation_end"));if(e.callback){e.callback()}},onStop:function(){i._infiniteAni=null;i._animationInfo={};i.fire(new bb("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 bb("on"+e+"_changed"))}return}else{if(e==="center"){this.centerPoint=T}}this["_"+e]=T;this.fire(new bb("on"+e+"_changed"))},_setValueTick:function(e,hZ,hY,i){if(e==="center"){var T=new hz(hZ.lng+hY.lng*i,hZ.lat+hY.lat*i);this._setValue(e,T);return}if(e==="zoom"){this._setValue(e,Math.pow(hZ,1-i)*Math.pow(hZ+hY,i));return}this._setValue(e,hZ+hY*i)},setHeading:function(hY,i){i=i||{};if(hY===this._heading){i.callback&&i.callback();return}var T=f5(this._heading,360);var e=f5(hY,360);if(e===T){this._heading=hY;i.callback&&i.callback();return}if(i.noAnimation){this._setValue("heading",hY);i.callback&&i.callback();return}if(i.unstopable){this._animationInfoUnstopable.heading={current:this._heading,diff:hY-this._heading}}else{this._animationInfo.heading={current:this._heading,diff:hY-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>c8.MAX_TILT){e=c8.MAX_TILT}if(e0){h6=1/Math.sqrt(h6);h9[0]=h8[0]*h6;h9[1]=h8[1]*h6}return h9};h4.dot=function(h7,h6){return h7[0]*h6[0]+h7[1]*h6[1]};h4.cross=function(h8,h7,h6){var h9=h7[0]*h6[1]-h7[1]*h6[0];h8[0]=h8[1]=0;h8[2]=h9;return h8};h4.lerp=function(h8,h7,h6,h9){var ib=h7[0],ia=h7[1];h8[0]=ib+h9*(h6[0]-ib);h8[1]=ia+h9*(h6[1]-ia);return h8};h4.random=function(h6,h8){h8=h8||1;var h7=hZ()*2*Math.PI;h6[0]=Math.cos(h7)*h8;h6[1]=Math.sin(h7)*h8;return h6};h4.transformMat2=function(h9,h8,h7){var h6=h8[0],ia=h8[1];h9[0]=h7[0]*h6+h7[2]*ia;h9[1]=h7[1]*h6+h7[3]*ia;return h9};h4.transformMat2d=function(h9,h8,h7){var h6=h8[0],ia=h8[1];h9[0]=h7[0]*h6+h7[2]*ia+h7[4];h9[1]=h7[1]*h6+h7[3]*ia+h7[5];return h9};h4.transformMat3=function(h9,h8,h7){var h6=h8[0],ia=h8[1];h9[0]=h7[0]*h6+h7[3]*ia+h7[6];h9[1]=h7[1]*h6+h7[4]*ia+h7[7];return h9};h4.transformMat4=function(h9,h8,h7){var h6=h8[0],ia=h8[1];h9[0]=h7[0]*h6+h7[4]*ia+h7[12];h9[1]=h7[1]*h6+h7[5]*ia+h7[13];return h9};h4.rotate=function(h9,h7,h6,id){var ic=h7[0]-h6[0];var ib=h7[1]-h6[1];var h8=Math.sin(id);var ia=Math.cos(id);h9[0]=ic*ia-ib*h8+h6[0];h9[1]=ic*h8+ib*ia+h6[1];return h9};h4.forEach=(function(){var h6=h4.create();return function(h9,id,ie,ic,ib,h7){var ia,h8;if(!id){id=2}if(!ie){ie=0}if(ic){h8=Math.min((ic*id)+ie,h9.length)}else{h8=h9.length}for(ia=ie;ia0){h6=1/Math.sqrt(h6);h9[0]=h8[0]*h6;h9[1]=h8[1]*h6;h9[2]=h8[2]*h6}return h9};h3.dot=function(h7,h6){return h7[0]*h6[0]+h7[1]*h6[1]+h7[2]*h6[2]};h3.cross=function(h7,ic,ib){var h6=ic[0],ie=ic[1],id=ic[2],ia=ib[0],h9=ib[1],h8=ib[2];h7[0]=ie*h8-id*h9;h7[1]=id*ia-h6*h8;h7[2]=h6*h9-ie*ia;return h7};h3.lerp=function(h8,h7,h6,h9){var ic=h7[0],ib=h7[1],ia=h7[2];h8[0]=ic+h9*(h6[0]-ic);h8[1]=ib+h9*(h6[1]-ib);h8[2]=ia+h9*(h6[2]-ia);return h8};h3.random=function(h6,ia){ia=ia||1;var h8=hZ()*2*Math.PI;var h9=(hZ()*2)-1;var h7=Math.sqrt(1-h9*h9)*ia;h6[0]=Math.cos(h8)*h7;h6[1]=Math.sin(h8)*h7;h6[2]=h9*ia;return h6};h3.transformMat4=function(h9,h8,h7){var h6=h8[0],ib=h8[1],ia=h8[2];h9[0]=h7[0]*h6+h7[4]*ib+h7[8]*ia+h7[12];h9[1]=h7[1]*h6+h7[5]*ib+h7[9]*ia+h7[13];h9[2]=h7[2]*h6+h7[6]*ib+h7[10]*ia+h7[14];return h9};h3.transformMat3=function(h9,h8,h7){var h6=h8[0],ib=h8[1],ia=h8[2];h9[0]=h6*h7[0]+ib*h7[3]+ia*h7[6];h9[1]=h6*h7[1]+ib*h7[4]+ia*h7[7];h9[2]=h6*h7[2]+ib*h7[5]+ia*h7[8];return h9};h3.transformQuat=function(ic,ij,h6){var ik=ij[0],ii=ij[1],ih=ij[2],ie=h6[0],id=h6[1],ib=h6[2],ig=h6[3],h9=ig*ik+id*ih-ib*ii,h8=ig*ii+ib*ik-ie*ih,h7=ig*ih+ie*ii-id*ik,ia=-ie*ik-id*ii-ib*ih;ic[0]=h9*ig+ia*-ie+h8*-ib-h7*-id;ic[1]=h8*ig+ia*-id+h7*-ie-h9*-ib;ic[2]=h7*ig+ia*-ib+h9*-id-h8*-ie;return ic};h3.rotateX=function(h8,h7,h6,ib){var ia=[],h9=[];ia[0]=h7[0]-h6[0];ia[1]=h7[1]-h6[1];ia[2]=h7[2]-h6[2];h9[0]=ia[0];h9[1]=ia[1]*Math.cos(ib)-ia[2]*Math.sin(ib);h9[2]=ia[1]*Math.sin(ib)+ia[2]*Math.cos(ib);h8[0]=h9[0]+h6[0];h8[1]=h9[1]+h6[1];h8[2]=h9[2]+h6[2];return h8};h3.rotateY=function(h8,h7,h6,ib){var ia=[],h9=[];ia[0]=h7[0]-h6[0];ia[1]=h7[1]-h6[1];ia[2]=h7[2]-h6[2];h9[0]=ia[2]*Math.sin(ib)+ia[0]*Math.cos(ib);h9[1]=ia[1];h9[2]=ia[2]*Math.cos(ib)-ia[0]*Math.sin(ib);h8[0]=h9[0]+h6[0];h8[1]=h9[1]+h6[1];h8[2]=h9[2]+h6[2];return h8};h3.rotateZ=function(h8,h7,h6,ib){var ia=[],h9=[];ia[0]=h7[0]-h6[0];ia[1]=h7[1]-h6[1];ia[2]=h7[2]-h6[2];h9[0]=ia[0]*Math.cos(ib)-ia[1]*Math.sin(ib);h9[1]=ia[0]*Math.sin(ib)+ia[1]*Math.cos(ib);h9[2]=ia[2];h8[0]=h9[0]+h6[0];h8[1]=h9[1]+h6[1];h8[2]=h9[2]+h6[2];return h8};h3.forEach=(function(){var h6=h3.create();return function(h9,id,ie,ic,ib,h7){var ia,h8;if(!id){id=3}if(!ie){ie=0}if(ic){h8=Math.min((ic*id)+ie,h9.length)}else{h8=h9.length}for(ia=ie;ia0){h6=1/Math.sqrt(h6);ia[0]=h9[0]*h6;ia[1]=h9[1]*h6;ia[2]=h9[2]*h6;ia[3]=h9[3]*h6}return ia};h2.dot=function(h7,h6){return h7[0]*h6[0]+h7[1]*h6[1]+h7[2]*h6[2]+h7[3]*h6[3]};h2.lerp=function(h8,h7,h6,h9){var ic=h7[0],ib=h7[1],ia=h7[2],id=h7[3];h8[0]=ic+h9*(h6[0]-ic);h8[1]=ib+h9*(h6[1]-ib);h8[2]=ia+h9*(h6[2]-ia);h8[3]=id+h9*(h6[3]-id);return h8};h2.random=function(h6,h7){h7=h7||1;h6[0]=hZ();h6[1]=hZ();h6[2]=hZ();h6[3]=hZ();h2.normalize(h6,h6);h2.scale(h6,h6,h7);return h6};h2.transformMat4=function(ia,h9,h7){var h6=h9[0],ic=h9[1],ib=h9[2],h8=h9[3];ia[0]=h7[0]*h6+h7[4]*ic+h7[8]*ib+h7[12]*h8;ia[1]=h7[1]*h6+h7[5]*ic+h7[9]*ib+h7[13]*h8;ia[2]=h7[2]*h6+h7[6]*ic+h7[10]*ib+h7[14]*h8;ia[3]=h7[3]*h6+h7[7]*ic+h7[11]*ib+h7[15]*h8;return ia};h2.transformQuat=function(ic,ij,h6){var ik=ij[0],ii=ij[1],ih=ij[2],ie=h6[0],id=h6[1],ib=h6[2],ig=h6[3],h9=ig*ik+id*ih-ib*ii,h8=ig*ii+ib*ik-ie*ih,h7=ig*ih+ie*ii-id*ik,ia=-ie*ik-id*ii-ib*ih;ic[0]=h9*ig+ia*-ie+h8*-ib-h7*-id;ic[1]=h8*ig+ia*-id+h7*-ie-h9*-ib;ic[2]=h7*ig+ia*-ib+h9*-id-h8*-ie;return ic};h2.forEach=(function(){var h6=h2.create();return function(h9,id,ie,ic,ib,h7){var ia,h8;if(!id){id=4}if(!ie){ie=0}if(ic){h8=Math.min((ic*id)+ie,h9.length)}else{h8=h9.length}for(ia=ie;ia0){T[0].sort(function(hZ,hY){return hZ.tileInfo.useZoom-hY.tileInfo.useZoom})}}});var fn=(function(){var h8=new Int8Array(4);var T=new Int32Array(h8.buffer,0,1);var h3=new Float32Array(h8.buffer,0,1);function ia(ii){T[0]=ii;return h3[0]}function i(ii){h3[0]=ii;return T[0]}function h4(ii){var ik=(ii[3]<<24|ii[2]<<16|ii[1]<<8|ii[0]);var ij=ia(ik&4278190079);return ij}var hZ=0;var h2=1;var h6=2;var ie=0;var ib=1;var h9=2;var h0=9;function h7(ii,ij){var ik;if(ij%2===0){ik=[-ii[1],ii[0]]}else{ik=[ii[1],-ii[0]]}return ik}function e(ii,ij,ik){var il=h7(ii,ij);var im;if(ik===h2){return il}else{if(ij===4||ij===5){im=[il[0]-ii[0],il[1]-ii[1]]}else{im=[il[0]+ii[0],il[1]+ii[1]]}if(ik===hZ){vec2.normalize(im,im)}return im}}function id(ij,ii){return Math.sqrt(Math.pow(ij[0]-ii[0],2)+Math.pow(ij[1]-ii[1],2))}function hY(im,il,ik,ii){var ij=vec2.dot(im,il);if(ik===h9||ik===ib){if((ii===0||ii===1)&&ij>0){return true}else{if((ii===2||ii===3)&&ij<0){return true}}}if((ii===0||ii===1)&&ij<0){return true}else{if((ii===2||ii===3)&&ij>0){return true}}return false}function h5(ij,ip,ir){var iq=h7(ij,ip);var il;var io=ij;var im=ir;var iu=[];vec2.normalize(iu,[io[0]+im[0],io[1]+im[1]]);var it=vec2.dot(iq,[-iu[1],iu[0]]);if(Math.abs(it)<0.1){it=1}var ik=1/it;il=[-iu[1]*ik,iu[0]*ik];var ii=vec2.dot(ij,il);if(ii<0){vec2.negate(il,il)}return{cos2:ii,offset:il}}function ih(ij,ip,ir,ii){var iq=h7(ij,ip);var io;var im;var il;if(ip===0||ip===1){io=ir;im=ij}else{io=ij;im=ir}if(!io||!im){return iq}var iu=[io[0]+im[0],io[1]+im[1]];if(iu[0]===0&&iu[1]===0){vec2.normalize(iu,im)}else{vec2.normalize(iu,iu)}var iv=hY(iu,iq,ii,ip);if(iv){return iq}var it=vec2.dot(iq,[-iu[1],iu[0]]);if(Math.abs(it)<0.1){it=1}var ik=1/it;il=[-iu[1]*ik,iu[0]*ik];return il}function ig(iv,iw,io,im,ix,iu,il,ip,ik,it){var ir;var ij=0;var ii=false;ir=iu.length/h0-1;h1(iw[0],iv[0],io[0],ix,im,4,ip,ik,undefined,iu,it);ir++;ij++;h1(iw[0],iv[0],io[0],ix,im,5,ip,ik,undefined,iu,it);ir++;ij++;for(var iq=0;iq0){iq+=id(iv[ip],iv[ip-1]);im.push(iq*10)}if(ip!==iv.length-1){var il=[iv[ip+1][0]-iv[ip][0],iv[ip+1][1]-iv[ip][1]];var ix=[];if(il[0]===0&&il[1]===0){ix=[0,0]}else{vec2.normalize(ix,il)}iu[iu.length]=[ix[0],ix[1]]}}return ig(iu,iv,im,ik,iw,ir,ii,h4(io),ij,it)},toTileSolidLineVertices:function(im,ij){var ik=new Float32Array(im.length/h0*5);var ii=new Int16Array(ik.buffer);var ip=0;var il=0;for(var io=0;io0){this.zoomState=1}else{if(e<0){this.zoomState=-1}}this.lastZoom=i;return this.zoomState},releaseOutViewTileData:function(e){var hZ=this.map._workerMgr.releasePendingData(e);for(var hY=0,T=hZ.length;hY=0.5){ij=true}else{if(h6<0.5&&e>=0.5){ij=true}else{if(h6>=0.5&&e<0.5){ij=true}}}if(ij){this.cacheDataCollideLabels(0)}this.LAST_CALC_ZOOM=h4}else{if(this.tileLabels.length>0){this.cacheDataCollideLabels(C.Browser.ie?50:30)}}},loadVectorLayerData:function(h4){this.map.temp.isPermitSpotOver=false;var h3=this;function h2(i,h5){var h7=h3.tileCache.getData(h5);if(!h7){return}if(!i||i.error){var h6=new bb("ontileloaderror");i=i||{};h6.error=i.error||"";h6.message=i.message||"";h3.map.fire(h6);h7.status="init";h7.reloadTimer=setTimeout(function(){if(h7.retry<3){h7.retry++;h7.status="loading";h3.loadVectorTileData(i.tileInfo,h2)}else{h3.tileCache.removeData(h5)}},4000);h3.map._featureMgr.clearData(h3.drawIndex);h3._checkTilesLoaded();h3.getVectorLayerDataFromCache(h3.curViewTilesInfo,h3.getZoomState());return}if(h7.reloadTimer){clearTimeout(h7.reloadTimer);h7.reloadTimer=null}h3.callbackDataQueue.push([i,h5]);if(h3.processDataTimer){return}h3.processDataTimer=setTimeout(function(){while(h3.callbackDataQueue.length>0){var h8=h3.callbackDataQueue.shift();h3.vectorTileDataCbk(h8[0],h8[1]);h3._checkTilesLoaded()}h3.map._featureMgr.clearData(h3.drawIndex);h3.getVectorLayerDataFromCache(h3.curViewTilesInfo,h3.getZoomState());h3.processDataTimer=null},200)}for(var h1=0,hZ=h4.length;h165536){h9.renderData.base.push({type:"line",data:[fn.toTileSolidLineVertices(ig,4000),new Uint16Array(ij)]});ig=[];ij=[]}for(var h8=0;h80){h0=hZ.labelProcessor.collisionTest(h0,-1)}}else{if(h1||h2){if(this._collisionTimer){if(!h1){clearTimeout(this._collisionTimer)}else{if(Date.now()-hZ.lastCollisionTestTime>500){hZ.lastCollisionTestTime=Date.now()}else{clearTimeout(this._collisionTimer)}}}this._collisionTimer=setTimeout(function(){h0=hZ.labelProcessor.collisionTest(hZ.tileLabels);if(h0){i.setLabelData(h0)}hZ.updateLabels();hZ.map.dispatchEvent(new bb("onrefresh"));hZ._collisionTimer=null},60);return}else{h0=hZ.labelProcessor.getCachedLabels(hZ.tileLabels)}}if(h0){i.setLabelData(h0)}hZ.updateLabels();hZ.map.dispatchEvent(new bb("onrefresh"))}if(!T){clearTimeout(hZ.cacheLabelTimer);hY()}else{if(hZ.cacheLabelTimer){return}hZ.cacheLabelTimer=setTimeout(function e(){hY()},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 bb("onrefresh"));if(gb()){this.labelProcessor._refreshSpotData()}},updateLabels:function(hZ){var h0=this.map;var i=h0._featureMgr;var T=i.getLabelData();if(T.length>0){var hY=h0.getZoom();if(T.labelZoom-hY<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()}h0.temp.isPermitSpotOver=false;this.labelProcessor.curSpotAdded=false}},loadRasterLayerData:function(h3,hY){this.thumbCache={};var h4=this.getZoomState();if(hY){for(var h1=0,hZ=h3.length;h19&&!e.guid){return false}if(e.zoom<=9&&!e.name&&!e.guid){return false}return true}};var b9=5;var dY=4;var hx=3;var fl=2;var hR=1;var d1=0;function v(e){this._ratio=a6();this._iconCache={};this._map=e;this._drawingCanvasPool=[];this._drawingCanvasHeight=4096}C.extend(v.prototype,{_loadIcons:function(i,h2){var h0=0;var hZ=this;var T=this._map.config.style;for(var h1 in i){h0++;var e=new Image();e.id=h1;e.crossOrigin="anonymous";e.onload=function(){hZ._iconCache[this.id].loaded=true;h0--;if(h0===0){h2()}this.onload=null};e.onerror=function(){hZ._iconCache[this.id]=null;h0--;if(h0===0){h2()}this.onerror=null};var hY=e8.getIconSetPath(T)+h1+".png";e.src=hY;this._iconCache[h1]={loaded:false,image:e}}},_getEmptyDrawingCanvas:function(){for(var T=0;T0){while(h00){h0=0;while(h00){h0=0;while(h00){var ij=this;this._loadIcons(h9,function(){ii=ij._drawEachTypeOfLabels(ib,ia,ik,h3,h2,h7,ig);ik=ii.curStyleId;h3=ii.curX;h2=ii.curY;h7=ii.curLineHeight;var i=ij._generateEachLabelCanvas(e,h2,h6,ic,T,ih);hY(i[0],i[1])});return}var h4=this._generateEachLabelCanvas(e,h2,h6,ic,T,ih);hY(h4[0],h4[1])},drawCustomLabelsOnCanvas:function(h1,h7){if(h1.length===0){h7();return}var T=0;var e=(h1[0].style.fontSize+(h1[0].style.haloSize||0)*2)||0;var hY=e;var h3=this._getEmptyDrawingCanvas();var h8=h3.getContext("2d");h8.clearRect(0,0,h3.width,h3.height);var h4={};var h6=-1;for(var hZ=0;hZthis._drawingCanvasHeight){return{curX:hY,curY:T,curLineHeight:hZ,curStyleId:h5}}}return{curX:hY,curY:T,curLineHeight:hZ,curStyleId:h5}},_drawIndoorTextLabelOnCanvas:function(hZ){var e=this._getEmptyDrawingCanvas();var h6=e.getContext("2d");h6.clearRect(0,0,e.width,e.height);var ie=0;var h5=null;var h4=0;var h2;var ib={};var ia=[];for(var h0 in hZ){if(h0==="tileInfo"){continue}var hY=hZ[h0];var h9=hY.defaultFloor;var h3=hY.floors;for(var h8=0;h84){iJ=4}var it=[];var ig=[];var io=0;if(hZ&&!hZ[iL]){hZ[iL]={}}var h9=ia+iJ*2;var iu=h9;if(h2.containDescendings){iu+=4}if(iJ===0){iu+=2}if(h2.textOnIcon){iu=Math.max(iu,h2.iconSize[1])}if(iL!==T||iu>ir){T=iL;if(iw>=10&&iw%10===0){ih.font=iw*10+" "+ia+"px sans-serif"}else{ih.font=ia+"px sans-serif"}if(iu>ir){var ip=iu-ir;ir+=ip;ii+=ip}if(iJ>0){ih.lineWidth=iJ*2;ih.strokeStyle=h1}ih.fillStyle=iD}if(h2.type==="line"){var h4=iq.split("");for(var iM=0;iM512){ij=0;ii+=iu;ir=iu}if(ii>this._drawingCanvasHeight){return{curX:ij,curY:ii,curLineHeight:ir,styleId:iL}}var iG=ij;if(iJ>0){hY+=iJ;iG-=Math.round(iJ/2);ih.strokeText(iF,ij,ii)}ih.fillText(iF,ij,ii);var iC=[hY,iu];ik=[Math.round(iC[0]/2),Math.round(iC[1]/2)];ix=[iG,ii-iu];hZ[iL][iF]={displaySize:ik,curWordPosition:ix,totalHeight:io};ij+=hY+2}it.push(ik);ig.push(ix)}io=Math.round(it[0][1])}else{if(hZ[iL][iq]){var ib=hZ[iL][iq];it=ib.textSize;ig=ib.labelImagePosition;io=ib.totalHeight}else{var ic=iq.split("\\");if(ic.length>1&&h2.textOnIcon){var iN=0;var iK=0;var iQ=[];var il=8;for(var iM=0;iMiN){iN=h8}iQ.push(Math.round(h8/2));iK+=iu}var h5=iN+2*il;var iI=iK+2*il;if(ij+h5>512){ij=0;ii+=ir}ii+=iK-iu+2*il;var iB=ij;var im=ii-iI;var e=Math.round(h5/2);var ie=this._iconCache[h2.icon].image;this.drawStretchedIcon(ih,ie,[iB,im],il,iN,iK);for(var iM=0;iM512){ij=0;ii+=iu;ir=iu}if(ii>this._drawingCanvasHeight){return{curX:ij,curY:ii,curLineHeight:ir,styleId:iL}}var iB=ij;var im=ii-iu;var iA=ij;var iz=ii;if(h2.containDescendings){iz-=4}if(h2.textOnIcon){var iv=false;var ie=this._iconCache[h2.icon].image;var iy=h2.iconSize.concat([]);if(h9>iy[1]){iy[1]=h9;iv=true}if(h8>iy[0]){iy[0]=h8;iv=true}if(h2.styleId===519){ih.drawImage(ie,0,0,iy[0],iy[1],iB,im,iy[0],iy[1])}else{if(iv){this.drawStretchedIcon(ih,ie,[iB,im],h0,h8,iy[1])}else{this.draw3StretchedIcon(ih,ie,[iB,im],h0,h8,iy[1])}}iA+=h0;if(h2.iconSize[1]>h9){iz-=(h2.iconSize[1]-h9)/2-1}h5+=1}if(iJ>0){h5+=iJ;iB-=Math.round(iJ/2);im+=Math.round(iJ/2);if(iL===71028){iu-=2}if(iL===32){iu-=2}ih.strokeText(iq,iA,iz)}ih.fillText(iq,iA,iz);var h3=[h5,iu];var ik=[Math.round(h3[0]/2),Math.round(h3[1]/2)];it.push(ik);ig.push([iB,im]);io+=Math.round(ik[1]);ij+=h5}}hZ[iL][iq]={textSize:it,labelImagePosition:ig,totalHeight:io}}}h2.textSize=it;h2.labelImagePosition=ig;h2.totalHeight=io;return{curX:ij,curY:ii,curLineHeight:ir,styleId:iL}},drawStretchedIcon:function(e,T,hY,h1,h2,i){var h0=hY[0];var hZ=hY[1];e.drawImage(T,0,0,h1,h1,h0,hZ,h1,h1);e.drawImage(T,h1,0,1,h1,h0+h1,hZ,h2,h1);e.drawImage(T,T.width-h1,0,h1,h1,h0+h2+h1,hZ,h1,h1);e.drawImage(T,0,h1,h1,1,h0,hZ+h1,h1,i);e.drawImage(T,h1,h1,1,1,h0+h1,hZ+h1,h2,i);e.drawImage(T,T.width-h1,h1,h1,1,h0+h2+h1,hZ+h1,h1,i);e.drawImage(T,0,T.height-h1,h1,h1,h0,hZ+i+h1,h1,h1);e.drawImage(T,h1,T.height-h1,1,h1,h0+h1,hZ+i+h1,h2,h1);e.drawImage(T,T.width-h1,T.height-h1,h1,h1,h0+h2+h1,hZ+i+h1,h1,h1)},draw3StretchedIcon:function(e,i,T,h0,h2,h1){var hZ=T[0];var hY=T[1];e.drawImage(i,0,0,h0,i.height,hZ,hY,h0,i.height);e.drawImage(i,h0,0,1,i.height,hZ+h0,hY,h2,i.height);e.drawImage(i,i.width-h0,0,h0,i.height,hZ+h0+h2,hY,h0,i.height)},_updateFixedLabelCoords:function(hZ,ie){if(ie===0){return}var h9=[];var im=[];var io=0;var ic=hZ.totalHeight;var ix=hZ.textSize.length;var h0=hZ.direction;if(typeof h0!=="number"){h0=0}for(var ip=0;ipT){T=h8}if(h6e){e=h6}}}if(h4.custom&&h4.style.iconSize&&!h4.name){var h5=h4.style.iconSize;var h7=h4.direction;switch(h7){case dY:h0=-Math.round(h5[0]/2);hY=-Math.round(h5[1]/2);T=Math.round(h5[0]/2);e=Math.round(h5[1]/2);break;case fl:h0=-Math.round(h5[0]/2);hY=0;T=Math.round(h5[0]/2);e=h5[1];break}}if(h4.textPos){var h1=h4.textPos["vertex"];for(var h3=0,hZ=h1.length;h3T){T=h8}if(h6e){e=h6}}}h4.bds=[h0,hY,T,e]},_updateLineLabelCoords:function(ig,h5){if(h5===0){return}var hY=ig.wordsInfo;var ic=ig.wordCount;if(!ig.labelImagePosition){return}var h7=ig.labelImagePosition.slice(0);if(ig.reverse){h7.reverse()}var iq=1000;var im=1000;var io=-1000;var il=-1000;for(var ih=0;ihio){io=ie}if(h0il){il=h2}}ig.bds=[iq,im,io,il]}});var cT={0:"00000000",16:"00010000",32:"00100000",48:"00110000",64:"01000000",96:"01100000"};function cq(T,hY,hZ){var e=T.bds;if(!e){return false}var i=T.tracer;var h2;if(i){if(!cT[i]){h2=i.toString(2);if(h2.length<8){h2=new Array(8-h2.length+1).join("0")+h2}cT[i]=h2}h2=cT[i];var h1=di.mapZoomStartZoomMapping[hY];return h2[hY-h1]==="1"}var h0=T.displayRange;if(hZ>=h0[0]&&hZ<=h0[1]){return true}return false}function dj(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._ratio=a6();this._useRound=true;this._sharpenRender=false;if(this._ratio>c8.HIGH_RES_MIN_RATIO){this._useRound=false;this._sharpenRender=true}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(dj.prototype,{bind:function(){var T=this.map;var i=this;T.addEventListener("mapstatusbusy_inner",function(hY){i._mapIsMoving=true;if(i._ratio>c8.HIGH_RES_MIN_RATIO){i._sharpenRender=false}else{i._useRound=false}});T.addEventListener("mapstatusidle_inner",function(hY){if(i._ratio>c8.HIGH_RES_MIN_RATIO){i._sharpenRender=true}else{i._useRound=true}i._mapIsMoving=false});T.addEventListener("onspotmouseover",function(h0){if(!this.temp.isPermitSpotOver){return}if(h0.spots.length>0){var hZ=h0.spots[0].userdata.uid;var h1=h0.spots[0].userdata.tilePosStr;var hY=i.getLabelByUid(hZ,h1);hY&&hY.formatedData&&i._toHighlightColor(hY.formatedData)}});T.addEventListener("onspotmouseout",function(h0){if(!this.temp.isPermitSpotOver){return}if(h0.spots.length>0){var hZ=h0.spots[0].userdata.uid;var h1=h0.spots[0].userdata.tilePosStr;var hY=i.getLabelByUid(hZ,h1);hY&&hY.formatedData&&i._toDefaultColor(hY.formatedData)}});T.addEventListener("spotclick",function(h0){if(h0.spots&&h0.spots.length>0){if(h0.spots[0].userdata.zoom<10){return}var hZ=h0.spots[0].userdata.uid;var h1=h0.spots[0].userdata.tilePosStr;if(i.currentSelectedLabel&&(i.currentSelectedLabel.uid!==hZ||i.currentSelectedLabel.tilePosStr!==h1)){i._recoverNormalState()}var hY=i.getLabelByUid(hZ,h1);hY&&i._changeBaseMapState(hY)}else{i._recoverNormalState()}});T.on("spot_status_reset",function(){i._recoverNormalState()});T.on("spot_highlight",function(hZ){var hY=i.getLabelByUid(hZ.uid,hZ.tilePosStr);hY&&hY.formatedData&&i._toHighlightColor(hY.formatedData)});T.addEventListener("mousemove",function(hY){if(i.curSpotAdded){return}if(this.currentOperation!==dV.idle||i._mapIsMoving===true){return}i._refreshSpotData();this.temp.isPermitSpotOver=true;i.curSpotAdded=true});if(gb()){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(h1,h2){var e=this.map._featureMgr.getResult().tileLabels;for(var h0=0;h0=0&&ix<45)||(ix>=315&&ix<360)){iy=iF;iw=iD;ib=id;ia=ic}else{if(ix>=45&&ix<135){iy=iD;iw=-id;ib=ic;ia=-iF}else{if(ix>=135&&ix<225){iy=-id;iw=-ic;ib=-iF;ia=-iD}else{if(ix>=225&&ix<315){iy=-ic;iw=iF;ib=-iD;ia=id}}}}h1._tempBds=[il+iy,ij+iw,il+ib,ij+ia];var h4=ig.pixelToPointIn(new em(h1._tempBds[0],io.y+iw),{zoom:iB});var hY=ig.pixelToPointIn(new em(h1._tempBds[2],io.y+ia),{zoom:iB});h1._mcBds=[h4,hY];iC.push(h1)}}var iz=this._strategyInfo;if(iz){var h9=iz.guid;var ii=iz.guidExt;var T=false;for(var iJ=0,iH=iC.length;iJ0){hZ=6}var h8=ig.getZoom();if(h8>=8&&h8<9){h8<8.5?(hZ=6):(hZ=3)}if(ig._displayOptions.labelMargin>0){hZ=ig._displayOptions.labelMargin}var e=2;if(h8<6&&h8>=5){e=-1}for(var iJ=0,iH=iC.length;iJiK[2]+hZ+e||h7[3]+hZ+eiK[3]+hZ+e)){iv._intersectIdx.push(iI)}}}for(var iJ=0,iH=iC.length;iJ=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 hZ=[];var h1=false;for(var hY=0;hYe){h4.isDel=true}if(h4.isDel){continue}var ia=h4.pt;var T=h4.iconPos;if(T&&T.texcoord){if(!T.rtVertex){T.rtVertex=[];var ic=T.vertex;var h1=aF(ia.lng);var h9=aF(ia.lat);T.rtVertex=[h1[0],h9[0],h1[1],h9[1],0,ic[0],ic[1],0,0,T.texcoord[0],T.texcoord[1],h1[0],h9[0],h1[1],h9[1],0,ic[2],ic[3],0,0,T.texcoord[2],T.texcoord[3],h1[0],h9[0],h1[1],h9[1],0,ic[4],ic[5],0,0,T.texcoord[4],T.texcoord[5],h1[0],h9[0],h1[1],h9[1],0,ic[6],ic[7],0,0,T.texcoord[6],T.texcoord[7],h1[0],h9[0],h1[1],h9[1],0,ic[8],ic[9],0,0,T.texcoord[8],T.texcoord[9],h1[0],h9[0],h1[1],h9[1],0,ic[10],ic[11],0,0,T.texcoord[10],T.texcoord[11]]}}var ib=h4.textPos;if(ib){if(!ib.rtVertex){ib.rtVertex=[];var ic=ib.vertex;var h2=ib.rtVertex;var h1=aF(ia.lng);var h9=aF(ia.lat);var ie=aF(hY);for(var h6=0,id=ic.length;h645&&iw<315){if(iw>45&&iw<=135){ir=270}else{if(iw>135&&iw<=225){ir=180}else{if(iw>225&&iw<315){ir=90}}}if(ig>225&&ig<=315&&ir<=180){ib=true}else{if((ig>=0&&ig<=45||ig>=315&&ig<360)&&ir>=180){ib=true}}}}for(var iy=0,h7=ii.length;iy=360){e-=360}while(e<0){e+=360}return e},fixDataFormat:function(h6){var hY=this.fixedLabelData;var e=this.lineLabelData;var T=this.highlightLabelData;var id=0;var h2=0;var ib=0;var ic;if(this.currentSelectedLabel){var h1=this.getLabelByUid(this.currentSelectedLabel.guid,this.currentSelectedLabel.tilePosStr);if(!h1||h1.isDel){hY[id]=this.currentSelectedLabel.formatedData;id++;T[ib]=this.currentSelectedLabel.formatedData;ib++}}for(var ia=0;iahY)){continue}var i=hZ[e].spot||this._getSpotDataFromLabel(hZ[e]);if(i){this._spotData.push(i)}}},_getSpotDataFromLabel:function(T){var h0=this.map;if(!T.bds){return null}var e=T.bds.slice(0);var hY=null;if(T.iconPos){hY=new hz(T.pt.lng,T.pt.lat)}var i=T.name?T.name.replace("\\\\","
"):"";if(T.iconPos&&T.iconPos.iconType.indexOf("ditie")>-1&&h0.getZoom()>14){i=""}var hZ={n:i,pt:new hz(T.pt.lng,T.pt.lat),userdata:{iconPoint:hY,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=hZ;return hZ},drawLabelsOnCanvas:function(i,e){if(this._labelTextCanvas){this._labelTextCanvas.drawLabelsOnCanvas(i,e)}}});function fZ(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()}fZ.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)};fZ.prototype.updateLabels=function(){var i=this._map.tileMgr.getLabelTextCanvas();var T=this._map;var e=this;i.drawCustomLabelsOnCanvas(T._customTileLabels,function(hZ){var hY=e.virtualTile;if(hZ){hY.label.textureHeights[0]=[hZ.height]}hY.label.fixedLabel=T._customTileLabels;var h0=new bb("oncustom_labels_ready");h0.virtualTile=hY;h0.labelCanvas=hZ;h0.imgKey=bo.getGUID("custom_labels_");T.dispatchEvent(h0)})};bo.register(function(e){e._customLabelMgr=new fZ(e)});var aA=function(ii,ih){var ig={"\x65\x64\x63\x78\x65":"\x65\x65\x65\x63","\x69\x63\x64\x65\x68":"\x65\x68\x63","\x6d\x63\x6c\x78\x78":"\x69\x61\x61","\x61\x69\x6d\x78\x6c":"\x69\x6d\x6d","\x6d\x64\x78\x61\x65":function(T,e){return Th1},"\x6d\x69\x69\x65\x64":ay("0x37"),"\x6c\x63\x63\x68\x69":ay("0x38"),"\x78\x61\x61\x65\x6d":ay("0x39"),"\x64\x64\x65\x65\x78":ay("0x3a"),"\x6d\x64\x69\x63\x63":ay("0x3b"),"\x6c\x68\x68\x68\x78":ay("0x3c"),"\x65\x64\x63\x65\x6d":ay("0x3d"),"\x68\x69\x68\x69\x6c":ay("0x3e"),"\x61\x64\x6d\x61\x61":function(T){return T()},"\x65\x68\x6c\x68\x63":ay("0x3f"),"\x61\x65\x68\x61\x6c":ay("0x40"),"\x65\x78\x61\x78\x61":"\x6c\x63\x61","\x61\x61\x65\x65\x6d":ay("0x41"),"\x61\x64\x68\x68\x64":ay("0x42"),"\x6c\x78\x68\x68\x61":ay("0x43"),"\x63\x65\x69\x6d\x6c":ay("0x44"),"\x63\x61\x64\x65\x68":ay("0x45"),"\x61\x78\x61\x64\x63":ay("0x46"),"\x64\x64\x69\x6d\x78":ay("0x47"),"\x61\x78\x65\x69\x65":function(h1,T){return h1===T},"\x68\x63\x6c\x6c\x6c":ay("0x48")};var hY=ay("0x3a");while(hY!==ay("0x3d")){switch(hY){case hZ[ay("0x49")]:this["\x77\x6f\x72\x64\x53\x70\x61\x63\x65\x52\x61\x74\x69\x6f"]=this[ay("0x4a")];hY=ay("0x44");break;case hZ[ay("0x4b")]:this[ay("0x4c")]=[];hY=ay("0x4d");break;case hZ["\x6c\x63\x63\x68\x69"]:this[ay("0x4e")]=1;hY=hZ[ay("0x4f")];break;case hZ[ay("0x50")]:var i=this;hY=hZ["\x6d\x64\x69\x63\x63"];break;case hZ[ay("0x51")]:h0["\x6f\x6e"](ay("0x52"),function(){for(var T=0;hZ[ay("0x53")](T,i[ay("0x54")][ay("0x55")]);T++){if(i[ay("0x54")][T]){i[ay("0x54")][T][ay("0x56")]()}}i[ay("0x54")][ay("0x55")]=0});hY=hZ["\x65\x64\x63\x65\x6d"];break;case hZ["\x68\x69\x68\x69\x6c"]:this[ay("0x4a")]=hZ[ay("0x57")](a6);hY=hZ["\x63\x65\x64\x63\x65"];break;case hZ[ay("0x58")]:gf[ay("0x59")]=[];hY=hZ[ay("0x5a")];break;case hZ[ay("0x5b")]:var e=navigator[ay("0x5c")]||4;hY=hZ[ay("0x5d")];break;case hZ[ay("0x5e")]:this["\x74\x65\x78\x74\x53\x69\x7a\x65\x52\x61\x74\x69\x6f"]=2;hY=ay("0x39");break;case hZ[ay("0x5f")]:h0["\x6f\x6e"](ay("0x60"),function(){var h2=ay("0x61");while(hZ[ay("0x62")](h2,ay("0x30"))){switch(h2){case hZ[ay("0x63")]:for(var h1=0,T=i[ay("0x54")][ay("0x55")];h10){ic=ay("0x6b");break}ic=ay("0x34");break;case ay("0x93"):this["\x5f\x63\x62\x6b"]=null;ic=h3[ay("0x8b")];break;case h3["\x78\x61\x69\x63\x68"]:h0[ay("0x94")](h9);ic=h3[ay("0x95")];break;case h3[ay("0x96")]:this[ay("0x91")]&&this[ay("0x91")](id[ay("0x8e")],this[ay("0x80")]);ic=h3[ay("0x92")];break;case h3[ay("0x97")]:var h9=new bb(h3[ay("0x98")]);ic=ay("0x6f");break}}};T=hZ[ay("0x99")];break}}}if(hZ[ay("0x6c")](i["\x61\x72\x72\x50\x65\x6e\x64\x69\x6e\x67\x44\x61\x74\x61"][ay("0x55")],0)){for(var h1=0;hZ[ay("0x53")](h1,Math["\x6d\x69\x6e"](i["\x61\x72\x72\x50\x65\x6e\x64\x69\x6e\x67\x44\x61\x74\x61"][ay("0x55")],e));h1++){var h7=i[ay("0x4c")][ay("0x8a")]();i[ay("0x9a")](h7[ay("0x86")],h7[ay("0x9b")],h7[ay("0x87")],h7[ay("0x89")])}}});hY=ay("0x9c");break;case ay("0x48"):gf["\x73\x74\x72\x69\x6e\x67\x69\x66\x69\x65\x64\x43\x75\x73\x74\x6f\x6d\x53\x74\x79\x6c\x65\x49\x6e\x66\x6f"]=null;hY=ay("0x3f");break;case ay("0x41"):if((gb()||C[ay("0x9d")]["\x69\x65"])&&e>2){hY=ay("0x46");break}hY=hZ["\x63\x61\x64\x65\x68"];break;case hZ[ay("0x9e")]:this[ay("0x9f")]=h0;hY=ay("0x37");break;case hZ["\x61\x78\x61\x64\x63"]:e=2;hY=ay("0x45");break;case hZ[ay("0xa0")]:this[ay("0x54")]=[];hY=hZ[ay("0xa1")];break;case ay("0x9c"):h0["\x6f\x6e"](hZ[ay("0xa2")],function(){for(var h1=0,T=i[ay("0x54")]["\x6c\x65\x6e\x67\x74\x68"];h1=0;T--){var i=hY[T];var e=i[ay("0x9b")];if(h1["\x74\x69\x6c\x65\x54\x79\x70\x65\x4e\x61\x6d\x65"]!==e["\x74\x69\x6c\x65\x54\x79\x70\x65\x4e\x61\x6d\x65"]){continue}var h2=h0["\x65\x64\x65\x6c\x65"](h0[ay("0xae")](h0[ay("0xaf")],e[ay("0xb0")]),"\x5f")+e[ay("0xb1")]+"\x5f"+e["\x7a\x6f\x6f\x6d"];if(!h1[h2]){hY[ay("0xb2")](T,1);hZ[ay("0x79")](e)}}return hZ},"\x6c\x6f\x61\x64\x54\x69\x6c\x65\x44\x61\x74\x61":function(hZ,hY,i,h8){var h6={"\x61\x65\x63\x61\x61":ay("0xb3"),"\x78\x6d\x63\x65\x63":function(ia,h9){return ia!==h9},"\x65\x61\x78\x68\x61":ay("0xb4"),"\x69\x78\x65\x68\x61":ay("0xb5"),"\x65\x63\x61\x6c\x6c":ay("0xb6"),"\x78\x65\x68\x65\x6c":"\x61\x65\x69","\x69\x64\x65\x6c\x78":"\x65\x65\x63","\x63\x65\x6c\x65\x6c":"\x63\x64\x78","\x65\x65\x65\x61\x63":"\x73\x74\x72\x69\x6e\x67\x69\x66\x69\x65\x64\x49\x63\x6f\x6e\x53\x65\x74\x49\x6e\x66\x6f","\x6d\x61\x69\x68\x68":"\x78\x78\x64","\x6c\x69\x63\x6c\x68":function(ia,h9){return ia+h9},"\x61\x68\x6d\x78\x6c":ay("0xb7"),"\x68\x69\x61\x65\x65":ay("0xb8"),"\x78\x6c\x65\x61\x65":ay("0xb9"),"\x65\x63\x61\x65\x63":ay("0xba"),"\x65\x6d\x69\x65\x65":ay("0xbb"),"\x78\x69\x64\x63\x68":ay("0xbc"),"\x6d\x65\x6d\x61\x61":function(ia,h9){return ia+h9},"\x6d\x78\x65\x63\x63":ay("0xbd"),"\x61\x63\x68\x64\x61":ay("0xbe"),"\x65\x69\x65\x68\x69":ay("0x43"),"\x6c\x68\x6c\x6c\x65":ay("0xbf"),"\x78\x64\x65\x65\x68":ay("0xc0"),"\x63\x6c\x64\x6c\x64":ay("0x9a"),"\x6c\x6c\x68\x68\x64":"\x69\x63\x6d","\x61\x63\x65\x65\x69":ay("0xc1"),"\x64\x61\x6c\x65\x61":ay("0xc2"),"\x68\x69\x64\x64\x69":ay("0xc3")};var h1=h6[ay("0xc4")];while(h6[ay("0xc5")](h1,h6["\x65\x61\x78\x68\x61"])){switch(h1){case ay("0xc3"):h2[ay("0xc6")]=gf[ay("0xbc")+h0];h1=ay("0xc7");break;case ay("0xc8"):var h0=this[ay("0x9f")][ay("0xc9")]();h1=h6[ay("0xca")];break;case ay("0xcb"):gf[ay("0xbc")+h0]=JSON[ay("0xcc")](bo[h6["\x65\x63\x61\x6c\x6c"]+h0]);h1=ay("0xcd");break;case h6[ay("0xce")]:if(!gf[ay("0xcf")]){h1=h6[ay("0xd0")];break}h1=ay("0x43");break;case ay("0xd1"):var T={"\x75\x72\x6c":hZ,"\x74\x69\x6c\x65\x49\x6e\x66\x6f":hY,"\x74\x69\x6c\x65\x4b\x65\x79":i,"\x63\x62\x6b":h8};h1=h6["\x63\x65\x6c\x65\x6c"];break;case"\x64\x61\x69":h2[ay("0xd2")]=gf[h6[ay("0xd3")]+h5];h1=ay("0xd4");break;case h6[ay("0xd5")]:if(!gf[ay("0xa3")]){h1=ay("0xc2");break}h1=ay("0x34");break;case ay("0xd6"):gf[h6["\x65\x65\x65\x61\x63"]+h5]=JSON[ay("0xcc")](bo[h6["\x6c\x69\x63\x6c\x68"](ay("0xd2"),h5)]);h1=h6[ay("0xce")];break;case h6[ay("0xd7")]:e[ay("0xd8")](h2);h1=ay("0xb4");break;case ay("0xd9"):if(h4){h1=ay("0xda");break}h1=h6[ay("0xdb")];break;case ay("0xdc"):e[ay("0x91")]=h8;h1=h6[ay("0xdd")];break;case"\x6d\x68\x61":e[ay("0x80")]=i;h1=ay("0xde");break;case ay("0xcd"):if(!gf[ay("0xdf")+h5]){h1=ay("0xd6");break}h1=ay("0xe0");break;case h6[ay("0xc4")]:var e=this[ay("0xe1")]();h1=ay("0xe2");break;case ay("0xd4"):h2[ay("0xe3")]=gf["\x73\x74\x72\x69\x6e\x67\x69\x66\x69\x65\x64\x49\x6e\x64\x6f\x6f\x72\x53\x74\x79\x6c\x65"];h1=h6[ay("0xe4")];break;case"\x6d\x63\x78":if(h4&&bo[ay("0xe5")]){h1=h6["\x6d\x61\x69\x68\x68"];break}h1=ay("0x34");break;case"\x63\x64\x78":this["\x61\x72\x72\x50\x65\x6e\x64\x69\x6e\x67\x44\x61\x74\x61"][ay("0x79")](T);h1=h6[ay("0xe6")];break;case"\x68\x69\x69":var h7=h3?this[ay("0x9f")][ay("0xe7")][ay("0xe8")]:![];h1=ay("0xe9");break;case h6[ay("0xea")]:if(!gf[h6["\x6c\x69\x63\x6c\x68"](h6[ay("0xeb")],h0)]&&bo[h6[ay("0xec")](ay("0xb6"),h0)]){h1=ay("0xcb");break}h1=ay("0xcd");break;case h6[ay("0xed")]:e[ay("0x64")]=!![];h1=ay("0xb7");break;case ay("0x39"):var h5=h0;h1=ay("0xd9");break;case ay("0xda"):h5=ay("0xee");h1="\x61\x6c\x61";break;case ay("0xb9"):e[ay("0xef")]=hY;h1=h6[ay("0xf0")];break;case ay("0x88"):gf[ay("0xcf")]=JSON[ay("0xcc")](bo["\x69\x6e\x64\x6f\x6f\x72\x53\x74\x79\x6c\x65"]);h1=h6[ay("0xf1")];break;case h6[ay("0xe4")]:if(h4&&gf[ay("0xa3")]){h1=ay("0xf2");break}h1=h6[ay("0xf3")];break;case ay("0xf2"):h2[ay("0xf4")]=gf["\x73\x74\x72\x69\x6e\x67\x69\x66\x69\x65\x64\x43\x75\x73\x74\x6f\x6d\x53\x74\x79\x6c\x65\x49\x6e\x66\x6f"];h1="\x61\x65\x6d";break;case h6["\x69\x78\x65\x68\x61"]:var h4=!!(h0[ay("0xf5")](h6[ay("0xf6")])===0);h1=ay("0x39");break;case ay("0xe9"):h1=e?ay("0xdc"):"\x61\x61\x69";break;case ay("0xe2"):var h3=this[ay("0x9f")][ay("0xe7")][ay("0xf7")];h1=ay("0xf8");break;case ay("0xde"):var h2={"\x61\x63\x74\x69\x6f\x6e":h6[ay("0xf9")],"\x75\x72\x6c":hZ,"\x74\x69\x6c\x65\x49\x6e\x66\x6f":hY,"\x74\x69\x6c\x65\x4b\x65\x79":i,"\x69\x73\x54\x65\x78\x74":h7,"\x69\x73\x50\x6f\x69":h3};h1=h6[ay("0xfa")];break;case h6[ay("0xfb")]:h2[ay("0xfc")]=h0;h1=ay("0xbd");break;case"\x61\x65\x6d":h2[ay("0xfd")]={"\x77\x6f\x72\x64\x53\x70\x61\x63\x65\x52\x61\x74\x69\x6f":this[ay("0xfe")],"\x74\x65\x78\x74\x53\x69\x7a\x65\x52\x61\x74\x69\x6f":this["\x74\x65\x78\x74\x53\x69\x7a\x65\x52\x61\x74\x69\x6f"]};h1=h6["\x61\x63\x65\x65\x69"];break;case h6["\x64\x61\x6c\x65\x61"]:gf["\x73\x74\x72\x69\x6e\x67\x69\x66\x69\x65\x64\x43\x75\x73\x74\x6f\x6d\x53\x74\x79\x6c\x65\x49\x6e\x66\x6f"]=JSON["\x73\x74\x72\x69\x6e\x67\x69\x66\x79"](bo[ay("0xe5")]);h1=ay("0x34");break;case h6[ay("0xdb")]:if(!e[ay("0x64")]){h1=h6[ay("0xea")];break}h1=h6[ay("0xd7")];break;case ay("0x34"):if(gf[h6["\x78\x69\x64\x63\x68"]+h0]){h1=h6[ay("0xff")];break}h1=ay("0xc7");break}}}};C[ay("0x100")](gf[ay("0x101")],bf);function dU(i){this.tileLayers=[];this.map=i;var e=this.config=b6[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}bo.register(function(i){if(i._renderType!=="webgl"){return}var e=i.tileMgr=new dU(i);i.addEventListener("addtilelayer",function(hY){e.addWebGLLayer(hY.target)});i.addEventListener("removetilelayer",function(hY){e.removeWebGLLayer(hY.target)});i.on("update",function T(hY){if(i.getFeatureStyleTags().length===0&&!bo.customStyleLoaded){return}e.loadLayersData({zoomChanged:hY.changedStatus.onzoom_changed?true:false})});i.on("style_changed",function(){e.loadLayersData()})});C.extend(dU.prototype,{addWebGLLayer:function(T){this.tileLayers.push(T);T.initDrawData();if(this.tileLayers.length>1){for(var e=1;e0){this.loadLayersData()}else{var hY=this;this.map.loadMapStyleFiles(function(){hY.loadLayersData()})}},removeWebGLLayer:function(h0){var h1=false;for(var hZ=0,hY=this.tileLayers.length;hZ0){this.loadLayersData()}if(this.tileLayers.length===1){this.map.setDisplayOptions({isFlat:false})}else{var e=false;for(var hZ=1;hZ50);if(!e){if(!this.syncLoadTimer){this.syncLoadTimer=setTimeout(function(){hY._loadLayersFromCache(T);hY.syncLoadTimer=null},40)}}else{this._loadLayersFromCache(T)}if(!hY.map.viewAnimationTime){this.timer&&window.clearTimeout(this.timer)}this.timer=window.setTimeout(function(){if(hY.map.viewAnimationTime){if(new Date().getTime()-hY.map.viewAnimationTime<1000){return}hY.map.viewAnimationTime=new Date().getTime()}var h0=hY.tileLayers.length;hY.tilesInfoCache={};for(var h1=0;h10});var T=h2.length;this.tilesInfoCache={};for(var hY=0;hYd7._mc180X){var h9=d7.getSpaceDistanceInPixel(h1);iw=Math.ceil(h9/h0)}if(im.sw.lng19505879.362428114||im.sw.lat<-15949096.637571886){im.ne.lat=19505879.362428114;im.sw.lat=-15949096.637571886}var h5=[Math.floor(im.sw.lng/ih)-hY,Math.floor(im.sw.lat/ih)];var iJ=[Math.floor(im.ne.lng/ih)+iw,Math.floor(im.ne.lat/ih)];ig=h5[0];iz=iJ[0]+1;io=h5[1];iD=iJ[1]+1;var ia=[];for(var h7=ig;h7=0?h7-h2:h7+h2;var ij="id_"+ii+"_"+ic+"_"+h1;if(!ia[ij]){var h8={col:ii,row:ic,zoom:h1,useZoom:iB,loopOffsetX:0,tileSize:ip,baseTileSize:h0,mercatorSize:ih,combine:false};ia.push(h8);ia[ij]=true}}}if(this.map._tilt>0){for(var iH=0;iH0&&ie.x0&&ie.yiu.lng&&iv.minYiu.lat){continue}if(!this.ifTileInMapBounds(iv,im,iC,iK)){ia.splice(iH,1);iH--}}}ia.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])))}})([il,h3]));ia.zoom=h1;ia.tileTypeName=iL;return ia},calcXYZTilesInfo:function(h9,h2,h8,ie,h1,ii){var h4=ii.width;var ig=ii.height;var h3=Math.floor(h8);var hY=ey.transformBDmcPoint(h9);if(!hY){return[]}var h5=null;if(h1.transform.source==="BD09MC"){var hZ=ey.getRangeExtent(hY,h4,ig,h3,h1.transform);h5=[hZ.minX,hZ.minY,hZ.maxX,hZ.maxY]}else{var h0=ey.transformBDmcPoint(h2.ne);var h7=ey.transformBDmcPoint(h2.sw);h5=ey.getLoopBox(hY,[h7[0],h7[1],h0[0],h0[1]])}if(!h5){return[]}if(h1.transform.source==="BD09MC"){h3+=1}var T=ey.getTileRangeForExtentFactory(h5,h3,h1.transform);var e=[];var ij=ey.getResolutionScale(h3,h1.transform);for(var ic=T.minX;ic<=T.maxX;ic++){for(var ia=T.minY;ia<=T.maxY;ia++){var ib={col:ic,row:ia,zoom:h3,useZoom:h3,tileTypeName:ie,loopOffsetX:0,tileSize:256*ij,transform:h1.transform,combine:false,dataIndex:0};e.push(ib);var h6="id_"+ic+"_"+ia+"_"+h3;e[h6]=true}}var ih=ey.getTileCoordForCoordAndZ(hY,h3);e.sort((function(i){return function(id,ik){return((0.4*Math.abs(id.col-i[0])+0.6*Math.abs(id.row-i[1]))-(0.4*Math.abs(ik.col-i[0])+0.6*Math.abs(ik.row-i[1])))}})([ih[1],ih[2]]));e.zoom=h3;e.tileTypeName=ie;return e},getCurrentViewTilesInfo:function(i){var e=this.tilesInfoCache[i.getName()];if(!e){return this.calcTilesInfo(i)}return e},ifTileInMapBounds:function(e,h0,T,hZ){var i=h0.normalizedBottomLeft;var ib=h0.normalizedTopRight;var h3=h0.normalizedTopLeft;var h1=h0.normalizedBottomRight;var hY=false;var ia=new hz(e.minX,e.minY);var h7=new hz(e.maxX,e.maxY);var h2=new hz(h7.lng,ia.lat);var h8=new hz(ia.lng,h7.lat);var h5=[h8,h7,h2,ia];for(var h9=0,h4=h5.length;h90){this.zoomState=1}else{if(e<0){this.zoomState=-1}}this.lastZoom=i;return this.zoomState}});function aR(e){this._map=e;this._spotsId=null;this._init()}aR.prototype._init=function(){var e=this._map;e.addEventListener("onspotsdataready",function(T){var i=T.spots;if(this._spotsId){e.removeSpots(this._spotsId)}this._spotsId=e.addSpots(i)})};bo.register(function(e){if(!e.config.enableIconClick){return}e._mapIcon=new aR(e)});function aU(e){this._indoorData={};this._map=e;this.currentUid=null;this.currentFloor=null;this._indoorControl=null;this.enterMethod=null;this.showMask=false;this._isMobile=gb();this._autoEnterZoom=19;if(this._isMobile){this._autoEnterZoom=17}this._init(e);window._indoorMgr=this}aU.prototype._init=function(i){var e=this;i.on("indoor_status_changed",function(h1){var T=h1.uid;var hZ=h1.floor;if(T===null){T=e.currentUid;if(e._indoorData[T]){hZ=e._indoorData[T].defaultFloor}if(e._indoorControl){e._indoorControl.hide()}e.currentUid=null;e.currentFloor=null;e.enterMethod=null}else{if(e._indoorData[T]){var h0=e._indoorData[T];hZ=(typeof hZ==="number")?hZ:h0.defaultFloor;if(!e._indoorControl){if(i.config.showControls&&i._displayOptions.indoor){e._indoorControl=new gH(i,h0)}}else{e._indoorControl.setInfo(h0);e._indoorControl.show()}e.currentUid=T;e.currentFloor=hZ}}if(!e._indoorData||!e._indoorData[T]||e._indoorData[T].currentFloor===hZ){this.fire(new bb("onrefresh"));return}var hY=new bb("onindoor_data_refresh");hY.uid=T;hY.floor=hZ;hY.tileKey=e._indoorData[T].tileKey;e._indoorData[T].currentFloor=hZ;e.currentFloor=hZ;this.fire(hY)});i.on("spotclick",function(hY){var T=null;if(hY.curAreaSpot&&this.areaSpots[hY.curAreaSpot]){T=this.areaSpots[hY.curAreaSpot].userData.uid}if(T===e.currentUid){if(hY.curAreaSpot){e.enterMethod="byClick"}return}if(T===null){if(e.currentUid&&e.enterMethod==="byClick"){i.showIndoor(null);e.enterMethod=null}}else{e.enterMethod="byClick";if(e.currentUid){i.showIndoor(e.currentUid,e._indoorData[e.currentUid].defaultFloor)}i.showIndoor(T,e._indoorData[T].defaultFloor)}});i.on("moveend",function(){if(this.getZoom()>=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)}}})};aU.prototype._checkIndoorByMove=function(){var T=this._map;var h4=T.getSize();var h9={x:h4.width/2,y:h4.height/2};var h8=Math.max(h4.width,h4.height);var ia=[];for(var h5 in this._indoorData){var e=this._indoorData[h5].center;var hY=T.pointToPixelIn(new bo.Point(e[0],e[1]));var h1=g2(h9,hY);ia.push({uid:h5,distance:h1})}if(ia.length===0){return}ia.sort(function(ib,i){return ib.distance-i.distance});var h0=ia[0];var h6=T.getCenterIn();var hZ=false;for(var h3=0;h3h2[0]&&h6.lat>h2[1]&&h6.lng=this._autoEnterZoom){this._checkIndoorByMove()}};aU.prototype.removeData=function(T,hZ){if(!this._indoorData[T]){return}var hY=this._indoorData[T];for(var e=0;e>>0;var ib=(id)&255;var ia=(id>>8)&255;var h8=(id>>16)&255;var h9=(id>>24)&255;h3[ic]=[ib,ia,h8,h9];return h3[ic]}return{getStyleFromCache:function(ig,ia,id,ie,h9,ic,h8){ig=ig||"default";var ib=ig+"-"+ia+"-"+id+"-"+ie;if(ic){ib+="-indoor"}if(h9){if(!h7[ib]){h7[ib]=h4(ia,id,ie,h9)}return h7[ib]}if(!hY[ib]){hY[ib]=h4(ia,id,ie,h9,h8)}return hY[ib]}}})();bo.register(function(i){var e=new dG(i)});function dG(e){e.container.appendChild(this.render());this.bind(e)}dG.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};dG.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 f7(e){eg.call(this);if(!e){return}this._opts={};this._map=e;this._maxLat=84.6;this._minLat=-80.6;this._maxLatMC=eq.convertLL2MC(new c4(this._maxLat,0)).lat;this._minLatMC=eq.convertLL2MC(new c4(this._minLat,0)).lat}f7.inherits(eg,"ToolbarItem");C.extend(f7.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 gR(T,i){f7.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:e8.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=e8.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;ed.load("tools",function(){e._draw()})}gR.inherits(f7,"PolylineTItem");C.extend(gR.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;Th4){hY-=h0;h2-=this._loopOffset}while(hYthis._mc180X){e-=this._mcTSpan}while(ethis._mc180X){i.lng-=this._mcTSpan;e-=this._mcTSpan;hZ-=this._mcTSpan}while(i.lng=h5){var h4=hY+h7;if(this.isTileBlank(h4,e,ia)===true){continue}var T="id_"+h4+"_"+ib+"_"+e;if(!h6[T]){h6[T]=true;h8.push([h4,ib,e,0])}}else{if(hY<=h1){var h4=hY-h7;if(this.isTileBlank(h4,e,ia)===true){continue}var T="id_"+h4+"_"+ib+"_"+e;if(!h6[T]){h6[T]=true;h8.push([h4,ib,e,0])}}}}for(var h2=0,h0=h8.length;h2=0;h2--){var hY=h6[h2][0];if(this.isTileBlank(hY,e,ia)){h6.splice(h2,1)}}return h6},isTileBlank:function(T,hZ,e){var h0=Math.pow(2,hZ-3);var i=Math.round(this._validPixels*h0);var hY=6*h0*256/e;while(T>hY/2-1){T-=hY}while(T<-(hY/2)){T+=hY}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},pixelWidth:function(e,i){if(e<0){e=-e}return Math.abs(e-this._mc180X)/(Math.pow(2,18-i))},getSpaceDistanceInPixel:function(i){var e=Math.round((this._spaceDistance+this._mSpaceDistance)/Math.pow(2,18-i));return e}};var d7=new cu();var ce=(function(){var i=true;var hZ=256;var e=true;var h1=aD("ditu","normalTraffic");var hY=h1.udt;var h2="//its.map.baidu.com/traffic/";var h0=[[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 cR({transparentPng:true,dataType:2,cacheSize:256,clipTile:true});T.zIndex=2;T.getTilesUrl=function(h5,h6){if(!h5||h6<7){return null}var h4=h5.x;var h7=h5.y;var h3=h2+"TrafficTileService?level="+h6+"&x="+h4+"&y="+h7+"&time="+(+new Date());if(this.map.getRenderType()==="webgl"){h3=h2+"?qt=vtraffic&z="+h6+"&x="+h4+"&y="+h7+"&udt="+hY}return h3};T.setColors=function(h3){for(var h6=0;h6h4){h8.tileCache.clear();return null}if(hZ.source!=="BD09MC"){ia.x=ey.getTilesLoop(ih,ia.x)}var ig=ey.getTileRangeExtent([ih,ia.x,ia.y]);var id=e([ig.minX,ig.minY,ig.maxX,ig.maxY]);if(!id){return null}var ib="";if(hY){ib=hY;var ic=/[^\{}]*\{(.*)\}[^\}]*/;ib.match(ic);var h9=[];if(RegExp.$1){h9=RegExp.$1.split(",")}ib=ib.replace(/\{(.*)\}/,h9[(ia.x+ia.y)%h9.length]);ib=ib.replace(/\[x\]/gi,h2(ia.x,ia.y,ih));ib=ib.replace(/\[y\]/gi,h6(ia.x,ia.y,ih));ib=ib.replace(/\[z\]/gi,h1(ia.x,ia.y,ih));ib=ib.replace(/\[b\]/gi,h5(ia.x,ia.y,ih))}else{return null}return ib};function e(h9){if(h7&&h7 instanceof Array&&h7.length===4){if((h7[0]<=h9[2]&&h7[1]<=h9[3])&&(h7[2]>=h9[0]&&h7[3]>=h9[1])){return true}else{return false}}return true}return h8};var aV=function(e){var e=e||{};this.inputCRS=e.inputCRS||"EPSG3857";this.outCRS=e.outCRS||"EPSG3857";this.minZoom=e.minZoom||3;this.maxZoom=e.maxZoom||19;this.retry=e.retry||false;this.retryTime=e.retryTime||600;this.useThumbData=e.useThumbData||true;this.lastZoom=3;this.cacheSize=e.cacheSize||128;this.tileType=cL.getInstance("web");this._mapCenter={};this._featureMgr=[[],[],[]];this._gridRefs={row:{},col:{}};this.tileCache=new e4(this.cacheSize,{clearCallback:function(i){}})};aV.inherits(eg,"BaiduLayer");C.extend(aV.prototype,{fetch:function(i,hY,hZ){var hY=Math.ceil(hY)||3;var i=i||[];if(i.length!==4||hY>19){hZ(null);return}var e=this.getZoomState(hY);var T=this.calCoord(i,hY,e);this.curViewTilesInfo=this.calTilesOrders(T.sw,T.ne,hY);this.clearData();this.clearRefs();this.loadLayerData(this.curViewTilesInfo,e,true,hZ)},calCoord:function(T,hY,i){if(T.length!==4){return}var e=gcoord.transform([T[0],T[1]],gcoord[this.inputCRS],gcoord.BD09MC);var hZ=gcoord.transform([T[2],T[3]],gcoord[this.inputCRS],gcoord.BD09MC);if(hZ[1]>19505879.362428114||e[1]<-15949096.637571886){hZ[1]=19505879.362428114;e[1]=-15949096.637571886}this._mapCenter[hY]=new hz((e[0]+hZ[0])/2,(e[1]+hZ[1])/2);return{sw:e,ne:hZ}},calTilesOrders:function(h3,h9,h5){var h6=this.tileType.getMercatorSize(h5,h5);var h1=[Math.floor(h3[0]/h6),Math.floor(h3[1]/h6)];var i=[Math.floor(h9[0]/h6),Math.floor(h9[1]/h6)];var h2=h1[0]-1;var h0=i[0]+2;var hZ=h1[1]-1;var h8=i[1]+2;var h4=[];for(var hY=h2;hY0){this.zoomState=1}else{if(e<0){this.zoomState=-1}}this.lastZoom=i;return this.zoomState||0},loadLayerData:function(h5,hY,hZ,h4){this.thumbCache={};if(hZ){for(var h2=0,h0=h5.length;h23){h3();return}var h4=h1.getTilesUrl(new em(e.col,e.row),e.zoom,i);hY.src=h4;i++},this.retryTime)}hY.onload=function(){h3();h0&&h0(this,T)};hY.onerror=function(){h3();h0&&h0(null,T)};hY.src=h2;return hY},rasterTileDataCbk:function(hZ,hY,h2){if(!hZ||typeof hZ==="string"){this.tileCache.removeData(hY);return}var i=hZ.tileInfo;var T=i.col;var h4=i.row;var h3=i.zoom;var e=this.tileCache.getData(hY);if(!e){return}e.textureSource=hZ;e.dataType=eM;e.tileInfo=i;e.status="ready";this.tileCache.setData(hY,e);var h0="id_"+T+"_"+h4+"_"+h3;var h1=false;if(this.curViewTilesInfo[h0]){e.png8=this.png8||false;e.key=hY;this.setData(e,2);h1=true}if(h1){this.calOutData(h2,e)}},getTilesUrl:function(hZ,h6,i){var h1=i||0;var T=hZ.x;var h7=hZ.y;var h3=aD("ditu","normal");var h2=h3.udt;var h5=b6.B_NORMAL_MAP.tileUrls;var h0=Math.abs(T+h7+h1)%h5.length;var h4=h5[h0];if(T<0){T="M"+(-T)}if(h7<0){h7="M"+(-h7)}var hY="x="+T+"&y="+h7+"&z="+Math.floor(h6);hY+="&styles=pl&scaler=2&udt="+h2+"&from=jsapi3_0";var e=h4+"?qt=vtile&"+hY;return e},calOutData:function(h4,T){if(!T){for(var h1=0;h10){e[0].sort(function(T,i){return T.tileInfo.useZoom-i.tileInfo.useZoom})}}});bo.register(function(i){if(i.config&&i.config.isOverviewMap){return}if(i.isLoaded()){fI(i)}else{i.addEventListener("load",function(){fI(this)})}i.cityName="中国";i.cCode="1";var e={};e.enableRequest=true;e.request=function(){if(e.enableRequest){e.enableRequest=false;setTimeout(function(){e._request()},500)}};e._request=function(){var hY=i.getBoundsIn();var h0=i.getZoom();var T=hY.getSouthWest();var hZ=hY.getNorthEast();cB.request(function(h4){if(h4.current_city["code"]>=9000&&h4.current_city["code"]<=9378){h4.current_city["name"]="台湾省"}if(h4.current_city["code"]>=20000&&h4.current_city["code"]<=20499){h4.current_city["name"]="新加坡"}if(h4.current_city["code"]>=20500&&h4.current_city["code"]<=25999){h4.current_city["name"]="泰国"}if(h4.current_city["code"]>=26000&&h4.current_city["code"]<=29999){h4.current_city["name"]="日本"}if(h4.current_city["code"]>=30000&&h4.current_city["code"]<=30999){h4.current_city["name"]="韩国"}if(h4.current_city["code"]>=31000&&h4.current_city["code"]<=37000){h4.current_city["name"]="亚太"}if(h4.current_city["code"]>=46609&&h4.current_city["code"]<=52505){h4.current_city["name"]="欧洲"}if(h4.current_city["code"]>=39509&&h4.current_city["code"]<=53500){h4.current_city["name"]="南美洲"}if(h4.current_city["code"]>=54000&&h4.current_city["code"]<=70000){h4.current_city["name"]="北美洲"}if(h4.current_city["code"]===54003&&h4.current_city["code"]>=60731&&h4.current_city["code"]<=61123){h4.current_city["name"]="美国"}if(h4.current_city["code"]===54015||h4.current_city["code"]>=57970&&h4.current_city["code"]<=60223){h4.current_city["name"]="加拿大"}if(h4.current_city["code"]===54025||h4.current_city["code"]>=54338&&h4.current_city["code"]<=57374){h4.current_city["name"]="墨西哥"}e.enableRequest=true;if(h4&&h4.current_city){var h3=h4.current_city["name"];var h2=h4.current_city["code"];if(h2!==i.cCode){var h1=new bb("oncitychange");h1.name=h3;h1.code=h2;i.dispatchEvent(h1)}i.cityName=h3;i.cCode=h2;if(!gb()){eA(i)}}},{qt:"cen",b:T.lng+","+T.lat+";"+hZ.lng+","+hZ.lat,l:h0},"","",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 fI(i){if(i.temp.copyadded){return}i.temp.copyadded=true;if(!i.cpyCtrl){var hY=new ec(2,2);i.config.cpyCtrlOffset=hY;if(gb()){hY.width=72;hY.height=0}var T=new dH({offset:hY,printable:true});i.cpyCtrl=T}if(!gb()){eA(i);i.addEventListener("maptypechange",function(){eA(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 ec(4,2))}});if(i.getSize().width>=300&&i.getSize().height>=100){e.show()}else{e.hide();T.setOffset(new ec(4,2))}i.addEventListener("oncopyrightoffsetchange",function(hZ){i.logoCtrl.setOffset(hZ.target.logo);i.cpyCtrl.setOffset(hZ.target.cpy)});i.dispatchEvent(new bb("oncopyrightaddend"))}function eA(id){if(!id.cpyCtrl){var im=new ec(2,2);if(gb()){im.width=72;im.height=0}var ih=new dH({offset:im,printable:true});id.cpyCtrl=ih}var ix=id.cityName||"中国";var ie=id.getMapType();var ig=["常州市","南昌市","乌鲁木齐市","无锡市","福州市","泉州市","珠海市","贵阳市"];var h7=["北京市","上海市","广州市","深圳市","宁波市","石家庄市","沈阳市","长春市","青岛市","温州市","台州市","金华市","佛山市","中山市","昆明市","南宁市","苏州市","西安市","济南市","郑州市","合肥市","呼和浩特市","杭州市","成都市","武汉市","长沙市","天津市","南京市","重庆市","大连市","东莞市","厦门市"];var h9=["香港特别行政区"];var h3=["台湾省"];var io=["日本"];var iv=["韩国"];var ii=["泰国"];var il=["亚太"];var h4=["新加坡"];var iw=["欧洲"];var hY=["南美洲"];var ir=["北美洲"];var T=["美国"];var ik=["墨西哥"];var h1=["加拿大"];for(var it in ig){if(ig[it]===ix){var ia=true;break}}for(var it in h7){if(h7[it]===ix){var hZ=true;break}}for(var it in h9){if(h9[it]===ix){var iz=true;break}}if(h3[0]===ix){var iq=true}if(h4[0]===ix){var i=true}if(io[0]===ix){var h6=true}if(iv[0]===ix){var ic=true}if(ii[0]===ix){var ib=true}if(il[0]===ix){var h2=true}if(iw[0]===ix){var h8=true}if(hY[0]===ix){var h5=true}if(ir[0]===ix){var e=true}if(T[0]===ix){var iu=true}if(h1[0]===ix){var ip=true}if(ik[0]===ix){var h0=true}var iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "];var ij="rgba(255, 255, 255, 0.701961)";if(id.getZoom()<=9){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(iq){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(h6||ic){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(i||ib){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(h2){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(h8){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(h5){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}else{if(e){iy=["© 2021 Baidu - GS(2021)6026号 - 甲测资字1100930 - 京ICP证030173号 - Data © "]}}}}}}}}if(id.getZoom()<=9){iy.push("长地万方");iy.push(' & OpenStreetMap');iy.push(' & HERE');if(ie===BMAP_SATELLITE_MAP||ie===BMAP_HYBRID_MAP){iy.push(' & ESO');ij="rgba(0,0,0,.7)"}}else{if(h6||ic){iy.push('OpenStreetMap')}else{if(i||ib){iy.push('HERE')}else{if(h2){iy.push('HERE');iy.push(' & Mapbox')}else{if(h8){iy.push('OpenStreetMap');iy.push(' & Mapbox')}else{if(h5){iy.push('OpenStreetMap');iy.push(' & Mapbox')}else{if(iu||h0||ip){iy.push('HERE');iy.push(' & Mapbox')}else{if(e){iy.push('OpenStreetMap');iy.push(' & Mapbox')}else{iy.push("长地万方");if(ia){iy.push(' & PalmCity')}if(iz){iy.push(' & MapKing')}if(iq){iy.push(' & HERE');iy.push(' & 樂客LocalKing')}if(ie===BMAP_SATELLITE_MAP||ie===BMAP_HYBRID_MAP){ij="rgba(0,0,0,.7)"}}}}}}}}}iy.unshift('');iy.push("");iy=iy.join("");id.cpyCtrl.addCopyright({id:1,content:iy})}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 eK="cur";var b2="cen";var ep="s";var P="con";var dM="bd";var gj="nb";var hP="bt";var cP="nav";var en="walk";var hL="gc";var fR="rgc";var eC="dec";var fh="bse";var fs="nse";var g="bl";var bc="bsl";var bp="bda";var X="sa";var az="nba";var bZ="drag";var H="ext";var d2="exts";var aO="hip";var R="ride";var fW="drct";var gv=2;var fT=4;var he=7;var hc=11;var fD=12;var hJ=14;var bQ=15;var dJ=18;var fk=20;var cI=21;var co=19;var fd=23;var ci=26;var ao=28;var el=31;var cF=35;var gn=44;var hW=45;var eN=46;var cD=47;var gE=-1;var g3=0;var hj=1;var cm=2;var b8=3;window.BMAP_POI_TYPE_NORMAL=0;var Q=1;var cc=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 fB=0;var cH=1;var hf=2;O.unique=function(T){var h0=false;var hZ=[];var h1={};for(var hY=0,e=T.length;hY21){T=21}return T};O.parseGeo=function(h1,h4){if(typeof h1!="string"||!h1){return}var h6=h1.split("|");var e;var hZ;var T;if(h6.length==1){e=gg(h1)}else{e=gg(h6[2]);hZ=gg(h6[0]);T=gg(h6[1]);if(!h4){return e}}var h2={type:e.geoType};if(h4){switch(h2.type){case hf:var h3=new hz(e.geo[0][0],e.geo[0][1]);var h5=eq.convertMC2LL(h3);h2.point=h5;h2.points=[h5];break;case cH:h2.points=[];var h7=e.geo[0];for(var h0=0,hY=h7.length-1;h00.25&&h8<1){h8=1}else{if(h8>32){h8=32}}}}var h3=ii.split("|");if(h3.length==1){var hY=gg(h3[0]);return{type:hY.type,bound:"",points:hY.geo.join(",")}}else{if(h3.length>1){var h9=ii.split(";.=");var h5=[];var hZ=[];var ia=0;var ie=h9.length;for(var ib=0;ib1){if(ib==0){ih=ih+";"}if(ib>0&&ib0){ig=O.parseGeoExtReg2(ig,h8)}hZ.push(ig)}if(ie<=1){hZ=hZ.join(";")}if(ie==2){var T=hZ[0]+";"+hZ[1];var h1=T.split(";");var e=[];for(var ib=0;ibga){e=ga-e}if(h2>ga){h2=ga-h2}hY.push(hY[T-2]+e);hY.push(hY[T-1]+h2);return 0}function cO(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(h0){var hY=[];if(typeof h0!=="string"){return hY}else{var hZ=h0.split(";");for(var T=0;TdN.MAX_PAGE_CAPACITY?dN.DEFAULT_PAGE_CAPACITY:e)}else{this._opts.pageCapacity=dN.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;ed.load("otherSearch",function(){e._asyncSearch()})}V.inherits(eg,"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 cS(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;ed.load("otherSearch",function(){var T=i._pendingCalls.length;for(var hY=0;hY=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=bI.MAX_PAGE_CAPACITY;return}}if(typeof e!=="number"){this._opts.pageCapacity=bI.MAX_PAGE_CAPACITY;return}if(e>=1&&e<=bI.MAX_PAGE_CAPACITY){this._opts.pageCapacity=Math.round(e)}else{this._opts.pageCapacity=bI.MAX_PAGE_CAPACITY}},toString:function(){return"TransitRoute"},_shortTitle:function(e){return e.replace(/\(.*\)/,"")}});window.BMAP_HIGHLIGHT_STEP=1;window.BMAP_HIGHLIGHT_ROUTE=2;var cK=function(e,hY){hm.call(this,e,hY);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;ed.load("route",function(){T._asyncSearch()},true);if(this.init_d){this.init_d()}};cK.ROAD_TYPE=["","环岛","无属性道路","主路","高速连接路","交叉点内路段","连接道路","停车场内部道路","服务区内部道路","桥","步行街","辅路","匝道","全封闭道路","未定义交通区域","POI连接路","隧道","步行道","公交专用道","提前右转道"];C.inherit(cK,hm,"DWRoute");C.extend(cK.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 fK(e,i){cK.call(this,e,i);i=i||{};this._opts._enableTraffic=i.enableTraffic||false;this.setPolicy(i.policy);this.QUERY_TYPE=cP;this.RETURN_TYPE=fk;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_DRIVING}C.inherit(fK,cK,"DrivingRoute");fK.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 ba(e,i){cK.call(this,e,i);this.QUERY_TYPE=en;this.RETURN_TYPE=el;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_WALKING;this._enableDragging=false}C.inherit(ba,cK,"WalkingRoute");function bm(e,i){cK.call(this,e,i);this.QUERY_TYPE=R;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_RIDING;this._enableDragging=false}C.inherit(bm,cK,"RidingRoute");window.BMAP_MODE_DRIVING="driving";window.BMAP_MODE_TRANSIT="transit";window.BMAP_MODE_WALKING="walking";window.BMAP_MODE_NAVIGATION="navigation";var be={web:"//api.map.baidu.com/direction?",android:"bdapp://map/direction?",ios:"baidumap://map/direction?"};function hA(e){this.opts=e||{}}C.extend(hA.prototype,{routeCall:function(hY,e,T){var i=this;ed.load("route",function(){i._asyncSearch(hY,e,T)})}});bo.Map=c8;bo.MapType=b6;bo.Point=hz;bo.Pixel=em;bo.Size=ec;bo.Bounds=dT;bo.TileLayer=cR;bo.Copyright=c5;bo.Projection=bo.Project=eq;bo.XYZProjection=bo.XYZProject=ey;bo.Convertor=ax;bo.RenderTypeUtils=a8;bo.Overlay=bl;bo.Label=fV;bo.Marker=aC;bo.Icon=hi;bo.Polyline=ak;bo.BezierCurve=ft;bo.PolylineMultipart=fr;bo.Polygon=hb;bo.Prism=cg;bo.Marker3D=cv;bo.GroundOverlay=cp;bo.InfoWindow=an;bo.SimpleInfoWindow=hO;bo.Circle=dF;bo.Control=a7;bo.NavigationControl=dt;bo.NavigationControl3D=eZ;bo.CopyrightControl=dH;bo.ScaleControl=ho;bo.CityListControl=ee;bo.MapTypeControl=bC;bo.ZoomControl=cy;bo.LocationControl=bA;bo.LogoControl=af;bo.DistanceTool=gR;bo.ContextMenu=cf;bo.MenuItem=fE;bo.OperationMask=ek;bo.Animation=o;bo.ViewAnimation=cM;bo.Transitions=cn;bo.Event=bb;bo.trafficLayer=ce;bo.XYZLayer=ff;bo.BaiduLayer=aV;bo.Geolocation=cS;bo.Geocoder=V;bo.Boundary=gF;bo.DistrictLayer=g8;bo.LocalCity=W;bo.LocalSearch=dN;bo.Autocomplete=g9;bo.BusLineSearch=d5;bo.WalkingRoute=ba;bo.RidingRoute=bm;bo.DrivingRoute=fK;bo.TransitRoute=bI;bo.RouteSearch=hA;function d4(e,i){for(var T in i){e[T]=i[T]}}bo.verify();bo.apiLoad();bo.frequency();bo.getSeckeyCid();window._layer=1;C.extend(g8.prototype,{_asyncSearch:function(){for(var T=0,e=this._queryList.length;T0){var ie=hY.geo.length;for(gy=0;gy0){var h6=T.length-1;var id=[];var h5=false;var ic=0;var ia=0;for(var ig=0;ig109&&ij.lng<113&&ij.lat>15&&ij.lat<19){if((ij.lng-ii.lng)>1&&(ij.lat-ii.lat<-1)){h5=true;ic=ig/2}if((ij.lng-ii.lng)<-1&&(ij.lat-ii.lat>1)){h5=true;ia=ig/2}}};id.push(h9.lng+", "+h9.lat)}if(h5===true){if(ic>ia){var ih=ic;ic=ia;ia=ih}var h3=id;var h1=id.splice(ic+1);var hZ=h1.splice(ia-ic);h3=h3.concat(hZ);ib.boundaries.push(h3.join(";"));ib.boundaries.push(h1.join(";"));h5=false;continue}if(id.length!==0){ib.boundaries.push(id.join(";"))}}}}}return ib}});window._layer=2;})(BMapGL,"BMapGL");