1 line
113 KiB
JavaScript
1 line
113 KiB
JavaScript
|
|
_jsload2&&_jsload2('panorama', 'Ye.prototype.NC=ha(2,function(){this.Nb.style[De]="";this.xi=this.ii=t;this.Sv("h");this.Sv("v");this.$d(Pe,window);this.$d(Qe);this.$d(Re,window);this.$d(Se,window);this.$d(Te,window);this.options.Dk||(this.$d("DOMMouseScroll"),this.$d("mousewheel"));this.options.wi&&this.$d(Ue);this.options.Pw&&clearInterval(this.XV);this.options.xN&&this.options.xN.call(this)});var dj=1; function ej(a,b){var c=a.width,e=a.height,f=180/Math.pow(2,b),g=1;H()&&(g=2);c=f/(1<c/e?e:c);g=Math.floor(b)+g;for(e=360/(2*Math.pow(2,g-2)*c);512<e;)g++,e=360/(2*Math.pow(2,g-2)*c);g>ji&&(e*=Math.pow(2,g-ji),g=ji);g<dj&&(g=dj);e=Math.round(e);return{qM:g,RK:e}}var fj=5063,gj=5062,hj=5061,ij=5060,ji=5,dj=1; z.extend(Oa.prototype,{ib:function(){this.jR();for(var a=0;a<B.ur.length;a++)B.ur[a](this);this.Za!=s?"inter"===this.Ke?this.EF(this.Za):this.dispatchEvent(new P("onid_changed")):this.Lb!=s&&(this.dispatchEvent(new P("onposition_changed")),this.dispatchEvent(new P("onposition_changed_inner")));this.j.visible?this.show():this.U();this.Of!=s&&this.dispatchEvent(new P("onvisible_poi_type_changed"),{visiblePOIType:this.Of});var a=s,b;for(b in this.Je)a=this.Je[b],delete this.Je[b],this.Ga(a)},au:function(a){this.Of= a||"none";this.dispatchEvent(new P("onvisible_poi_type_changed"),{visiblePOIType:this.Of})},Ga:function(a){this.Je[a.ld]=a;this.dispatchEvent(new P("onadd_overlay"),{overlay:a})},Qb:function(a){delete this.Je[a.ld];this.dispatchEvent(new P("onremove_overlay"),{overlay:a})},z1:function(a,b){var c=L("div"),e=c.style;c.className="pano_m_indoor_exit";c.title=a;c.onclick=b;e.display="none";e.zIndex=1201;c.innerHTML=\'<span style="float:right;margin-right:12px;">\\u51fa\\u53e3</span>\';return c},y1:function(a, b){var c=L("div"),e=c.style;e.position="absolute";e.zIndex=1201;e.right=e.top="10px";e.width="17px";e.height="16px";e.background=\'url("\'+G.qa+\'st-close.png") no-repeat 50% 50%\';H()&&(e.right=e.top="0px",e.width="42.5px",e.height="40px",e.backgroundSize="25.5px 24px");e.cursor="pointer";c.title=a;c.onclick=b;e.display="none";return c},vc:function(a,b,c){"object"===typeof b&&(c=b,b=l);a!=this.Za&&(this.ul=this.Za,this.vl=this._position,this.Za=a,this.CA=s,this.Ke=b||"street",c=c||{kk:t},this.IJ=c.kk, "inter"===b?this.EF(a):this.dispatchEvent(new P("onid_changed")),this.C_(c))},C_:function(a){this.Hv={id:this.Xb(),pov:a.pov}},TX:function(a,b){var c,e;if(this.Hv&&a===this.Hv.id){c={};for(var f=0;f<b.length;f++)e=b[f],c[e]=this.Hv[e];this.Hv=s}return c},sa:function(a,b){a.pb(this.Lb)||(this.ul=this.Za,this.vl=this._position,this.Lb=a,this.Za=s,b=b||{kk:t},this.IJ=b.kk,this.dispatchEvent(new P("onposition_changed_inner")))},Pc:function(a){var b={heading:this.Da.heading,pitch:this.Da.pitch};this.Da= a;a=a=this.Da.pitch;a>this.Vj?a=this.Vj:a<this.Xj&&(a=this.Xj);this.Da.pitch=a;if(b.heading!=this.Da.heading||b.pitch!=this.Da.pitch)this.Br=q,this.dispatchEvent(new P("onpov_changed"))},My:function(a){var b=this.Da,c=a.heading-b.heading,e=a.pitch-b.pitch,f=this;new tb({Ic:30,duration:200,kc:ub.dL,va:function(a){f.Pc({heading:b.heading+a*c,pitch:b.pitch+a*e})},finish:function(){f.Pc(a)}})},Qc:function(a,b){if(a!=this.Mc){a>ae&&(a=ae);a<be&&(a=be);if(a!=this.Mc){this.Mc=a;var c=new P("onzoom_changed_inner"), b=b||{};c.xp=b.xp||t;this.dispatchEvent(c);(!Na()||c.xp)&&this.dispatchEvent(new P("onzoom_changed"))}"cssRender"===this.er()&&this.Pc(this.Da)}},GB:function(){if(this.B){for(var a=this.B.Hx(),b=0;b<a.length;b++)(a[b]instanceof U||a[b]instanceof uc)&&a[b].point&&this.ya.push(a[b]);this.dispatchEvent(new P("onoverlay_changed"))}},Ek:function(){this.Dl.style.visibility="hidden"},Ry:function(){this.dispatchEvent(new P("onoverlay_show"));this.Dl.style.visibility="visible"},show:function(){this.j.visible= q;this.qe&&z.D.show(this.qe);this.j.closeControl&&(this.Bf&&this.B&&this.B.La()===this.C)&&z.D.show(this.Bf);this.gB&&this.gB.show();this.GB();this.dispatchEvent(new P("onvisible_changed"))},U:function(){this.j.visible=t;this.qe&&z.D.U(this.qe);this.j.closeControl&&this.Bf&&z.D.U(this.Bf);this.gB&&this.gB.U();this.di
|