Files
hb_pqs_web/public/static/map/modules/navictrl_i3yt10.js

2 lines
15 KiB
JavaScript
Raw Permalink Normal View History

2025-01-09 19:02:44 +08:00
/**/_jsload2&&_jsload2('navictrl', 'x.extend(lb.prototype,{yf:function(){this.D&&this.Ie(this.D)},initialize:function(a){Nc.prototype.initialize.call(this,a);this.qr();this.Zv();this.Ba();this.ca={};!J()?this.BQ():this.AQ();this.$v(a.ga());this.CQ(a);this.k.SW&&this.H_();return this.C},qr:function(){this.Ui||(this.Ui=o,this.tT=19,this.xo=-1,this.cw=6,this.dk=1,this.ll=this.no=-1,this.aw=this.zJ=this.Of=p,this.Zu="1100")},CQ:function(a){var b=this;a.addEventListener("zoomend",function(){b.D&&(b.$v(b.D.ga()),!b.KI&&b.vr&&(b.Df=setTimeout(function(){b.IA()}, 1E3)))});a.addEventListener("mousewheel",function(){b.D&&(b.D.B.$o&&b.vr)&&(b.Df&&(clearTimeout(b.Df),b.Df=p),b.xJ())});a.addEventListener("load",function(){b.D&&b.$v(b.D.ga())});a.addEventListener("maptypechange",function(){b.D&&b.le()});a.addEventListener("zoomspanchange",function(){b.D&&b.le()})},le:function(){this.Zv();this.wn(this.k.type);this.D&&this.$v(this.D.ga())},Zv:function(){var a=this.D.oa();this.Uh=this.D.B.fc;this.Gf=this.D.B.Zb;this.vr=a==Qa||this.Uh!=a.hp()||this.Gf!=a.Dm()?q:o;this.C&& (this.C.style.width=this.RH(0).width+"px");this.k.UF||(this.vr=q);this.xo=this.Gf-this.Uh+1;this.no=this.dk+(this.xo-1)*this.cw},Ba:function(){Nc.prototype.Ba.call(this);var a=6==x.da.ma?" BMap_ie6":"",b=" BMap_stdMpType"+this.k.type,c=this.C;x.K.Ta(c,"BMap_stdMpCtrl");x.K.Ta(c,a);x.K.Ta(c,b);c.innerHTML=this.fr(this.k.type);this.OB(x.da.opera?"pointer":I.Xb);this.ld=x.$(c.children[0]);a=this.Of=x.$(c.children[1]);this.Hh=x.$(a.children[0]);this.cg=x.$(a.children[1]);this.zJ=x.$(a.children[2]);this.aw= x.$(a.children[2].children[0]);this.bw=x.$(a.children[2].children[1]);this.xG=this.C.children[1];this.OD=this.C.children[2];this.wn(this.k.type)},AU:function(){var a=this.RH(this.k.type),b=a.width,c=a.height,d=a.Hu,a=a.nu,e=(this.tT-this.xo)*this.cw;0==this.k.type&&(c=0<=c-e?c-e:0,d=0<=d-e?d-e:0,a=0<=a-e?a-e:0);this.C.style.width=b+"px";this.C.style.height=c+"px";this.Of.style.height=d+"px";this.Of.style.width=b+"px";this.cg.style.top=J()?"44px":d-21+"px";this.zJ.style.height=a+"px";this.aw.style.height= a+"px";this.Of.children[0].style.left=3==this.k.type?this.Of.children[1].style.left="0":this.Of.children[1].style.left=""},RH:function(a){var b=62;if(!this.k.UF||this.D.oa()==Qa)b=37;return[{width:b,height:204,Hu:159,nz:37,nu:120,$y:120},{width:37,height:97,Hu:42,nz:37,nu:0,$y:0},{width:37,height:57,Hu:0,nz:0,nu:0,$y:0},{width:22,height:42,Hu:42,nz:18,nu:0,$y:0},{width:35,height:71,nz:35,Hu:71,nu:0,$y:0}][a]},fr:function(){var a=[];a.push(this.tA());a.push(this.uA());a.push(this.gS());return a.join("")}, tA:ea(\'<div class="BMap_stdMpPan"><div class="BMap_button BMap_panN" title="\\u5411\\u4e0a\\u5e73\\u79fb"></div><div class="BMap_button BMap_panW" title="\\u5411\\u5de6\\u5e73\\u79fb"></div><div class="BMap_button BMap_panE" title="\\u5411\\u53f3\\u5e73\\u79fb"></div><div class="BMap_button BMap_panS" title="\\u5411\\u4e0b\\u5e73\\u79fb"></div><div class="BMap_stdMpPanBg BMap_smcbg"></div></div>\'),uA:function(){return J()?[\'<div class="BMap_stdMpZoom" style="width: 35px; height: 71px; background: rgba(255,255,255,.8); -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.4); border-radius: 3px;"><div class="BMap_button BMap_stdMpZoomIn" title="\\u653e\\u5927\\u4e00\\u7ea7" style="position: initial; background: initial; border-radius: initial; box-shadow: initial; width: 35px; height: 35px;">\', \'<div class="BMap_smcbg" style="position: initial; width: 35px; height: 35px; background-image: url(\'+B.la+\'images/navigation-control/mobile/plus-28x29.png); background-size: 14px 15px; background-position: center; background-repeat: no-repeat;">\',\'</div></div><div class="BMap_button BMap_stdMpZoomOut" title="\\u7f29\\u5c0f\\u4e00\\u7ea7" style="position: initial; background: initial; border-radius: initial; box-shadow: initial; width: 35px; height: 35px; border-top: 1px solid #ececec;">\',\'<div class="BMap_smcbg" style="position: initial; width: 35px; height: 35px; background-image: url(\'+ B.la+\'images/navigation-control/mobile/minus-30x6.png); background-size: 15px 3px; backgrou