1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
|
_jsload2&&_jsload2('navictrl', 'z.extend(jb.prototype,{zf:function(){this.B&&this.He(this.B)},initialize:function(a){Vb.prototype.initialize.call(this,a);this.hr();this.Wv();this.Aa();this.ba={};!H()?this.AQ():this.zQ();this.Xv(a.fa());this.BQ(a);this.j.$W&&this.P_();return this.C},hr:function(){this.Li||(this.Li=q,this.vT=19,this.ro=-1,this.$v=6,this.Wj=1,this.il=this.fo=-1,this.Yv=this.uJ=this.Pf=s,this.Hz="1100")},BQ:function(a){var b=this;a.addEventListener("zoomend",function(){b.B&&(b.Xv(b.B.fa()),!b.FI&&b.lr&&(b.Ef=setTimeout(function(){b.AA()}, 1E3)))});a.addEventListener("mousewheel",function(){b.B&&(b.B.K.Uo&&b.lr)&&(b.Ef&&(clearTimeout(b.Ef),b.Ef=s),b.sJ())});a.addEventListener("load",function(){b.B&&b.Xv(b.B.fa())});a.addEventListener("maptypechange",function(){b.B&&b.je()});a.addEventListener("zoomspanchange",function(){b.B&&b.je()})},je:function(){this.Wv();this.hn(this.j.type);this.B&&this.Xv(this.B.fa())},Wv:function(){var a=this.B.oa();this.Lh=this.B.K.gc;this.Hf=this.B.K.Yb;this.lr=a==Qa||this.Lh!=a.bp()||this.Hf!=a.sm()?t:q;this.C&& (this.C.style.width=this.LH(0).width+"px");this.j.OF||(this.lr=t);this.ro=this.Hf-this.Lh+1;this.fo=this.Wj+(this.ro-1)*this.$v},Aa:function(){Vb.prototype.Aa.call(this);var a=6==z.ca.ia?" BMap_ie6":"",b=" BMap_stdMpType"+this.j.type,c=this.C;z.D.Ua(c,"BMap_stdMpCtrl");z.D.Ua(c,a);z.D.Ua(c,b);c.innerHTML=this.Vq(this.j.type);this.HB(z.ca.opera?"pointer":G.Vb);this.md=z.$(c.children[0]);a=this.Pf=z.$(c.children[1]);this.Ah=z.$(a.children[0]);this.fg=z.$(a.children[1]);this.uJ=z.$(a.children[2]);this.Yv= z.$(a.children[2].children[0]);this.Zv=z.$(a.children[2].children[1]);this.sG=this.C.children[1];this.ED=this.C.children[2];this.hn(this.j.type)},CU:function(){var a=this.LH(this.j.type),b=a.width,c=a.height,e=a.Du,a=a.hu,f=(this.vT-this.ro)*this.$v;0==this.j.type&&(c=0<=c-f?c-f:0,e=0<=e-f?e-f:0,a=0<=a-f?a-f:0);this.C.style.width=b+"px";this.C.style.height=c+"px";this.Pf.style.height=e+"px";this.Pf.style.width=b+"px";this.fg.style.top=H()?"44px":e-21+"px";this.uJ.style.height=a+"px";this.Yv.style.height= a+"px";this.Pf.children[0].style.left=3==this.j.type?this.Pf.children[1].style.left="0":this.Pf.children[1].style.left=""},LH:function(a){var b=62;if(!this.j.OF||this.B.oa()==Qa)b=37;return[{width:b,height:204,Du:159,dz:37,hu:120,Ty:120},{width:37,height:97,Du:42,dz:37,hu:0,Ty:0},{width:37,height:57,Du:0,dz:0,hu:0,Ty:0},{width:22,height:42,Du:42,dz:18,hu:0,Ty:0},{width:35,height:71,dz:35,Du:71,hu:0,Ty:0}][a]},Vq:function(){var a=[];a.push(this.lA());a.push(this.mA());a.push(this.iS());return a.join("")}, lA:ca(\'<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>\'),mA:function(){return H()?[\'<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.ka+\'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.ka+\'images/navigation-control/mobile/minus-30x6.png); background-size: 15px 3px; background-p
|