2 lines
113 KiB
JavaScript
2 lines
113 KiB
JavaScript
|
|
/**/_jsload2&&_jsload2('panorama', 'Jf.prototype.VC=ia(2,function(){this.Nb.style[mf]="";this.Hi=this.si=q;this.Vv("h");this.Vv("v");this.ae(yf,window);this.ae(zf);this.ae(Af,window);this.ae(Bf,window);this.ae(Cf,window);this.options.Gk||(this.ae("DOMMouseScroll"),this.ae("mousewheel"));this.options.Gi&&this.ae(Df);this.options.Sw&&clearInterval(this.QV);this.options.wN&&this.options.wN.call(this)});var Cj=1; function Dj(a,b){var c=a.width,d=a.height,e=180/Math.pow(2,b),f=1;J()&&(f=2);c=e/(1<c/d?d:c);f=Math.floor(b)+f;for(d=360/(2*Math.pow(2,f-2)*c);512<d;)f++,d=360/(2*Math.pow(2,f-2)*c);f>vj&&(d*=Math.pow(2,f-vj),f=vj);f<Cj&&(f=Cj);d=Math.round(d);return{rM:f,VK:d}}var Ej=5063,Fj=5062,Gj=5061,Hj=5060,vj=5,Cj=1; x.extend(Pa.prototype,{Ab:function(){this.kR();for(var a=0;a<B.Fr.length;a++)B.Fr[a](this);this.Ya!=p?"inter"===this.Le?this.KF(this.Ya):this.dispatchEvent(new N("onid_changed")):this.Kb!=p&&(this.dispatchEvent(new N("onposition_changed")),this.dispatchEvent(new N("onposition_changed_inner")));this.k.visible?this.show():this.U();this.Nf!=p&&this.dispatchEvent(new N("onvisible_poi_type_changed"),{visiblePOIType:this.Nf});var a=p,b;for(b in this.Ke)a=this.Ke[b],delete this.Ke[b],this.Ja(a);this.U()}, fu:function(a){this.Nf=a||"none";this.dispatchEvent(new N("onvisible_poi_type_changed"),{visiblePOIType:this.Nf})},Ja:function(a){this.Ke[a.kd]=a;this.dispatchEvent(new N("onadd_overlay"),{overlay:a})},Ub:function(a){delete this.Ke[a.kd];this.dispatchEvent(new N("onremove_overlay"),{overlay:a})},j1:function(a,b){var c=H("div"),d=c.style;c.className="pano_m_indoor_exit";c.title=a;c.onclick=b;d.display="none";d.zIndex=1201;c.innerHTML=\'<span style="float:right;margin-right:12px;">\\u51fa\\u53e3</span>\'; return c},i1:function(a,b){var c=H("div"),d=c.style;d.position="absolute";d.zIndex=1201;d.right=d.top="10px";d.width="17px";d.height="16px";d.background=\'url("\'+I.pa+\'st-close.png") no-repeat 50% 50%\';J()&&(d.right=d.top="0px",d.width="42.5px",d.height="40px",d.backgroundSize="25.5px 24px");d.cursor="pointer";c.title=a;c.onclick=b;d.display="none";return c},rc:function(a,b,c){"object"===typeof b&&(c=b,b=j);a!=this.Ya&&(this.xl=this.Ya,this.yl=this._position,this.Ya=a,this.KA=p,this.Le=b||"street", c=c||{qk:q},this.MJ=c.qk,"inter"===b?this.KF(a):this.dispatchEvent(new N("onid_changed")),this.w_(c))},w_:function(a){this.Kv={id:this.Yb(),pov:a.pov}},LX:function(a,b){var c,d;if(this.Kv&&a===this.Kv.id){c={};for(var e=0;e<b.length;e++)d=b[e],c[d]=this.Kv[d];this.Kv=p}return c},ta:function(a,b){a.ab(this.Kb)||(this.xl=this.Ya,this.yl=this._position,this.Kb=a,this.Ya=p,b=b||{qk:q},this.MJ=b.qk,this.dispatchEvent(new N("onposition_changed_inner")))},Nc:function(a){var b={heading:this.Ea.heading,pitch:this.Ea.pitch}; this.Ea=a;a=a=this.Ea.pitch;a>this.ck?a=this.ck:a<this.ek&&(a=this.ek);this.Ea.pitch=a;if(b.heading!=this.Ea.heading||b.pitch!=this.Ea.pitch)this.Mr=o,this.dispatchEvent(new N("onpov_changed"))},Sy:function(a){var b=this.Ea,c=a.heading-b.heading,d=a.pitch-b.pitch,e=this;new ub({Hc:30,duration:200,hc:vb.hL,va:function(a){e.Nc({heading:b.heading+a*c,pitch:b.pitch+a*d})},finish:function(){e.Nc(a)}})},Oc:function(a,b){if(a!=this.Kc){a>Me&&(a=Me);a<Ne&&(a=Ne);if(a!=this.Kc){this.Kc=a;var c=new N("onzoom_changed_inner"), b=b||{};c.Hp=b.Hp||q;this.dispatchEvent(c);(!Oa()||c.Hp)&&this.dispatchEvent(new N("onzoom_changed"))}"cssRender"===this.mr()&&this.Nc(this.Ea)}},NB:function(){if(this.D){for(var a=this.D.Mx(),b=0;b<a.length;b++)(a[b]instanceof W||a[b]instanceof nd)&&a[b].point&&this.wa.push(a[b]);this.dispatchEvent(new N("onoverlay_changed"))}},Hk:function(){this.Hl.style.visibility="hidden"},Yy:function(){this.dispatchEvent(new N("onoverlay_show"));this.Hl.style.visibility="visible"},show:function(){this.k.visible= o;this.Ed&&x.K.show(this.Ed);this.Ed&&(this.k.closeControl&&this.Af&&this.D&&this.D.Ka()===this.C)&&x.K.show(this.Af);this.nB&&this.nB.show();this.NB();this.dispatchEvent(new N("onvisible_changed"))},U:function(){this.k.visible=q;this.Ed&&x.K.U(this.Ed);this.k.closeControl&&this.Af&&x.K.U(this.Af);this.n
|