/**/_jsload2 && _jsload2('newvectordrawlib', 'function Jg(a){this.JI=o;this.k=x.object.extend(a||{},{Gh:o});Hd.call(this,this.k);this.Dg={};this.loaded=q;this.du=p;this.CC=q}Jg.prototype=new Hd; Jg.prototype.ra=function(a){if(!this.loaded){this.loaded=o;var b=this;b.map=a;b.fb=b.map.fb;b.map=a;this.xb=this.map.oa();this.Ob=this.xb.k.Ob;this.Ac=this.map.B.devicePixelRatio;b.Ax=q;b.eL=p;b.Se=b.k.style||"normal";b.En=b.k.styleStr||p;b.Dq=200;b.De=p;b.de=0;b.zb=this.fb.fo(0);b.fb.nd.appendChild(this.zb);b.fb.zb=b.zb;b.Ib=new B.NewVectorDrawLib(a);b.Ib.Ob=this.xb.k.Ob;b.Is="";b.Ib.RC=b.Se;b.nm();b.Se&&"normal"!==b.Se||b.En&&0d.map.height?b=o:(f=[],f.push("
"),f.push("\'"+"),f.push("
\\u8fdb\\u5165\\u5168\\u666f>>"),f.push("
"),l.innerHTML=f.join("")));i&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML= "\\u5730\\u5740\\uff1a"+i,l.appendChild(f));j&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u7535\\u8bdd\\uff1a"+j,l.appendChild(f));e.tag&&(j=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),j.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(j));a="http://api.map.baidu.com/place/detail?uid="+a+"&output=html&source=jsapi&operate=mapclick&clicktype=vector";j="
"+ e.name+"";a=new td(l,{width:322,enableSearchTool:o,title:j+("\\u8be6\\u60c5»")+"
",enableParano:b});b&&(a.street_id=g);a.addEventListener("open",function(){var a=x.$("panoInfoBox");if(a){var b=e.street_id||"";Ub(function(){Ta(5052);d.cr(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}}); this.map.Mb(a,c)}},cr:function(a){var b=B.Sf("pano","scape/")[0],c=this,d=(new Date).getTime(),e="Pano"+d;B[e]=function(a){var b=c.map.Km(),a=a.content[0];b.rc(a.poiinfo.PID);b.show();b.Nc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};d=(new Date).getTime();sa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+d+"&fn=BMap."+e),q)},vr:function(a){for(var b=[],c=0,d=a.length;cj.left&&c<=j.left+f&&d>j.top&&d<=j.top+f){e=b[g];break}}if(e==k||e.be==k)return q;f=e.be;b=0;for(i=f.length;b=iconX-15&&a.offsetX<=iconX+ 15&&a.offsetY>=iconY-15&&a.offsetY<=iconY+15))return{type:c[5].c||"",name:d,uid:n.u||"",point:{x:iconX,y:iconY},clickFea:{tileId:e.id,tile:e,fea:c}}}return q},qy:function(){return/M040/i.test(navigator.userAgent)},Qf:function(a){for(var b=a.offsetLeft,c=a.offsetTop,a=a.offsetParent;a&&a!=this.map.Ga();)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{top:c,left:b}},SC:function(a){if(this.map.Wb()){this.map.oa().k.Zb=18;var a=this.du=a,b;for(b in a)switch(b){case "style":this.kq(a);break;case "styleStr":this.kq(a); break;case "features":this.zO(a[b]);break;case "poiElements":this.HO(a[b])}}},HE:function(){this.Nu();"dark"==this.Se?x.K.Ta(this.zb,"light_gray_background"):x.K.Ta(this.zb,"gray_background")},Nu:function(){x.K.Tb(this.zb,"gray_background");x.K.Tb(this.zb,"light_gray_background")}});window.VectorLayer=Jg;var Kg=1,Lg=2,Mg=3,Ng=4,Og=5; function Pg(a){this.Zm=q;this.Jt=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/"];this.zG=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[0]+"/gvd/?",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/?"];this.fb=p;this.yk={};this.map=a;this.Ze=this.nj=0;this.hi=p;this.Eb=window.Eb;this.Yz=x.extend({},window.Eb);this.um={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.jt={};this.Lp=o;this.vk=p;this.om=/.*GT-I9300.*Version\\/\\d+.*Safari\\/\\d+\\.\\d+$/ig.test(navigator.userAgent)||/baiduboxapp/ig.test(navigator.userAgent)} Pg.prototype={$s:function(a){var b=this.map,c=b.ga();this.Ze=a.length;this.nj=0;this.Ac=this.map.B.devicePixelRatio;this.Uz=this.Vz=this.Tz=this.hv=0;b=b.wc();new K(b.lng,b.lat);this.map.dispatchEvent(new N("onvectorbegin"));for(var b=0,d=this.Ze;ba?"_":"")+(0>b?"$":"")+parseInt(Math.abs(a)+""+Math.abs(b)+""+c,10).toString(36),g=g[i]+"qt=lgvd&layers=bg,df&"+j+"&styles=pl&f=jsapi&v=002&udt=20150526",g=g+("&fn=BMap."+l),f=f.wc(),m=new K(f.lng,f.lat),n=e.map.ga();B[l]=function(f){if(f=f.content){d.Nq=(new Date).getTime();var g=e.map,i=g.wc(),g=g.ga();if(!i.ab(m)||g!=n){delete B[l];return}f=(f.bg||[]).concat(f.df||[]);d.be=f;d.Ya="#c"+a+"r"+b+"z"+c;f&&e.gp(f,d,m,n)}delete B[l]};sa(g)},rj:function(a){var a=a.getContext("2d"),b=this.Ob* this.Ac;this.om||(a.save(),a.clearRect(0,0,b,b),a.restore())},yD:function(a,b,c){a.fillStyle=c||"#F5F3F0";a.fillRect(0,0,b,b)},gp:function(a,b,c,d){function e(){b.EQ=+new Date;var e=i.map.wc(),f=i.map.ga();if(e.ab(c)&&f==d){for(i.map.B.wG&&a.E0&&i.Y2(g,a.E0);l=d&&f[5]&&0d&&this.xG(a,D,C,d);var A=1;B.Cb.LM(s)&&(B.Cb.HL(a,D-e/2,C-F/2,e,F,{fillStyle:j(l)}),A=0);f?(a.save(),a.scale(0.9,0.9),m&&a.strokeText(n[u],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.fillText(n[u],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.restore()):(A=i?2:A,m&&a.strokeText(n[u],D-e/2,C+F/2+A),a.fillText(n[u],D-e/2,C+F/2+A))}}},wt:function(a,b){var c=[Kg,"",[]];a&&(a[0]==Og?c[2]=a:c=a);b&&(b[0]==Og?c[2]=b:c[1]=b[1]);return c},xG:function(a,b,c,d){d=d/180* Math.PI;cv=Math.cos(d);sv=Math.sin(d);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)},NF:function(a,b,c,d,e){if(16>=e)for(var f=c;f=e?"228,218,201,1"!=i[1]&&this.ue(a,m,i,q):this.ue(a,m,i,q)}for(g=f;g=e&&"228,218,201,1"== i[1]&&(j[1]="231,231,157,1"),this.ue(a,m,j,q));f=c}else{for(f=c;f=d?1:0;default:return 0}},Ot:function(a,b){return a&&0