_jsload_('mouse', 'g.Sb.Ib({rN:"_docMsMov",Fca:function(){var a=this.Ya.ad;g.F.h(a,"mousedown",this.Q4,this);g.F.h(document,"mousedown",this.W4,this);this.Epa||g.l.Ve||(this.hw=g.a.ND(this.hw,150,this),this.Epa=!0);this.s7();g.F.h(document,"mouseout",this.hw,this);this.h(this.rN,this.K6,this);g.F.h(a,"mouseover",this.R4,this);g.F.h(a,"mouseup",this.S4,this);g.F.h(a,"contextmenu",this.KF,this);g.F.h(a,"rightclick",this.KF,this)},zha:function(){var a=this.Ya.ad;g.F.G(a,"mousedown",this.Q4,this);g.F.G(document,"mousedown", this.W4,this);this.Jna();g.F.G(document,"mouseout",this.hw,this);this.G(this.rN,this.K6,this);g.F.G(a,"mouseover",this.R4,this);g.F.G(a,"mouseup",this.S4,this);g.F.G(a,"contextmenu",this.KF,this);g.F.G(a,"rightclick",this.KF,this)},Hca:function(){g.F.h(this.Ya.ad,"mousewheel",this.P4,this)},p_:function(){g.F.G(this.Ya.ad,"mousewheel",this.P4,this)},Kna:function(){g.F.G(document,"mousemove",this.hw,this);g.F.G(this.Ya.ad,"mousemove",this.$R,this)},s7:function(){g.F.h(document,"mousemove",this.hw,this); g.F.h(this.Ya.ad,"mousemove",this.$R,this)},Jna:function(){g.F.G(document,"mousemove",this.hw,this);g.F.G(this.Ya.ad,"mousemove",this.$R,this)},R4:function(){this.IG=!0},W4:function(){this.IG=!1},hw:function(a){if(!this.Kf&&!this.sg&&this.Ya){var b=this.Mi(a,!0,!0);this.r(this.rN,{event:a,TJ:b})}},Gca:function(){this.h("mousemove",this.N_);this.h("mouseout",this.O_);this.h("mouseover",this.P_);this.h("mouseup",this.Q_);this.h("mousedown",this.M_);this.h("rightclick",this.S_);this.h("contextmenu", this.E_);this.h("rdblclick",this.T_)},Bha:function(){this.G("mousemove",this.N_);this.G("mouseout",this.O_);this.G("mouseover",this.P_);this.G("mouseup",this.Q_);this.G("mousedown",this.M_);this.G("rightclick",this.S_);this.G("contextmenu",this.E_);this.G("rdblclick",this.T_)},keyboardEnableChanged:function(){this.get("keyboardEnable")?this.Dca():this.CO()},scrollWheelChanged:function(){this.get("scrollWheel")?this.h("mousewheel",this.R_):this.G("mousewheel",this.R_)},KF:function(a){g.F.preventDefault(a)}, qha:function(a){var b=this.Mi(a,!1,!0),c=0;"3D"==this.D.view.type?(this.qa("mousewheel",b),a.wheelDelta?(c=a.wheelDelta,window.opera&&g.a.Qh(window.opera.version)&&9.5>parseFloat(window.opera.version())&&(c=-c),0==c/120%1&&(c/=2)):a.detail&&(c=-a.detail,120!==c&&-120!==c&&(c*=20)),a=c/800,a=this.get("zoom")+a,this.v2(a,b.Ta,!0)):(a.wheelDelta?(c=a.wheelDelta/120,window.opera&&g.a.Qh(window.opera.version)&&9.5>parseFloat(window.opera.version())&&(c=-c)):a.detail&&(c=-a.detail),this.V.VC=(this.V.VC|| 0)+c,this.r("mousewheel",b))},P4:function(a){"info"!=a.af&&this.get("scrollWheel")&&this.qha(a)},cS:function(a,b){b=this.Mi(a,!1,!0);if(!this.Sv(b.Db,this.V.Hx)){var c=this.V;c.Hx=b.Db;if(c.Cr){if(!c.Cd&&(b.Db.x!==c.jo.x||b.Db.y!==c.jo.y)){var d;this.$N(c.au)&&c.au.get("draggable")&&(d=c.au);!d&&this.get("dragEnable")&&(d=this);d&&(c.Cd=!0,c.kq=d,c.gg=c.jo,c.jq=c.MT)}c.Cd&&(c.bk=b,b.button=a.buttons||a.button||0,this.UO())}}},qJ:function(){var a=this.TJ;g.f.fb(this.K,"amap-drag");g.f.Bpa();g.f.r3(); this.V&&(this.V.Cd=!1);this.V.Gp&&(this.V.Gp=!1,this.V.kq.r("dragend",a));this.V.Cr=!1;this.V.Hx=null;this.V.gg=null;g.F.G(document,"mousemove",this.cS,this);g.F.G(document,"mouseup",this.qJ,this);try{g.F.G(window.parent.document,"mouseup",this.qJ,this)}catch(b){}this.Ya&&(this.Kf&&(this.sg=this.Kf=!1),g.F.vza(this.Ya.ad),this.s7())},Mra:function(a,b){b=b||this.Mi(a,!1,!1,a.srcElement||a.target);var c=this.get("size"),d;0<=b.Db.x&&b.Db.x<=c.width&&0<=b.Db.y&&b.Db.y<=c.height&&(d=!0);this.J5&&!d?this.r("mouseout", b):!this.J5&&d&&this.r("mouseover",b);this.J5=d},$R:function(a){if(!this.Kf&&!this.sg&&this.Ya&&"info"!=a.af&&(g.F.preventDefault(a),g.l.Gs&&(a=window.event),a)){a=this.Mi(a,!1,!1,a.srcElement||a.target);var b=this.V,c=a.kd,d;if(c){this.V.Cr||(c instanceof g.B.Fh?d=c.Mb.get("cursor"):c instanceof g.q.Zb&&(d=c.get("cursor")),d&&c!==this||(d=this.D.De.defaultCursor),d=this.D.get("optimalCursor")||d,this.K.style.cursor=d||"");d=b.Rga;var e=a.uu;d!==e&&(d&&b.XZ&&b.XZ.r("mouseout",a),e&&c&&(c.r("mouseover", a),c.get("topWhenMouseOver")&&(c.Mb.C=!0,c.Mb.setTop(!0),c.Mb.C=!1)));a.kd.r("mousemove",a);a.kd!==this&&this.r("mousemove",a);b.Rga=a.uu||null;b.XZ=a.kd||null}}},Q4:function(a){if("info"!=a.af&&(this.IG=!0,g.f.Soa(),g.f.e3(),this.V.Hx=null,this.V.gg=null,"info"!=a.af)){var b=this.Mi(a,!0,!1,a.srcElement||a.target);if(b.kd){this.V.i3=new Date;this.V.au=b.kd;this.V.jo=b.Db;this.V.Nga=b.button;this.V.Cr=!0;this.V.Oga=b;this.V.Cd||(this.V.MT=b);this.Ie&&this.Ie.stop();var c=b.kd;!c.Mb&&c.get("dragEnable")&& (this.V.Cr=!0);g.f.Wa(this.K,"amap-drag");c=!1;b.kd.r("mousedown",b);b.kd!==this&&(this.r("mousedown",b),c=b.kd.get("draggable"));c=c||this.get("dragEnable");g.F.uxa(this.Ya.ad);g.F.h(document,"mousemove",this.cS,this);g.F.h(document,"mouseup",this.qJ,this);try{window.parent.document&&g.l.Gs&&g.F.h(window.parent.document,"mouseup",this.qJ,this)}catch(d){}g.F.stopPropagation(a);c&&this.Kna()}}},K6:function(a){this.Mra(a.event,a.TJ)},DDa:function(a){this.cS(a.event,a.TJ)},S4:function(a){if("info"!= a.af){this.TJ=a=this.Mi(a,!1,!1,a.srcElement||a.target);var b=a.kd;if(b){var c=this.D.get("allBubble")||b.get("bubble");b!==document&&(b.r("mouseup",a),a.kd!==this&&c&&this.r("mouseup",a));this.V.jo&&this.Sv(a.Db,this.V.jo)&&(this.bg&&this.Sv(this.V.Ex,a.Db)&&a.button===this.V.Nga?(clearTimeout(this.bg),this.bg=null,g.F.P5(a)?c?(b.r("dblclick",a),b!==this&&this.r("dblclick",a)):b.r("dblclick",a):b.r("rdblclick",a),this.V.Ex=null):(g.F.P5(a)?(this.r("clickstart",a),c?(b.r("click",a),b!==this&&this.r("click", a)):(b.r("click",a),this.r("closeOverlays",a)),b.get("topWhenClick")&&(b.Mb.C=!0,b.Mb.setTop(!0),b.Mb.C=!1),this.r("clickend",a)):c?(b.r("rightclick",a),b!==this&&this.r("rightclick",a),this.r("contextmenu",a)):(b.r("rightclick",a),b.r("contextmenu",a)),this.V.Ex=a.Db,this.bg&&clearTimeout(this.bg),this.bg=setTimeout(g.a.bind(function(){clearTimeout(this.bg);this.bg=null;this.V.Ex=null},this),260)))}}}});g.Sb.Ib({R_:function(a){this.qa("mousewheel",a);var b=this;if(1<=Math.abs(this.V.VC)&&!this.P$){var c=this.V.VC;if(1<=c)c=1;else if(-1>=c)c=-1;else return;b.eH(a.Ta,c);this.V.VC=0;this.P$=!0;setTimeout(function(){b.P$=!1;b.V.VC=0},g.l.pz?50:40)}},N_:function(a){this.qa("mousemove",a)},O_:function(a){this.qa("mouseout",a)},P_:function(a){this.qa("mouseover",a)},Q_:function(a){this.qa("mouseup",a)},M_:function(a){this.qa("mousedown",a)},S_:function(a){this.qa("rightclick",a)},E_:function(a){this.qa("contextmenu", a)},T_:function(a){this.get("doubleClickZoom")&&this.get("zoomEnable")&&this.eH(a.Ta,-1);this.qa("rdblclick",a)}});g.Sb.Ib({tga:function(){this.BB={left:[37],right:[39],IQ:[40],dF:[38],Qi:[187,107,61],Ri:[189,109,173]};this.pda={left:this.by(this.cH(100,0)),right:this.by(this.cH(-100,0)),IQ:this.by(this.cH(0,-100)),dF:this.by(this.cH(0,100)),Qi:this.by(this.J1(1)),Ri:this.by(this.J1(-1))}},Dca:function(){this.get("keyboardEnable")&&(this.BB||this.tga(),g.F.h(document,"keydown",this.aH,this),g.F.h(document,"keyup",this.A_,this))},CO:function(){g.F.G(document,"keydown",this.aH,this);g.F.G(document,"keyup",this.A_, this)},A_:function(a){var b=a.keyCode;!a.ctrlKey||37!==b&&39!==b||this.set("refresh",1)},aH:function(a){var b=a.keyCode,c;for(c in this.BB)if(this.BB.hasOwnProperty(c))for(var d=0;df&&(this.fq=f);this.aya()}},H7:function(){var a=new Date,b=!1;do if(b=this.parse(),new Date-a>=this.gW)break;while(!b);this.z7=b?null:g.a.Xc(this.H7,this)},aya:function(){this.z7|| (this.z7=g.a.Xc(this.H7,this))},roa:function(){return document.createElement("canvas")},parse:function(){var a,b=!1,c=this.fq,d=this.pw[this.fq];if(d.vh())6===c&&(b=!0),this.fq=(this.fq+1)%7;else{a=d.xua();var e=a[3],f=e.ja?512:256;if("groupcomplete"===a[0])e.set("display",0);else{var h=a[2];if(e.oa.Nd(h.key))if("co"===a[0])if(3===a[1])this.NT(e,h,f),h.ra.region&&e.$a.MK(h.ra.region,0,h.ta.z);else if(4===a[1])this.NT(e,h,f),h.ra.road&&e.$a.y8(h.ra.road,h.ta.z);else if(5===a[1]&&h.ra&&h.ra.building)a= g.Nj&&g.Nj.K5(e.e.D),e.Be?h.uf=h.ra.building:(this.NT(e,h,f),e.$a.MK(h.ra.building,1,h.ta.z,void 0,a));else{if(7===a[1]){h.ld&&(e.DL&&0===(h.ta.x+h.ta.y)%2&&h.ld.getContext("2d").drawImage(e.DL,0,0),h.wma=!0,g.l.GD&&h.ld.toDataURL&&(f=new Image,f.src=h.ld.toDataURL(),h.ld=f));if("3D"===(e.e.D&&e.e.D.getViewMode_())){if(h.ml){h.ml.cf=null;h.Vh=null;a=e.e.Hc;if(e.Cf&&a.Cf){c=a.Cf.cI(a.Cf.ca,h.ml);c.mc=a.Cf.mc;a={ni:c,tagName:"CANVAS",width:h.ml.width,height:h.ml.height};c=0;for(f=h.ha.length;c=this.pD(c)&&1>=this.pD(d)?1>=this.qD(c)&&1>=this.qD(d)?"middle":c[1]p){var s=Math.pow(2,p);if(q>=s||0>q)q=(q+s)%s}q=g.a.HI(q,r,p).join(",");g.a.ka(e,q)||e.push(q)}if(this.ay())if(m=this.Xea({Dya:d,Je:c,Od:b,hr:e}),m.FCa=(new Date).getTime(), this.Di)g.Kk.yh(m,function(a,c){if(f.e)if(c.S5){var d=c.Jb.map(function(a){return f.oa.get(a.key)}).filter(function(a){return a});f.Ml(d,b)}else f.Vo?(g.a.Ub(c.Jb,function(a){this.oa.set(a.key,a);a.td&&!a.td.loaded&&(g.jk.vm(a.td),a.td.loaded=!0);a.qe&&a.qe.uf&&g.Mj&&g.Mj.r("vecTileParsed.buildings",{tp:a})},f),f.set("display"),f.K1(c,!0)):(g.a.Ub(c.Jb,function(a){var b=this.oa.get(a.key);b&&(b.status=a.status,a.L&&a.L.Ca&&this.cha(a.L.Ca))},f),c.data&&f.Bz(c.data))});else{var u=g.Fc.s6;this.e.D.Ra&& !g.Fc.Toa&&this.e.D.xq||(u=g.Fc.yh);this.bG();u(m,function(a,c){if(f.e){if(c.S5){var d=c.Jb.map(function(a){return f.oa.get(a.key)}).filter(function(a){return a});f.Ml(d,b)}if(u===g.Fc.s6){if(c.disabled){g.Fc.Toa=!0;f.set("display");return}if(c.Pla)return}c.data&&(f.e.Ee!==c.Fu&&(f.e.Ee=c.Fu),g.a.Ub(c.Jb,function(a){var b=this.oa.get(a.key);b&&(b.status=a.status)},f),f.K1(c),c.data&&f.Bz(c.data))}})}else!this.Di&&this.Lc&&this.Lc.T5()?this.e.D.get("workerMode")?this.RG(d,b,e,c):(1>this.Lc.za.length|| 3=b){var e= this,f=this.e,h=f.D;f.QS||void 0!==f.YS||("dv"===h.get("baseRender")?f.YS=1:f.YS=2);d.get({type:h.Ra?"NFS":"FS",Be:this.g.zv||this.g.Be,yya:a,Nf:!!this.kl,q:this.g,url:this.Ny(b,[]),timeout:1E3},function(d,h){if(e.g){if(d)return c(null,a);h.I6.length&&c(null,h.I6);if(h.lS.length)if(h.lS.length===a.length&&(f.QS&&f.YS--,e.e.D.Ra||e.Di||e.HD||e.e.fU()),h.Pc){e.df=h.Ug["x-vd-v"];e.Oh=h.Ug.tv;var m=h.Ug.bgc;e.e.Ee!==m&&(e.e.Ee=m);g.a.forEach(h.lS,function(a){a.status="loaded"});e.D7(h.Pc,b)}else h.o6&& (g.a.forEach(h.o6,function(a){var b=e.oa.get(a.key);if(b){b.status="loaded";b.qe=a.qe;if(a.td){b.td=a.td;b.ha=a.ha;var c="limg-"+a.key+"-"+e.g.mc;b.td.Ck=c;b.ha&&(g.a.forEach(b.ha,function(a){a.Ca&&g.a.forEach(a.Ca,function(b,d){b&&0===b.indexOf("limg-")&&(a.Ca[d]=c)})}),g.jk.vm(b.td),b.td.loaded=!0)}b.qe&&b.qe.uf&&g.Mj&&g.Mj.r("vecTileParsed.buildings",{tp:b});b.Ba=b.Ra=!0;e.oa.set(a.key,b)}}),e.set("display"))}})}else c(null,a)},eha:function(a,b,c,d){if(!d||!this.dC()){var e=[(new Date).getTime(), this.Lc.za.length+1&65535,d?1:0].join("-"),f={command:"tiles",reqId:e,payload:{t:c,opt:b,cs:{level:b,flds:this.g.ha.join(","),v:g.Ue?"3":"2"}}},h;if(!this.Lc.GJ()){var k=this;setTimeout(function(){k.Lc&&!k.Lc.GJ()&&(k.ru?k.ru++:k.ru=1,k.Lc.upa(h)&&(delete k.ug[e],k.RG(a,b,c,d)))},300)}h=this.Lc.send(f);this.ug[e]={Jb:a,Od:b}}},pT:function(a){if(!a.Ra||a.Je)a.status="",a.Ra=void 0,a.Ba=null,a.ld=null,this.oa.Cw(a.key)},Xea:function(a){var b=a.Dya,c=a.Od,d=a.hr;a=a.Je;return{mc:+new Date+"_"+Math.random(), Fu:this.e.Ee,Dd:this.e.Dd,Di:this.Di,Vo:this.Vo,Be:this.g.Be,Csa:!!g.Ue,Vf:this.J.type,Nf:this.kl,OS:this.g.mc,ha:this.g.ha,Kc:this.g.ja,Ua:this.g.Ua,ZR:Math.ceil(this.qk.Xy),Jb:g.a.filter(b,function(a){return"loaded"!==a.status}),Od:c,hr:d,Je:a,url:this.Ny(c,d,b),Ch:this.$Y(c,[]),PFa:this.e.D.Ra}},$Y:function(a,b){return{AS:"3D"===this.J.type,ZP:this.g.Be,Xr:g.o.Xr||null,bDa:this.g.get("businessIconsID"),df:this.df,Dd:this.e.Dd,Oh:this.Oh,ZEa:this.g.get("iconsID"),PS:this.g.mc,Gv:a,az:this.g.az, Pf:!this.g.zn()&&this.g.S.get("merge"),Pc:b,ba:this.g.get("forceBig")||g.l.ba,Vf:this.J.type,mode:this.g.get("mode"),ewa:g.o.Cc,D8:this.g.get("forceBig")?1:this.g.Ua,Sq:this.g.get("forceBig")?!1:this.g.ja,iy:this.g.get("forceBig")||g.l.ba&&!this.g.ja?1:0}},cB:function(a){a=a.split(";");for(var b=0,c=a.length;bk&&(f<=e&&d(f+q,h,k),f>=q-e&&d(f-q,h,k));d(f,h,k)},SB:function(a){this.xu||(this.xu=[]);this.xu.push(a)},dk:function(){if(this.xu&&this.xu.length){for(var a=0,b=this.xu.length;af.readyState)){var c=4===f.readyState&&0===f.status;b!==k.gb&&c&&!f.Ot?(f.Ot=!0,k.Ml(a,b),f.onreadystatechange="",c||f.abort()):f.Ot||(3===f.readyState?(c=f.responseText.substring(h),f.Oq=d(c,f.Oq),h=f.responseText.length): 4===f.readyState&&(c=f.responseText.substring(h),k.Di&&(c+="|"),d(c,f.Oq),f.Oq=""))}};f.onerror=function(){};this.Nra||(this.Nra=1);f.open("GET",e,!0);f.send()},V9:function(a,b){var c=this.Jw||this.qk,d=a.ta.x,e=a.ta.y;return d>Math.floor(c.Ic/b)||dMath.floor(c.tc/b)||eg.a.Fa/2&&(d.x-=g.a.Fa);this.dQ=d.nd(this.Hg);for(d=c.length-1;0<=d;d-=1){var e=c[d];if(e.length){var f=e[0].ta.z,h=!1;if(e.wg&&!g.Ca.Ke&&("stable"==this.Hf||f<=this.zoom&&"zoomIn"===this.Hf||f>=this.zoom&&"zoomOut"===this.Hf)&&(!this.labels||!this.labels.length||this.MJ||a.Gi||!this.sE(this.labels.xk,this.qk)|| this.xJ(a)||this.ue!==a.ue)){h=!0;h=[];a.ue&&(h.push.apply(h,a.ue),this.ue=a.ue);a.ob.length?(h.push.apply(h,a.ob),this.QN=a.ob.hI):this.QN=null;for(var k=e.length-1;0<=k;k-=1){var l=e[k],m=!1,n=l.ha;l.se&&(l.se=!1,this.RI("poilabel",l.ha,void 0,!0),this.Vj.G3(l));!n&&l.pb&&l.pb.ha&&(n=l.pb.ha,m=!0);if(n)for(var p=0,l=n.length;pb.zIndex?-1:1:!a.Ed^!b.Ed?a.Ed?1:-1:a.Ed==b.Ed?a.id==b.id?a.te==b.te?a.nameb.te?-1:1:a.idb.Ed?-1:1});this.labels=e;this.labels.xk=this.qk;this.MJ=!1}}}if(this.gQ(a)){this.Bd();if(!this.e.D.Ra)return;this.lU(a);this.sh=this.labels}this.U6=!1;this.Oe(a)},eT:function(a){this.labels&&this.labels.opacity||(this.labels=[],this.labels.opacity={}); for(var b={},c=0;cg.a.Fa/2&&(b.x-=g.a.Fa);this.transform={translate:new g.H(a.P.Ha.Ac.x*(this.g.ja?this.g.Ua:1),a.P.Ha.Ac.y*(this.g.ja?this.g.Ua:1)),scale:1/(this.g.ja?this.g.Ua:1),rotate:0}},sE:function(a,b){return a.hc===b.hc&&a.Jc===b.Jc&&a.tc===b.tc&&a.Ic===b.Ic},xn:function(a, b){var c;if(this.zoom){var d=a.nd(Math.pow(2,20-this.zoom));this.labels&&(c=this.Lqa(d,b))&&(c.L5=!1);!c&&this.ob&&(c=this.Kqa(d))&&(c.L5=!0)}return c?[c]:[]},Lqa:function(a,b){for(var c=a.x,d=a.y,e=this.labels.CFa||this.labels,f=e.length-1;0<=f;f-=1){var h=e[f],k=h.za[0]/this.T,l=h.za[1]/this.T;if((h.Ys||!b)&&this.H5(h,c,d,k,l))return h}},Kqa:function(a){var b=a.x;a=a.y;for(var c=this.ob.length-1;0<=c;c-=1){var d=this.ob[c],e=d.za[0]/this.T,f=d.za[1]/this.T;if(d.Ys&&this.H5(d,b,a,e,f))return d}}, H5:function(a,b,c,d,e){for(var f=0;f=d+l-1&&b<=d+l+h+1&&c>=e+m-1&&c<=e+m+k+1)return!0}return!1},reloadChanged:function(){this.g&&(this.g.Ra=!1);this.oa.count&&(this.oa.clear(),g.Oj&&g.Oj.clear());this.labels=[];this.i6=[];this.Ob&&this.Ob.parentNode&&this.Ob.parentNode.removeChild(this.Ob);this.$m&&this.$m.parentNode&&this.$m.parentNode.removeChild(this.$m); this.set("display")},vj:function(){return this.$m},reCalcLabelPos:function(){this.oa&&this.oa.forEach(function(a){a.se=!0})},styleChanged:function(){this.reCalcLabelPos&&this.reCalcLabelPos()},RI:function(a,b,c,d){if(b&&("roadlabel"===a||"poilabel"===a))for(a=0;aA[0]||256<=A[0]||0>A[1]||256<=A[1])){var B=q.Hz(A,f),A={margin:0,z:m,zIndex:9E3,za:B,name:w[0],Bj:!0,Ta:A,Ca:[],aa:[],visible:!0,wk:!0};A.id="roadlabel_"+ g.a.zb(A);A.Wq=15>w[2]%90||75A[0]||256<=A[0]||0>A[1]||256<=A[1])){B=q.Hz(A,f);A={id:w[4],margin:n,zIndex:9001,za:B,name:w[0].replace("^",""),mk:!0,Ta:A,Ca:[],aa:[],visible:!0,wk:!0};A.id||(A.id="poilabel_"+g.a.zb(A));P=0;A.Ed=w[8];w[6]&&(I=w[6].split(":"),P=I[1],H=Math.floor((parseInt(I[0].split("_")[1])-28)/2));if(P&&w[3]){I=g.o.Cc+"://vdata.amap.com/style_icon/icon-"+ (1===H?"biz-":"normal-")+(k||l?"big":"small")+".png";A.Ca.push(I);P=parseInt(P)-1;I=Math.floor(P/10);L=P%10;l?(M=48,K=40,F=28):k?(M=K=40,F=28):(M=K=24,F=20);Q=M;if(151===P||152===P||153===P)F-=4,G=w[7][0][2],Q=M*Math.max(G+2,F)/F;I=[-Q/2,-M/2,Q,M,K*L,K*I,K,K];A.aa.push(I)}if(w[2]&&w[7])for(G=w[2],I=0;Ip&&(c<=m&&f(c+w,n,p),c>=w-m&&f(c-w,n,p));f(c,n,p);return h}};g.M.canvas.rM=g.M.canvas.Qj.extend({ka:[g.sM]});g.M.canvas.Qj.Ib({lU:function(a){this.Wx++;var b=this.$m,c=this.Rk;this.Wy={};var d=this.g.ja?this.g.Ua:1;this.lh=d;var e;0!==a.P.rotation?(e=2*Math.floor(a.P.Ha.Ac.x)*d,d*=2*Math.floor(a.P.Ha.Ac.y)):(e=a.size.width*d,d*=a.size.height);g.f.zm(b,e,d,!0);g.l.wna&&b.parentNode&&b.parentNode.appendChild(b);c.textBaseline="bottom";this.gk=0;this.labels&&this.KT(this.labels);this.labels&&this.Mwa(this.labels,c,g.Nj.Uqa(this.e.D),this.jd,e,d);this.f6=[];this.labels&&(this.labels.pp=this.zoom,this.labels.op= this.mb,this.labels.Rq=this.rotation,this.labels.NK=this.g.ja,this.labels.size=a.size);a.ob&&(this.ob=a.ob);this.ob&&(this.ob.pp=this.zoom,this.ob.op=this.mb,this.ob.Rq=this.rotation,this.ob.size=a.size);this.r("afterLabelRender")},Lwa:function(a,b,c){var d=void 0===b.wk?!0:b.wk,e=1,f=void 0===b.visible?!0:b.visible,h=null,k=this.e.J.be;if(b.Cm&&k){var l=k=h="";b.rc&&b.rc.length&&this.LQ&&(l=b.rc[0],h=l[3],k=l[4],l=b.Bj?"":l[7]);if(h=this.J.Py&&this.J.Py(h,k,l,b.Cm,b.Uu))f=h[4],d=h[3],e=h[5]}if(f){if(this.Rk.globalAlpha!== c||e)this.Rk.globalAlpha=c||e;f=0;for(k=b.Ca.length;fg.a.Fa/2?c-=g.a.Fa:c<-g.a.Fa/2&&(c+=g.a.Fa));return this.Mu(c,a[1])},Mu:function(a,b){var c=this.g.ja?this.g.Ua:1,d=this.T,e=0,f=0,e=(a-this.ge[0])/d,f=(b-this.ge[1])/d;return[Math.round(e*c),Math.round(f*c)]},h4:function(a,b){var c=a[0];b&&(c> g.a.Fa/2?c-=g.a.Fa:cb.Xd.x||c[1]>b.Xd.y||c[0]e?(a.opacity[b]-=e,d.ze=1,d.gk=1):a.opacity[b]=0}var d=this,e=0.34;if(!a.qF||"stable"==this.Hf&&"stable"!=this.NS){for(var f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l])}a.qF=!0}else if("zoomIn"== this.Hf){f=0;for(h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);f=0;for(h=a.length;fthis.zoom)for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);else for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);return!1},Mwa:function(a,b,c,d,e,f){d=!1;18===a.zoom&&18 l[0]||l[0]>e+256||-256>l[1]||l[1]>f+256||a.opacity[k.id]&&this.Lwa(l,k,a.opacity[k.id])}}},xJ:function(a){if(a.ob&&a.ob.length)if(this.ob&&this.ob.length){if(this.ob!==a.ob||this.ob.pp!==this.zoom||this.ob.op!==this.mb||this.ob.Rq!==this.rotation||!this.ob.size.hb(a.size))return!0}else return!0;else if(this.ob&&this.ob.length)return!0},gQ:function(a){this.sh&&this.sh.NK!==this.g.ja&&this.g.set("reload");return this.gk||this.xJ(a)||this.labels&&(this.e.kR||this.labels!==this.sh||!this.sh||this.sh.pp!== this.zoom||this.sh.op!==this.mb||a.Gi||this.sh.Rq!==this.rotation||this.sh.NK!==this.g.ja||!this.sh.size.hb(a.size))?!0:!1},p5:function(a,b,c){var d,e=b.aa.length,f=[];if(b.Ji>this.zoom)d=!0;else for(var h=0;ha?0:255< a?255:Math.round(a)},y1:function(a,b){for(var c=0;4>c;c++)a[b+c]=this.yla(a[b+c]);return a},gP:function(a,b){var c=259*(b+255)/(255*(259-b));return[c*(a[0]-128)+128,c*(a[1]-128)+128,c*(a[2]-128)+128]},Tka:function(a){return[255-a[0],255-a[1],255-a[2]]},hP:function(a,b){isNaN(b)&&(b=20);var c=Math.max(0,0.299*a[0]+0.587*a[1]+0.114*a[2]-b);switch(this.Eq){case "amap://styles/normal":case "normal":return[1*c,1.2*c,255];case "amap://styles/light":case "light":return[1*c,1*c,255];case "amap://styles/fresh":case "fresh":return[1* c,1*c,220];case "amap://styles/grey":case "amap://styles/dark":case "insight":case "dark":return[1.5*a[0],1.5*a[1],1*a[2]];case "amap://styles/blue":case "amap://styles/darkblue":case "blue_night":case "mapv":return[2*a[0],1.5*a[1],1*a[2]]}return!1},ega:function(a,b){var c=20,d=10;switch(b.So){case "active":c+=20,d+=20}return this.gP(this.hP(a,c),d)},sZ:function(a,b){var c=-110;switch(b.So){case "active":c+=30}return this.gP(this.hP(this.Tka(a),c),50)},bga:function(a){return this.gP(a,20)},rZ:function(a, b,c,d,e,f){var h=a[b],k=a[b+1],l=a[b+2];a=a[b+3];0b[m+3])){e++;kh[0]&&(h[0]=k);l>h[1]&&(h[1]=l);for(var n=!0,p=0;4>p;p++)if(220>b[m+p]){n=!1;break}n&&d++}}return{aAa:0Math.abs(a[0]-b[0])&&0.1>Math.abs(a[1]-b[1])},nla:function(a,b){for(var c=[a[0]],d=1,e=a.length;d=e&&f<=n)for(e=0;e=e&&f<=n)for(e=c-1;0<=e&&!this.yH(a,f,e,b, c,m,d);e--);}if(!l.length||!m.length)return null;m.reverse();h.reverse();if(this.Px(l[l.length-1],k[0])&&this.Px(k[k.length-1],m[0])&&this.Px(m[m.length-1],h[0])&&this.Px(h[h.length-1],l[0])){b=[m,h,l,k];e=0;for(a=b.length;eb[e].length||(b[e]=this.nla(b[e],d.B6),b[e])))return null;return[].concat(b[0]).concat(b[1].slice(1)).concat(b[2].slice(1)).concat(b[3].slice(1))}return null},Qea:function(a){for(var b=[Infinity,Infinity],c=[-Infinity,-Infinity],d=0,e=a.length;df&&(b[0]=f);b[1]>h&&(b[1]=h);c[0]e?this.tX(a,b,c,d):d&&d.call(this)}},this):d&&d.call(this)},Dda:function(a,b,c){a=a.createImageData(b.width,b.height);var d=a.data,e=a.width,f=a.height,h=c[0]+c[2],k=c[1],l=c[1]+c[3];for(c=c[0];cp;p++)d[n+p]=b.data[n+p];return a},Xga:function(a,b,c){var d=a[1]+(b[1]-a[1])*c;return[Math.round(a[0]+(b[0]-a[0])*c),Math.round(d)]},yga:function(a,b,c){for(var d=1/c,e=[],f=1;fs&&(a<=n&&c(a+q,r,s),a>=q-n&&c(a-q,r,s));c(a,r,s)},Mua:function(a,c){for(var d=a.fF,e=a.Dn,f=[],h=0,k=d.length;hv[0]||256<=v[0]||0>v[1]||256<=v[1])){var u=t.Hz(v,b),v={margin:0,z:f,zIndex:9E3,za:u,name:m[0],Bj:!0,Ta:v,Ca:[],aa:[],visible:!0,wk:!0};v.id="roadlabel_"+d.zb(v);v.Wq=15>m[2]%90||75v[0]||256<=v[0]||0>v[1]||256<=v[1])){u=t.Hz(v,b);v={id:m[4],margin:e,zIndex:9001,za:u,name:m[0].replace("^", ""),mk:!0,Ta:v,Ca:[],aa:[],visible:!0,wk:!0};v.id||(v.id="poilabel_"+d.zb(v));F=0;v.Ed=m[8];m[6]&&(K=m[6].split(":"),F=K[1],L=Math.floor((parseInt(K[0].split("_")[1])-28)/2));if(F&&m[3]){K=r.Cc+"://vdata.amap.com/style_icon/icon-"+(1===L?"biz-":"normal-")+(s||h?"big":"small")+".png";v.Ca.push(K);F=parseInt(F)-1;K=Math.floor(F/10);Q=F%10;O=J=N=0;h?(N=48,J=40,O=28):s?(N=J=40,O=28):(N=J=24,O=20);V=N;if(151===F||152===F||153===F)O-=4,w=m[7][0][2],V=N*Math.max(w+2,O)/O;K=[-V/2,-N/2,V,N,J*Q,J*K,J,J];2<= F&&5>=F&&(K[8]=!0);v.aa.push(K)}if(m[2]&&m[7])for(w=m[2],K=0;Kw&&(a<=l&&c(f,a+m,v,w),a>=m-l&&c(f,a-m,v,w));c(f,a,v,w)}}},function(a){a||(g.Kk.jta=!0)})}})();(function(){if(!g.Fc){g.Fc=g.KL();var a=g.a.oD({h:"on",we:"hasEvents",G:"off",fK:"offByContext",r:"emit",ui:"clearEvents"});g.Fc.xf(null,function(){return{psa:function(){var a=this;this.as=[];this.bs={};if("undefined"!==typeof worker)for(var c=0;10>c;c++){var d=new Worker(this.tna);d.status={index:c,k5:!0,DK:!1,hL:0};d.addEventListener("message",function(c){var d=c.data;c=c.target;d.ping&&200===d.status?(c.status.DK=!0,a.as.filter(function(a){return a.status.DK}).length===a.as.length&&(a.as.DK=!0)): d.result&&a.dwa(c,d)});this.as.push(d);d.postMessage({cmd:"ping",ts:(new Date).getTime()})}},dwa:function(a,c){var d=c.parentTaskId,e=c.taskId,f=this.bs[d],h=!1;f[e].data=c;f[e].index=a.status.index;for(var k=0,l=f.length;ks[1]?Math.PI:0:x[1]===s[1]?s=x[0]>s[0]?Math.PI/2:-Math.PI/2:(m=x[0]-s[0],x=x[1]-s[1],s=Math.atan(m/x),0m&&0>x?s=-s:0x?s=-s:0>m&&0b[2]?1:a.t5>b.t5?1:-1});for(var u={},v=0,t=q.length;vb[2]?1:a[2]r[1].length)break a;l=r[1];h=r[0]}else 2l;l++)h.push(c[0]+d*Math.cos(e),c[1]+d*Math.sin(e)),e+=f,0Math.sqrt(3)/2&&(d=Math.sqrt(3)/2);c=c.ps(d)}return c}function f(a,c,e){if(void 0===e||!0===e)b.push(a[0],a[1]),b.push(-c.y,c.x,0,0),b.push(n,0,0),d.push(a[2]);if(void 0===e||!1===e)b.push(a[0],a[1]),b.push(c.y,-c.x,0,0),b.push(n,0,0),d.push(a[2])}for(var k=a[0],l=a[a.length-1],n=0,r=void 0;k[0]===l[0]&&k[1]===l[1]&&k!==l;)a.pop(), l=a[a.length-1];a.push(k);a.push(a[1]);a.unshift(l);var q=a.length;a.forEach(function(a,d,k){var l=k[d-1];k=k[d+1];var u=void 0;l&&(n+=s.Vd(a,l));if(0===d||d===q-1)0===d?(u=s.normalize(new h(k[0]-a[0],k[1]-a[1])),c.push(0,1,2)):(u=s.normalize(new h(a[0]-l[0],a[1]-l[1])),d=b.length/p+2,c.push(d-3,d-1,d-2)),f(a,u);else{d=s.normalize(new h(a[0]-l[0],a[1]-l[1]));k=s.normalize(new h(k[0]-a[0],k[1]-a[1]));l=s.normalize(d.multiply(-1).rk(k));r=s.FS(l,d);f(a,e(d,k),!0);f(a,e(d,k),!1);f(a,e(d,k),!0);f(a,e(d, k),!1);a=b.length/p-4;k=a+2;var u=a*p,t=u+p,E=t+p,C=E+p;d=Math.abs(s.cos(d,l)/s.sin(d,l));l=m;r?(b[u+l]=d,b[t+l]=-d,b[E+l]=-d,b[C+l]=d):(b[u+l]=-d,b[t+l]=d,b[E+l]=d,b[C+l]=-d);c.push(a,a-1,a+1);c.push(k,k+1,k+2)}})}function e(c,d,e){function f(a,b){if(r)for(;0=a&&(a+=2*Math.PI);return a}};h.prototype={rk:function(a){return new h(this.x+a.x,this.y+a.y)},zf:function(a){return new h(this.x-a.x,this.y-a.y)},multiply:function(a){return"number"===typeof a?new h(this.x*a,this.y*a):this.x*a.x+this.y*a.y}, ps:function(a){return new h(this.x/a,this.y/a)},$u:function(a){var b=a.y;return this.x===a.x&&this.y===b}};return{parse:function(a,b){var h=a.lineJoin,h=void 0===h?"bevel":h,k=a.lineCap,k=void 0===k?"butt":k,l=a.Qsa,l=void 0===l?!1:l,m=a.ez,n=void 0===m?!1:m,r=a.v7,m=a.Mya,s=void 0===m?!0:m,m=a.Gsa,q=[],B=[],G=f(a.Rv,void 0===r?!0:r),r=[];l?(d(G,q,B,r),h=q.length,[0,1,2,h/p-1,h/p-2].forEach(function(a){q[a*p+8]=-1})):(c(G,q,B,h,n,r),e(G,q,B,k,r));s&&(q=new Float32Array(q),B=655351) {v_op=a_op.xy;v_TB=a_op.z;vec3 curPos=position.xyz;v_distance=a_Next.z;float ddis=0.0;vec3 previous=vec3(a_Previous.x+u_xDelta,a_Previous.y,0);vec3 next=vec3(a_Next.x+u_xDelta,a_Next.y,0);vec4 up,dir;v_distance *= u_scale;if(previous==curPos){ dir= vec4(normalize(next-curPos).xy,0,0);}else if(next==curPos){dir= -vec4(normalize(previous-curPos).xy,0,0);}else {vec3 dir0=previous-curPos;vec3 dir1=next-curPos;vec3 dir2=normalize(dir0);vec3 dir3=normalize(dir1);float f0=dir0.x*dir1.y-dir1.x*dir0.y;dir = vec4(0); v_cap=1.0;if(f0==0.0){up = vec4(dir3.y,-dir3.x,0,0); }else{vec3 dir4=normalize(dir2+dir3);float sinA=length(cross(dir4,dir2));float cosA=dot(dir4,dir2);if(sinA<0.5){sinA=0.5;}up= vec4(dir4,0)/sinA;ddis=abs(length(up)*cosA*u_width*0.5);if(f0<0.0){up=-up;ddis=-ddis;}v_distance += v_TB*a_Previous.z*ddis;}}if(previous==curPos||next==curPos){ up = vec4(dir.y,-dir.x,0,0); if(u_type==4){v_cap=sqrt(v_TB*v_TB+a_Previous.z*a_Previous.z);}else if(u_type==3){v_cap=1.0;}else{dir = vec4(0);}}vec4 pos=u_zoomMatrix*u_modelMatrix*position;pos=pos+(up*v_TB-dir*a_Previous.z)*u_width*0.5;gl_Position=u_othMatrix*pos;}else if (u_type==1) {v_Tags=a_Tags;gl_Position=u_othMatrix*u_zoomMatrix*u_modelMatrix*position;}}", naa:"precision lowp float;uniform vec4 u_FragColor,u_FragColor2;varying lowp float v_distance,v_TB;varying vec2 v_op;varying lowp float v_Tags;varying float v_cap;uniform lowp int u_type;uniform int u_isDash,u_onlyBorder;uniform vec4 u_dash;void main() {vec4 color=u_FragColor;if (u_type==0) {}else if(u_type>1) {if(v_op.x<-0.2||v_op.x>256.2||v_op.y<-0.2||v_op.y>256.2){discard;}if(v_cap>1.0){discard;}if(u_isDash==1){float all = u_dash[0] + u_dash[1] + u_dash[2] + u_dash[3];float off = mod(v_distance - u_dash[0], all);if(off> u_dash[0]&&off<=(u_dash[0]+u_dash[1])||off>(all-u_dash[3])){discard;}}if(u_onlyBorder==1&&v_TB<=0.7&&v_TB>=-0.7){discard;}}else if(u_type==1) {color=v_Tags==3.0?u_FragColor2:vec4((u_FragColor+(u_FragColor2-u_FragColor)*v_Tags/3.0).xyzw);}gl_FragColor=color;}", reloadChanged:function(){this.g&&(this.g.Ra=!1);this.oa.clear();this.xa&&this.xa.parentNode&&this.xa.parentNode.removeChild(this.xa);this.set("display")},Bz:function(a){if(this.g&&a.PS===this.g.mc)for(var b=0,c=a.Pc.length;bthis.zoom))for(d.uniform1i(this.zk,1),this.Zp(0,void 0,void 0),d.disableVertexAttribArray(this.hj),d.disableVertexAttribArray(this.gj),d.disableVertexAttribArray(this.Rg),d.enableVertexAttribArray(this.cy),f=0,h=e.length;f