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
6.3 KiB
1 line
6.3 KiB
10 months ago
|
/**/_jsload2 && _jsload2('pcommon', 'function Ej(a){this.P=a;this.Fw=[];this.Nf=p;this.Xl=new bd(p,{of:"api"});this.bA()}var Fj={none:["-1",""],transit:["0","m_transit.png"],hotel:["1","m_hotel.png"],catering:["2","m_catering.png"],movie:["3","m_movie.png"],transit:["4","m_transit.png"],indoor_scene:["5","m_indoor_scene.png"]};B.kn(function(a){new Ej(a)}); x.extend(Ej.prototype,{bA:function(){var a=this;pano=a.P;pano.addEventListener("visible_poi_type_changed",function(b){a.Z_(b.visiblePOIType)});pano.addEventListener("position_changed",function(){a.Nf&&a.tJ()})},Z_:function(a){this.Nf=a;this.tJ()},sR:function(){for(var a=this.Fw.length-1;0<=a;a--)this.P.Ub(this.Fw[a]);this.Fw=[]},tJ:function(){this.sR();if("inter"!==pano.Bt()){var a=Fj[this.Nf],b=this.P.ia(),c=this.P.Yb(),d=this;this.Xl.FE(b,200,a[0],function(b){var f=d.P.Yb();if(f===c)for(var g=p, g=p,i=0,j=b.length;i<j;i++)if(g=b[i],15>i||g.panoInfo&&g.panoInfo.panoId==f)g=new Xe(g.position,{icon:I.pa+"panorama/"+a[1],title:g.title,altitude:g.altitude,panoInfo:g.panoInfo}),d.P.Ka(g),d.Fw.push(g)})}}});function Gj(a,b){this.P=a;this.C=b;this.ir=p;this.Xl=new bd(p,{of:"api"});this.HB=[];this.Hs();this.nm()}B.kn(function(a){function b(){var b=a.Bt();a.k.indoorSceneSwitchControl==q||"street"==b?c&&c.U():"inter"==b&&(c||(c=new Gj(a,a.C)),c.M0(a.Yb()),c.show())}a.addEventListener("scene_type_changed",b);a.addEventListener("indoor_default_switch_mode_changed",b);var c=p}); x.extend(Gj.prototype,{nm:function(){this.RQ();this.bA()},lq:function(a){function b(){d.P.Nc({heading:c.heading,pitch:c.pitch});d.P.removeEventListener("position_changed",b)}var c=this.HB[a];this.P.rc(c.panoId);var d=this;this.P.addEventListener("position_changed",b)},next:function(){this.lq(++this.ir)},$Z:function(){this.lq(--this.ir)},Hs:function(){var a=this.eK=H("div"),b=a.style;b.position="absolute";b.zIndex="2000";b.width="100%";b.top=b.left="0px";this.C.appendChild(a);this.hg=H("a");this.hg.style.left= "2%";this.hg.href="javascript: void(0);";this.hg.className="pano_switch_left";a.appendChild(this.hg);this.Zh=H("a");this.Zh.style.right="2%";this.hg.href="javascript: void(0);";this.Zh.className="pano_switch_right";J()&&(this.Zh.style.height="34px",this.Zh.style.width="34px",this.Zh.style.borderRadius="17px",this.hg.style.height="34px",this.hg.style.width="34px",this.hg.style.borderRadius="17px");a.appendChild(this.Zh);this.hg.style.top=this.Zh.style.top=this.P.jh().height/2-14+"px"},M0:function(a){var b= this,c=this.P.Yb();this.Xl.ay(a,function(a){var e=b.P.Yb();e===c&&(b.HB=a,b.tP(e))})},U:function(){this.Oa=q;this.eK.style.display="none"},show:function(){this.Oa=o;this.eK.style.display="block"},vg:v("Oa"),tP:function(a){for(var b=this.HB,c=b.length-1;0<=c;c--)b[c].panoId==a&&(this.ir=c);x.K.Tb(this.hg,"pano_switch_disable");x.K.Tb(this.Zh,"pano_switch_disable");1===this.ir?x.K.Ta(this.hg,"pano_switch_disable"):this.ir==b.length-1&&x.K.Ta(this.Zh,"pano_switch_disable")},RQ:function(){var a=this; ka.M(this.hg,"click",function(b){x.K.Et(b.target,"pano_switch_disable")||a.$Z()});ka.M(this.Zh,"click",function(b){x.K.Et(b.target,"pano_switch_disable")||a.next()})},bA:function(){var a=this,b=a.P;b.addEventListener("position_changed",function(){if(a.vg()){var c=b.Yb();a.tP(c)}})}});function Hj(a){Te.call(this);this.P=a;this.Xl=new bd(p,{of:"api"});this.gr={admission:"",photoDate:"",roadName:"",providerUrl:"",providerName:""};this.rs=p;this.as=[];this.sB=o;this.ra()}B.kn(function(a){new Hj(a)});x.lang.ua(Hj,Te,"PanoramaCopyright"); x.extend(Hj.prototype,{ra:function(){this.C=this.Uj(1900);this.P.Ga();this.P.Ga().appendChild(this.C);var a=this;this.Xl.WL(function(b){a.as=b;a.Ba()});this.ca(this.P);this.P.k.copyrightControlOptions.logoVisible==q&&this.gy()},Ba:function(){var a=this.IS(),b=[];b.push(\'<div style="width: 1000px; overflow:hidden;">\');if(this.sB){b.push(\'<a target="_blank" title="\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u6b64\\u533a\\u57df" href=\'+this.P.RL()+\' style="outline:none;float:left;margin-left:3px">\');var c= I.pa+"copyright_logo.png";J()?(c=I.pa+"copyright_logo_hd.png",b
|