_jsload2&&_jsload2('newvectordrawlib', 'function Pf(a){this.pI=q;this.j=z.object.extend(a||{},{ag:q});Mc.call(this,this.j);this.Bg={};this.loaded=t;this.Nt=s;this.hC=t}Pf.prototype=new Mc; Pf.prototype.na=function(a){if(!this.loaded){this.loaded=q;var b=this;b.map=a;b.Va=b.map.Va;b.map=a;this.Hb=this.map.oa();this.le=this.Hb.$c();this.qc=this.map.K.devicePixelRatio;b.jx=t;b.LK=s;b.Re=b.j.style||"normal";b.ln=b.j.styleStr||s;b.gq=200;b.Od=s;b.be=0;b.yb=this.Va.Kj(0);b.Va.od.appendChild(this.yb);b.Va.yb=b.yb;b.Kb=new B.NewVectorDrawLib(a);b.Kb.le=this.Hb.$c();b.ns="";b.Kb.wC=b.Re;b.$l();b.Re&&"normal"!==b.Re||b.ln&&0e.map.height?b=q:(g=[],g.push("
"),g.push("\'"+"),g.push("
\\u8fdb\\u5165\\u5168\\u666f>>"),g.push("
"),n.innerHTML=g.join("")));k&&(g=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),g.innerHTML= "\\u5730\\u5740\\uff1a"+k,n.appendChild(g));m&&(g=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),g.innerHTML="\\u7535\\u8bdd\\uff1a"+m,n.appendChild(g));f.tag&&(m=L("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),m.innerHTML="\\u6807\\u7b7e\\uff1a"+f.tag,n.appendChild(m));a="http://api.map.baidu.com/place/detail?uid="+a+"&output=html&source=jsapi&operate=mapclick&clicktype=vector";m="
"+ f.name+"";a=new tc(n,{width:322,enableSearchTool:q,title:m+("\\u8be6\\u60c5»")+"
",enableParano:b});b&&(a.street_id=i);a.addEventListener("open",function(){var a=z.$("panoInfoBox");if(a){var b=f.street_id||"";Qb(function(){Ra(5052);e.Fq(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}}); this.map.pc(a,c)}},Fq:function(a){var b=B.vg("pano","scape/")[0],c=this,e=(new Date).getTime(),f="Pano"+e;B[f]=function(a){var b=c.map.tm(),a=a.content[0];b.vc(a.poiinfo.PID);b.show();b.Pc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};e=(new Date).getTime();oa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+e+"&fn=BMap."+f),t)},Xq:function(a){for(var b=[],c=0,e=a.length;cm.left&&c<=m.left+g&&e>m.top&&e<=m.top+g){f=b[i];break}}if(f==l||f.Lc==l)return t;g=f.Lc;b=0;for(k=g.length;b=iconX-15&&a.offsetX<=iconX+ 15&&a.offsetY>=iconY-15&&a.offsetY<=iconY+15))return{type:c[5].c||"",name:e,uid:p.u||"",point:{x:iconX,y:iconY},clickFea:{tileId:f.id,tile:f,fea:c}}}return t},Zx:function(){return/M040/i.test(navigator.userAgent)},Sf:function(a){for(var b=a.offsetLeft,c=a.offsetTop,a=a.offsetParent;a&&a!=this.map.La();)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{top:c,left:b}},xC:function(a){if(this.map.Sb()){this.map.oa().j.Yb=18;var a=this.Nt=a,b;for(b in a)switch(b){case "style":this.Lp(a);break;case "styleStr":this.Lp(a); break;case "features":this.kO(a[b]);break;case "poiElements":this.tO(a[b])}}},nE:function(){this.vu();"dark"==this.Re?z.D.Ua(this.yb,"light_gray_background"):z.D.Ua(this.yb,"gray_background")},vu:function(){z.D.Pb(this.yb,"gray_background");z.D.Pb(this.yb,"light_gray_background")}});window.VectorLayer=Pf;var Qf=1,Rf=2,Sf=3,Tf=4,Uf=5; function Vf(a){this.Km=t;this.lt=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/"];this.eG=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[2]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[3]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[4]+"/gvd/?"];this.Va=s;this.rk={};this.map=a;this.$e=this.ej=0;this.Yh=s;this.Db=window.Db;this.Bz=z.extend({},window.Db);this.fm={dark:{backColor:"#2D2D2D",textColor:"#bfbfbf",iconUrl:"vector/dicons"},normal:{backColor:"#F3F1EC", textColor:"#c61b1b",iconUrl:"vector/nicons_hd"},light:{backColor:"#EBF8FC",textColor:"#017fb4",iconUrl:"vector/licons"}};this.Rs={};this.op=q;this.ok=s;this.am=/.*GT-I9300.*Version\\/\\d+.*Safari\\/\\d+\\.\\d+$/ig.test(navigator.userAgent)||/baiduboxapp/ig.test(navigator.userAgent)} Vf.prototype={Is:function(a){var b=this.map,c=b.fa();this.$e=a.length;this.ej=0;this.qc=this.map.K.devicePixelRatio;this.xz=this.yz=this.wz=this.Ru=0;b=b.Ka();new J(b.lng,b.lat);this.map.dispatchEvent(new P("onvectorbegin"));for(var b=0,e=this.$e;ba?"_":"")+(0>b?"$":"")+parseInt(Math.abs(a)+""+Math.abs(b)+""+c,10).toString(36),i=i[k]+"qt=lgvd&layers=bg,df&"+m+"&styles=pl&f=jsapi&v=002&udt=20150526",i=i+("&fn=BMap."+n),g=g.Ka(),o=new J(g.lng,g.lat),p=f.map.fa();B[n]=function(g){if(g=g.content){e.rq=(new Date).getTime();var i=f.map,k=i.Ka(),i=i.fa();if(!k.pb(o)||i!=p){delete B[n];return}g=(g.bg||[]).concat(g.df||[]);e.Lc=g;e.Za="#c"+a+"r"+b+"z"+c;g&&f.Po(g,e,o,p)}delete B[n]};oa(i)},hj:function(a){var a=a.getContext("2d"),b=this.le* this.qc;this.am||(a.save(),a.clearRect(0,0,b,b),a.restore())},bD:function(a,b,c){a.fillStyle=c||"#F5F3F0";a.fillRect(0,0,b,b)},Po:function(a,b,c,e){function f(){b.jQ=+new Date;var f=k.map.Ka(),g=k.map.fa();if(f.pb(c)&&g==e){for(k.map.K.w0&&a.v0&&k.M2(i,a.v0);n=e&&g[5]&&0e&&this.cG(a,E,C,e);var D=1;B.Bb.wM(v)&&(B.Bb.nL(a,E-f/2,C-F/2,f,F,{fillStyle:m(n)}),D=0);g?(a.save(),a.scale(0.9,0.9),o&&a.strokeText(p[x],(E-f/2+1)/0.9,(C+F/2+1)/0.9),a.fillText(p[x],(E-f/2+1)/0.9,(C+F/2+1)/0.9),a.restore()):(D=k?2:D,o&&a.strokeText(p[x],E-f/2,C+F/2+D),a.fillText(p[x],E-f/2,C+F/2+D))}}},Zs:function(a,b){var c=[Qf,"",[]];a&&(a[0]==Uf?c[2]=a:c=a);b&&(b[0]==Uf?c[2]=b:c[1]=b[1]);return c},cG:function(a,b,c,e){e=e/180* Math.PI;cv=Math.cos(e);sv=Math.sin(e);yy=xx=cv;xy=sv;yx=-sv;x0=b-b*cv-c*sv;y0=c+b*sv-c*cv;a.transform(xx,yx,xy,yy,x0,y0)},uF:function(a,b,c,e,f){if(16>=f)for(var g=c;g=f?"228,218,201,1"!=k[1]&&this.ue(a,o,k,t):this.ue(a,o,k,t)}for(i=g;i=f&&"228,218,201,1"== k[1]&&(m[1]="231,231,157,1"),this.ue(a,o,m,t));g=c}else{for(g=c;g=e?1:0;default:return 0}},vt:function(a,b){return a&&0