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

/**/_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.push("<img style=\'border:none;width:68px;height:25px;vertical-align:bottom;\' src=\'"+c+"\' />")):6==x.da.ma?b.push("<div style=\'float: left;cursor:pointer;width:77px;height:32px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+c+")\'></div>"):b.push("<img style=\'border:none;width:77px;height:32px;vertical-align:bottom;\' src=\'"+c+"\' />");b.push("</a>")}b.push(\'<div style="float:left;\');J()?b.push(\'margin-top:8px;font-family:sans-serif;">\'): (b.push("margin-top:13px;"),x.platform.NM?b.push(\'font-family:sans-serif;">\'):b.push(\'">\'));a.roadName&&b.push(\'<span style="margin-left: 5px;">\'+a.roadName+"</span><span>|</span>");a.providerName&&(a.providerUrl?b.push(\'<span style="margin-left: 5px;">Data \\u00a9</span><span><a style="text-decoration: none;color: rgb(54, 54, 54);" target="_blank" href="\'+a.providerUrl+\'" style="display:inline;">\'+a.providerName+"</a></span>"):b.push(\'<span style="margin-left: 5px;">Data \\u00a9</span><span>\'+a.providerName+ "</span>"));b.push(\'<span style="margin-left: 5px;">\'+a.admission+"</span>");b.push(\'<span style="margin-left: 5px;">\\u62cd\\u6444\\u65e5\\u671f:\'+a.photoDate+"</span>");b.push("</div>");b.push("</div>");this.C.innerHTML=b.join("")},Uj:function(a){var b=H("div"),c=b.style;c.overflow="hidden";c.position="absolute";c.bottom=c.left="0";c.zIndex=a||"0";c.width="100%";c.fontSize="11px";c.height=J()?"27px":"34px";c.y5="none";c.WebkitTextSizeAdjust="none";c.WebkitUserSelect="none";c.visibility="hidden";c.fontFamily= "sans-serif";c.color="rgb(54, 54, 54)";c.lineHeight="20px";return b},ca:function(a){var b=this;a.addEventListener("copyright_changed",function(a){a.copyright&&(b.rs=a.copyright,b.Ba())});a.addEventListener("visible_changed",function(){b.C.style.visibility=a.EE()?"visible":"hidden"});a.addEventListener("copyright_options_changed",function(){a.k.copyrightControlOptions.logoVisible==q?b.gy():b.hG()})},IS:function(){if(this.rs){for(var a in this.gr)this.gr[a]=this.rs[a];a=this.nY(this.rs.dataProviderIndex); this.gr.providerName=a.name+this.rs.username;this.gr.providerUrl=a.url}return this.gr},nY:function(a){for(var b={name:"",url:"",id:""},c=this.as.length-1;0<=c;c--)if(this.as[c].id==a){var b=this.as[c],d;for(d in b)b[d]=x.trim(this.as[c][d])}return b},gy:function(){/baidu\\.com/.test(document.domain)&&(this.sB=q,this.Ba())},hG:function(){this.sB=o;this.Ba()}}); ');