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.
pingAnQiYeWeb/public/modules/panoramaflash_wnw23f.js

1 line
12 KiB

1 year ago
/**/_jsload2 && _jsload2('panoramaflash', 'x.extend(Qa.prototype,{Vi:function(){for(var a=0;a<B.Tr.length;a++)B.Tr[a](this);this.Nf!=p&&this.dispatchEvent(new N("onvisible_poi_type_changed"),{visiblePOIType:this.Nf});this.ql=this.jh();this.gs=this.hd=q;this.br={};this.gd=new Dk(this);this.mT();this.WQ();this.YQ();if(this.Ya||this.Kb)this.Ya?this.rc(this.Ya,this.Le):this.ta(this.Kb)},YQ:function(){var a=this;setInterval(function(){if(a.Yb()){var b=a.jh();b.ab(a.ql)||(a.gd.set("size",{width:b.width,height:b.height}),a.ql=b,a.dispatchEvent(new N("size_changed")))}}, 80)},mT:function(){var a=this.gd,b=this;a.addEventListener("clicked_position",function(a){b.dispatchEvent(new N("onclicked_position"),a)});a.addEventListener("thumbnail_complete",function(){b.dispatchEvent(new N("onthumbnail_complete"))});a.addEventListener("indoor_enter",function(a){a.data.R4===p?b.Fj({haveBreakId:q}):b.Fj({haveBreakId:o});b.dispatchEvent(new N("onhaveBreakId_changed"))});a.addEventListener("first_thumb_complete",function(){var a,d;if(b.hd!==o){b.hd=o;a=this;b.Ya=a.get("id");"street"!= b.Le&&(b.Le="street",b.fz("inter"));b.uo=a.get("links");d=a.get("position");b.Kb=d;d=a.get("pov");!b.Ea.heading&&!b.Ea.pitch?b.Ea=d:(d.heading!=b.Ea.heading||d.pitch!=b.Ea.pitch)&&a.set("pov",b.Ea);d=a.get("zoom");1==!b.Kc&&1!=d?b.Kc==d:b.Kc!=d&&a.set("zoom",b.Kc);d=p;for(var e in b.Ke)d=b.Ke[e],delete b.Ke[e],b.Ka(d);b.k.navigationControl===q&&a.set("navigationControlVisible",q);var f=function(b){a.Vs("toggleUI",{topo:b.linksControl,wellLid:b.clickOnRoad,innerExit:q,innerFloor:b.indoorFloorControl})}; f(b.k);b.addEventListener("clickonroad_changed",function(){f(b.k)});b.addEventListener("links_visible_changed",function(){f(b.k)});b.addEventListener("onindoorfloor_options_changed",function(){f(b.k)});b.addEventListener("navigation_visible_changed",function(){a.set("navigationControlVisible",b.k.navigationControl)});if(0<b.Vg.length){e=0;for(d=b.Vg.length;e<d;e++)b.Vg[e].register(b.C,b,b.gd);var g="",i=[];e=0;for(d=b.Wr.length;e<d;e++)g=b.Wr[e].wN,i=b.Wr[e].vN,b[g].apply(b,i)}b.k.visible?b.show(): b.U()}});a.addEventListener("pano_error",function(){b.dispatchEvent(new N("error"))});a.addEventListener("id_changed",function(a){if(b.hd||b.Ya==p||"inter"==b.Le)b.Ya=a.data;b.dispatchEvent(new N("onid_changed"))});a.addEventListener("position_changed",function(a){b.hd?b.Kb=b.gd.get("position"):b.Kb==p&&(b.Kb=a.data);b.dispatchEvent(new N("onposition_changed"))});a.addEventListener("pov_changed",function(a){if(b.hd||b.Ea.heading==p)b.Ea=a.data;b.dispatchEvent(new N("onpov_changed"))});a.addEventListener("links_changed", function(a){if(b.hd||0==b.uo.length)b.uo=a.data;b.dispatchEvent(new N("onlinks_changed"))});a.addEventListener("zoom_changed",function(a){if(b.hd||b.Kc==p)b.Kc=a.data;b.dispatchEvent(new N("onzoom_changed"))});a.addEventListener("sdata_loaded",function(a){b.fz(a.data.panoType);b.dispatchEvent(new N("oncopyright_changed"),{copyright:a.data.copyright});if(b.gs){for(var d in b.br)b[d](b.br[d]);b.gs=q;b.br={}}});a.addEventListener("overlay_mouseclick",function(a){a=b.Ke[a.data.markerId];a.dispatchEvent(new N("onclick"), {type:"click",target:a})});a.addEventListener("overlay_mouseover",function(a){a=b.Ke[a.data.markerId];a.dispatchEvent(new N("onmouseover"),{type:"mouseover",target:a})});a.addEventListener("overlay_mouseout",function(a){a=b.Ke[a.data.markerId];a.dispatchEvent(new N("onmouseout"),{type:"mouseout",target:a})})},WQ:function(){var a=this;x.M(this.C,ka.da.Te?"DOMMouseScroll":"onmousewheel",function(b){if(a.k.enableScrollWheelZoom&&a.k.visible){var c=-b.detail/3||b.wheelDelta/120,c=a.ga()+c;a.Oc(c);Gb(b)}})}, rc:function(a,b,c){"object"===typeof b&&(c=b,b=k);if(!this.hd||a&&a!=this.Ya)this.hd||(this.Ya=a,this.Le=b||"street",this.Kb=p),this.gd.set("id",{id:a,type:b||"street"}),this.gs=o,c&&c.pov&&this.Nc(c.pov)},ta:function(a){if(!this.hd||a&&!this.Kb.ab(a))this.hd||(this.Kb=a,this.Ya=p),this.gd.set("position",a),this.gs=o},Nc:function(a){a&&(90<a.pitch&&(a.pitch=90),-90>a.pitch&&(a.pitch=-90),this.hd?this.gs?this.br.setPov=a:this.gd.set("pov",a):th