You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
113 KiB

/**/_jsload2 && _jsload2('panorama', 'Nf.prototype.hD=ja(2,function(){this.Nb.style[qf]="";this.Hi=this.si=q;this.hw("h");this.hw("v");this.ae(Cf,window);this.ae(Df);this.ae(Ef,window);this.ae(Ff,window);this.ae(Gf,window);this.options.Ik||(this.ae("DOMMouseScroll"),this.ae("mousewheel"));this.options.Gi&&this.ae(Hf);this.options.fx&&clearInterval(this.kW);this.options.MN&&this.options.MN.call(this)});var Ij=1; function Jj(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>Bj&&(d*=Math.pow(2,f-Bj),f=Bj);f<Ij&&(f=Ij);d=Math.round(d);return{GM:f,jL:d}}var Kj=5063,Lj=5062,Mj=5061,Nj=5060,Bj=5,Ij=1; x.extend(Qa.prototype,{Ab:function(){this.DR();for(var a=0;a<B.Tr.length;a++)B.Tr[a](this);this.Ya!=p?"inter"===this.Le?this.ZF(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.Ka(a);this.U()}, ru:function(a){this.Nf=a||"none";this.dispatchEvent(new N("onvisible_poi_type_changed"),{visiblePOIType:this.Nf})},Ka: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})},O1: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},N1: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=k);a!=this.Ya&&(this.Dl=this.Ya,this.El=this._position,this.Ya=a,this.XA=p,this.Le=b||"street", c=c||{rk:q},this.aK=c.rk,"inter"===b?this.ZF(a):this.dispatchEvent(new N("onid_changed")),this.R_(c))},R_:function(a){this.Wv={id:this.Yb(),pov:a.pov}},fY:function(a,b){var c,d;if(this.Wv&&a===this.Wv.id){c={};for(var e=0;e<b.length;e++)d=b[e],c[d]=this.Wv[d];this.Wv=p}return c},ta:function(a,b){a.ab(this.Kb)||(this.Dl=this.Ya,this.El=this._position,this.Kb=a,this.Ya=p,b=b||{rk:q},this.aK=b.rk,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.dk?a=this.dk:a<this.fk&&(a=this.fk);this.Ea.pitch=a;if(b.heading!=this.Ea.heading||b.pitch!=this.Ea.pitch)this.$r=o,this.dispatchEvent(new N("onpov_changed"))},dz:function(a){var b=this.Ea,c=a.heading-b.heading,d=a.pitch-b.pitch,e=this;new wb({Hc:30,duration:200,hc:xb.wL,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>Qe&&(a=Qe);a<Re&&(a=Re);if(a!=this.Kc){this.Kc=a;var c=new N("onzoom_changed_inner"), b=b||{};c.Up=b.Up||q;this.dispatchEvent(c);(!Pa()||c.Up)&&this.dispatchEvent(new N("onzoom_changed"))}"cssRender"===this.Ar()&&this.Nc(this.Ea)}},$B:function(){if(this.D){for(var a=this.D.Yx(),b=0;b<a.length;b++)(a[b]instanceof W||a[b]instanceof ud)&&a[b].point&&this.wa.push(a[b]);this.dispatchEvent(new N("onoverlay_changed"))}},Jk:function(){this.Nl.style.visibility="hidden"},kz:function(){this.dispatchEvent(new N("onoverlay_show"));this.Nl.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.Ga()===this.C)&&x.K.show(this.Af);this.AB&&this.AB.show();this.$B();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