/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('panoramaflash', 'x.extend(Na.prototype,{Ri:function(){for(var a=0;aa.pitch&&(a.pitch=-90),this.hd?this.Fr?this.Aq.setPov=a:this.gd.set("pov",a):this.Ca=a)},Oc:function(a){a!=this.Lc&&(a>Jd&&(a=Jd),af)return 1}return 0}, BR:function(a){a=a||{};a.movie=a.url||"";a.altHtml=a.errorMessage||"";if(a.vars){var b=a.vars,c=[],d=p,e=p;for(d in b)e=b[d],c.push(d+"="+encodeURIComponent(e));a.flashvars=c.join("&")}a.minVer=a.ver;b=a.minVer;c=a.maxVer;if(b||c)if(d=this.bX(),!d||b&&0>this.ZG(d,b)||c&&0");for(b=0;b\');d.push("");return d.join("")}});function Zi(a,b){this.P=a;this.yR=b;this.Rh={};this.tz()}x.extend(Zi.prototype,{tz:function(){var a=this,b=a.P;b.addEventListener("add_overlay",function(b){b=b.overlay;b.qa(a.P,a.yR);a.Rh[b.jd]=b});b.addEventListener("remove_overlay",function(b){b=b.overlay;b.remove();delete a.Rh[b.jd]})}});x.extend(Nd.prototype,{qa:function(a,b){this.P=a;this.ha()||this.sa(this.P.ha());this.za=b;this.wb()},wb:function(){var a=this.ha(),a=bc.Sd.nh(a),a={markerId:this.jd,catalog:"FD01",name:this.uk(),rank:this.To(),x:a.x,y:a.y,color:this.wm(),hoverColor:this.PL,backgroundHoverColor:this.UJ,borderColor:this.borderColor,borderHoverColor:this.YJ,backgroundColor:this.backgroundColor,padding:this.padding,fontSize:this.fontSize,borderWidth:this.borderWidth};if(this.gE||this.getImageData())a.imageUrl=this.gE, a.imageData=this.getImageData(),a.size=this.yb(),a.image=this.jx(),a.catalog="FD02",this.yb()&&(a.width=this.yb()[0],a.height=this.yb()[1]);this.za.zN(a)},hide:function(){this.Pa=q;this.za&&this.za.Fo(this.jd,"visible",q)},show:function(){this.Pa=o;this.za&&this.za.Fo(this.jd,"visible",o)},isVisible:t("Pa"),If:function(a,b){this.za&&("position"==a&&(b=bc.Sd.nh(b),b={lng:b.x,lat:b.y}),this.za.Fo(this.jd,a,b))},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.za.BK([this.jd])}});var $i={none:"",transit:"FE0A",hotel:"FE02",catering:"FE01",movie:"FE06",indoor_scene:"FEFE"},aj={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"]}; x.extend(Qd.prototype,{qa:function(a,b){this.P=a;this.za=b;this.wb()},wb:function(){var a=this.ha(),a=bc.Sd.nh(a),b=this.UR(),c=this.RD();this.za.zN({markerId:this.jd,catalog:b,name:this.dp(),rank:this.To(),x:a.x,y:a.y,heading:c.heading,pitch:c.pitch,pid:c.panoId,panoIId:c.panoIId})},UR:function(){var a=this.Wo().match(/.*\\/(.*)/)[1],b;for(b in aj)if(aj[b][1]==a)return $i[b]},hide:function(){this.Pa=q;this.za.Fo(this.jd,"visible",q)},show:function(){this.Pa=o;this.za.Fo(this.jd,"visible",o)},isVisible:t("Pa"), If:function(a,b){"position"==a&&(b=bc.Sd.nh(b),b={lng:b.x,lat:b.y});this.za.Fo(this.jd,a,b)},remove:function(){this.dispatchEvent(new N("onremove"),{type:"remove",target:this});this.za.BK([this.jd])}});Xi.fo=new bc(p,{Of:"api"});function Xi(a){x.lang.Ba.call(this);a&&(this.P=a,this.Kg=p,this.mH=a.B.clientWidth,this.lH=a.B.clientHeight,new Zi(a,this))}Xi.BP=z.tg("pano");x.lang.ta(Xi,x.lang.Ba,"PanoramaFlashWraper"); x.extend(Xi.prototype,{zN:function(a){this.vs("addMarkers",[a])},BK:function(a){this.vs("removeMarkers",[a])},Fo:function(a,b,c){var d={};d.markerId=a;d[b]=c;this.set("markerProperty",d)},get:function(a){var b=p;"position"==a?(b=this.Kg.get("mercatorPosition"),b=bc.Sd.wi(new Q(b.mercatorX,b.mercatorY))):b=this.Kg.get(a);return b},set:function(a,b){var c=this;"position"==a?Xi.fo.qj(b,function(a){a&&a.id?c.P.rc(a.id):c.dispatchEvent(new N("pano_error"))}):"id"==a?c.Kg==p?c.BS(c.P):c.Kg.set&&c.Kg.set("panoOptions", {id:b.id,panoType:b.type,width:c.mH,height:c.lH}):c.Kg&&c.Kg.set&&c.Kg.set(a,b)},vs:function(a,b){return this.Kg.doAction(a,b)},l2:t("qr"),BS:function(a){var b=this,c=a.k.swfSrc.match(/.*\\//)[0]+"BDStreetScape.swf";b.Kg=o;Xi.fo.vx(function(d){var e="",f="";"inter"===a.Ge?f=a.Xa:e=a.Xa;e={pid:e,iid:f,panoType:a.Ge,heading:a.Ca.heading,pitch:a.Ca.pitch,width:b.mH,height:b.lH,panoUrl:c,panoTileUrl:Xi.BP.join("|"),domain:bc.Du,jsInterfaceNamespace:"BMap.PanoramaFlashInterface",swfIndex:b.ba};f=a.k.swfSrc; d&&(d.panoUdt&&d.panoUdt.version&&e)&&(e.udtVersion=d.panoUdt.version);d&&(d.panoSwfAPI&&d.panoSwfAPI.version&&e)&&(e.panoUrl=e.panoUrl+"?version="+d.panoSwfAPI.version,f=f+"?version="+d.panoSwfAPI.version);b.Kg=b.QQ(a.B,e,f)})},QQ:function(a,b,c){var d=new Yi,e="PanoramaFlash"+this.ba,f=p,f=K("div");f.style.position="absolute";f.id="PanoramaFlashWraper"+this.ba;f.style.top="0";f.style.left="0";f.style.height="100%";f.style.width="100%";f.style.zIndex=1200;this.qr=f;a.appendChild(f);d.create({id:e, width:"100%",height:"100%",allowscriptaccess:"always",scale:"showall",wmode:"opaque",quality:"best",url:c,ver:"10.2",errorMessage:"\\u60a8\\u672a\\u5b89\\u88c5Flash Player\\u64ad\\u653e\\u5668\\u6216\\u8005\\u7248\\u672c\\u8fc7\\u4f4e",vars:b},f);return d.DL(e)}});var bj=Xi.prototype;S(bj,{get:bj.get,set:bj.set,doAction:bj.vs}); ');