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
21 KiB

/**/_jsload2 && _jsload2('vectordrawlib', '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;this.EK={road:"rd",water:"wt",building:"bd",land:"ld",government:"gv",point:"pts"};this.zF={market:"mt",food:"fd",communications:"cm",hotel:"ht",attractions:"at",recreation:"rc"}}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;b.Ax=q;b.eL=p;b.te="df";b.k.poiElements&&b.k.poiElements.name&&(b.te=b.zF[b.k.poiElements.name]);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.Qd=this.fb.fo(10);b.fb.nd.appendChild(this.zb);b.fb.nd.appendChild(this.Qd);b.fb.zb=b.zb;b.fb.Qd=this.Qd;b.Ib=new B.VectorDrawLib;b.Is="";b.k.features&&(b.Is=b.LX(b.k.features));b.Ib.RC=b.Se;b.nm();b.Se&&"normal"!== b.Se||b.En&&0<b.En.length?b.mu(b.Se,b.En,function(){b.map.addEventListener("click",function(a){b.de++;if(b.de===1)b.De=setTimeout(function(){b.Qu(a);b.de=0},b.Dq);else{clearTimeout(b.De);b.de=0;return q}});b.zb.innerHTML="";b.Qd.innerHTML="";b.ee(o)}):(b.ee(),b.map.addEventListener("click",function(a){b.de++;if(b.de===1){if(!a.cb)b.De=setTimeout(function(){b.Qu(a);b.de=0},b.Dq)}else{clearTimeout(b.De);b.de=0;return q}}));b.map.B.pj&&(J()&&b.Hf==k)&&(b.Hf=new B.bH(b.map),b.map.Ka(b.Hf))}}; x.extend(Jg.prototype,{nm:function(){var a=this;setTimeout(function(){a.map.addEventListener("poilayervisiblechange",function(b){a.iW(b)});a.map.addEventListener("moveend",function(){a.ee()});a.map.addEventListener("zoomend",function(){a.Uy();a.Ax=q;a.ee(o)});a.map.addEventListener("onresize",function(){a.ee()});Xa()&&(a.map.addEventListener("onmoving",function(){a.ee()}),a.map.addEventListener("onmaptypechange",function(){a.ee()}));a.map.addEventListener("mousemove",function(b){a.map.Wb()&&a.iD(b)})}, 1);a.map.addEventListener("setcustomstyles",function(b){a.SC(b.target)})},LX:function(a){for(var b="",c=0,d=a.length;c<d;c++)b=b+this.EK[a[c]]+",";b&&(this.Ib.hi=b);return b},mu:function(a,b,c){if(this.map.Wb()){var d=this,e=B.jc+"custom/",f;b&&0<b.length?(f="setStyle_"+b.length,e+="mapstyle?styles="+encodeURIComponent(b)):(f="setStyle_"+a,e+="getstyle?customid="+a);f+=this.map.ba;window[f]=function(b,e){var j=x.extend({},d.Ib.Yz);d.Ib.Eb=x.extend(j,b);j=B.Cb.we(d.Ib.Eb["3181"][1]);d.map.B.Wo=j;d.map.Ga().style.backgroundColor= j;c(a);d.map.dispatchEvent(new N("onsetmapstylesuccess",e));delete window[f]};sa(e+("&callback="+f+"&udt=20150116"),q)}},zO:function(a){if(this.map.Wb()){for(var b="",c=0,d=a.length;c<d;c++)b=b+(this.EK[a[c]]||"")+",";b==this.Is&&""==!b||(""==b&&(b="no"),this.Is=b,this.Ib.hi=b,this.Ib.$s({bg:this.Lx(this.zb),poi:this.Lx(this.Qd)},this.fb,this.te))}},HO:function(a){if(a.name&&this.zF[a.name]){var b=this.zF[a.name];if(a.styles.visibility==o&&this.te!==b&&-1<this.Is.indexOf("pts")){this.te=b;if(this.Qd)for(var c= [],d=[],a=this.Qd.childNodes,b=0,e=a.length;b<e;b++){var f=a[b].id.split("_");c.push([f[1],f[2]]);d.push(a[b])}this.Ib.AD(c,d,this.te,this.fb,p)}}},kq:function(a){var b=this;b.mu(a.style,a.styleStr,function(a){b.Se=a;b.Uy();b.Ib.RC=b.Se;var a=b.Ib.jt,d;for(d in a)delete a[d];"df"!==b.te&&b.HE();b.GF()})},e5:function(a){var b=this,c=[],d=[],e=a.clickFea;b.eL=e;if(a.type){var f=x.$(e.tileId),g=e.tileId;if(b.te==a.type){var i=Math.pow(2,18-b.map.Na);b.f1();b.Dg[g]={canvas:f,fea:e.fea};b.IL(e,i);var c= this.Dg,j;for(j in c)d=x.$(j).getContext("2d"),b.Ib.Bm(d,c[j].fea,i,o);return}b.Uy();b.te=a.type;b.Dg[g]={canvas:f,fea:e.fea};b.IL(e,i)}else{b.Nu();if("df"==b.te)return;b.Uy();b.te="df"}if(b.Qd){i=b.Qd.childNodes;j=0;for(a=i.length;j<a;j++)f=i[j].id.split("_"),c.push([f[f.length-3],f[f.length-2]]),d.push(i[j])}b.CC||(b.map.addEventListener("onclickicondrawed",function(a){var c=a.tarPoi.id;b.Ax=o;b.Dg&&b.Dg[c]&&(b.Dg[c].fea=a.tarPoi.fea)}),b.CC=o);"df"==b.te?b.Nu():b.HE();b.Ib.AD(c,d,b.te,b.fb,e)}, f1:function(){var a=this.Dg,b=Math.pow(2,18-this.map.Na),c;for(c in a)this.Ib.Bm(a[c].canvas.getContext("2d"),a[c].fea,b,q);for(var d in a)delete a[d]},Uy:function(){var a=this.Dg;try{for(var b in a)delete a[b]}catch(c){}},IL:function(a){var b=a.tileId.split("_"),c=b.length,d=parseInt(b[c-3]),e=parseInt(b[c-2]),c=parseInt(b[c-1]),f=d-1,g=d+1,i=e-1,j=e+1,l=this.map.ba.replace(/^TANGRAM_/,""),b=x.$(l+"_poi_"+f+"_"+e+"_"+c),e=x.$(l+"_poi_"+g+"_"+e+"_"+c),m=x.$(l+"_poi_"+d+"_"+i+"_"+c),d=x.$(l+"_poi_"+ d+"_"+j+"_"+c),n=x.$(l+"_poi_"+f+"_"+i+"_"+c),f=x.$(l+"_poi_"+f+"_"+j+"_"+c),i=x.$(l+"_poi_"+g+"_"+i+"_"+c),c=x.$(l+"_poi_"+g+"_"+j+"_"+c);b&&this.tk(b,a.fea);e&&this.tk(e,a.fea);m&&this.tk(m,a.fea);d&&this.tk(d,a.fea);n&&this.tk(n,a.fea);f&&this.tk(f,a.fea);i&&this.tk(i,a.fea);c&&this.tk(c,a.fea)},tk:function(a,b){var c=this.jR(a.be,b[5].u);c&&(this.Dg[a.id]={canvas:a,fea:c})},jR:function(a,b){try{if(a.length)for(var c=0,d=a.length;c<d;c++){var e=a[c];if(e[5]&&e[5].u&&e[5].u==b)return e}}catch(f){}}, iW:function(a){a.visible==q?(this.fb.nd.removeChild(this.Qd),this.te=""):(this.fb.nd.appendChild(this.Qd),a=this.fb.Rm(this.Qd),this.Ib.AD(a.A5,a.z5,this.te,this.fb))},ee:function(a){this.map.ga();if(this.map.Wb()){this.zb.style.display="block";this.Qd.style.display="block";this.L0(this.zb,this.Qd);this.fb.fL={};var b=this.fb.Rm(this.zb,"bg");poiVectorObj=this.fb.Rm(this.Qd,"poi");for(var c in this.Dg)x.$(c)||delete this.Dg[c];this.Ib.$s({bg:b,poi:poiVectorObj,isZoomMap:a?o:q},this.fb,this.te)}else{a= this.zb;b=this.Qd;a.style.display="none";b.style.display="none";c=a.childNodes.length;for(c-=1;0<=c;c--){var d=a.childNodes[c];a.removeChild(d)}c=b.childNodes.length;for(c-=1;0<=c;c--)d=b.childNodes[c],b.removeChild(d)}},Lx:function(a){if(a){for(var b=[],a=a.childNodes,c=0,d=a.length;c<d;c++){var e=a[c].id.split("_");b.push([e[e.length-3],e[e.length-2],a[c]])}return b}},GF:function(){this.map.Wb()&&this.Ib.$s({bg:this.Lx(this.zb),poi:this.Lx(this.Qd)},this.fb,this.te)},L0:function(a,b){var c=q;if(a)for(var d= a.childNodes,e=0,f=d.length;e<f;e++)if(d[e].af==o){c=o;break}if(!c){c=b.childNodes;d=0;for(f=c.length;d<f;d++)c[d].af=q}},Qu:function(a){this.map.B.pj&&(a=this.Rs(a),this.map.B.Zw?this.map.B.Zw(a):this.Mb(a))},Mb:function(a){a?(Xa()&&this.wA(a),J()&&this.Hf&&this.Hf.switchTo(a)):J()&&this.Hf&&this.Hf.U()},iD:function(a){this.map.B.pj&&(this.Rs(a)?(this.map.platform.style.cursor="pointer",this.map.R.ty=o):(this.map.R.ty=q,this.map.platform.style.cursor!=this.map.B.Xb&&0==this.map.R.Re.length&&(this.map.platform.style.cursor= this.map.B.Xb)))},wA:function(a){(a=a.uid)&&de.eb(t(),{qt:"inf",uid:a,operate:"mapclick",clicktype:"vector"})},DH:function(a,b,c){var d=this;if(b&&b.content){var e=b.content,f=e.pano||0,c=d.map.Rb(c.point);if(!g)var g={};g.isFromMPC=o;var i=e.addr,g=e.street_id||"";if(1==e.poiType||3==e.poiType)i=Q.unique(i.split(";")).join("; ");var j=e.tel;j&&(j=j.replace(/,/g,", "));d.vr(e.cla);var l=H("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),b=q;f&&(360>d.map.height?b=o:(f=[],f.push("<div class=\'panoInfoBox\' id=\'panoInfoBox\' title=\'"+ e.name+"\\u5916\\u666f\' title=\'\\u67e5\\u770b\\u5168\\u666f\' >"),f.push("<img filter = \'pano_thumnail_img\' class=\'pano_thumnail_img\' width=323 height=101 border=\'0\' alt=\'"+e.name+"\\u5916\\u666f\' src=\'"+(B.url.proto+B.url.domain.pano[0]+"/pr/?qt=poiprv&uid="+g+"&width=323&height=101&quality=80&fovx=200")+"\' id=\'pano_"+a+"\'/>"),f.push("<div filter = \'panoInfoBoxTitleBg\' class=\'panoInfoBoxTitleBg\'></div><a href=\'javascript:void(0)\' filter=\'panoInfoBoxTitleContent\' class=\'panoInfoBoxTitleContent\' >\\u8fdb\\u5165\\u5168\\u666f&gt;&gt;</a>"), f.push("</div>"),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="<div style=\'height:26px;\'><a href=\'"+a+"\' target=\'_blank\' style=\'font-size:14px;color:#4d4d4d;font-weight:bold;text-decoration:none;\' onmouseover=\'this.style.textDecoration=\\"underline\\";this.style.color=\\"#3d6dcc\\"\' onmouseout =\'this.style.textDecoration=\\"none\\";this.style.color=\\"#4d4d4d\\"\'>"+e.name+"</a>";a=new td(l,{width:322,enableSearchTool:o,title:j+("<a href=\'"+a+"\' target=\'_blank\' style=\'font-size:12px;color:#3d6dcc;margin-left:5px;text-decoration:none;\' onmouseover=\'this.style.textDecoration=\\"underline\\"\' onmouseout =\'this.style.textDecoration=\\"none\\"\'>\\u8be6\\u60c5&raquo;</a>")+ "</div>",enableParano:b});b&&(a.street_id=g);a.addEventListener("open",function(){var a=x.$("panoInfoBox");if(a){var b=e.street_id||"";d.SW("click",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;c<d;c++)b.push(a[c][1]),c<d-1&&b.push(", ");return b.join("")},Rs:function(a){var b=this.Qd.getElementsByTagName("canvas"),c=a.offsetX,d=a.offsetY,e=k,f=k;this.map.vb();for(var f=this.map.oa().k.Ob,g=0,i=b.length;g<i;g++){var j=this.Qf(b[g]);if(c>j.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<i;b++){var c=f[b],d=c[0],g=c[1],l=this.Ib.Eb[c[3]]|| window.Eb[c[3]],m=l[0],l=this.Ib.wt(l,this.Ib.Eb[c[4]]||window.Eb[c[4]])[1],n=c[5]||{};if(l==k||"empty"==l)break;if(2!=m&&(3!=m&&4!=m&&0<l.length&&n.u)&&(iconX=g[0]+j.left,iconY=g[1]+j.top,a.offsetX>=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")}, SW:function(a,b,c,d){var e=this;c.dn||(c.dn=[],c.handle={});c.dn.push({filter:d,Em:b});c.handle[a]||(c.addEventListener(a,function(a){for(var b=a.target;b!=c;){e.Fb(c.dn,function(c,d){RegExp(d.filter).test(b.getAttribute("filter"))&&d.Em.call(b,a,b.getAttribute("filter"))});b=b.parentNode}},q),c.handle[a]=o)},Fb:function(a,b){for(var c=0,d=a.length;c<d;c++)b(c,a[c])}});window.VectorLayer=Jg;Kg=1;Lg=2;Mg=3;Ng=4;Og=5; function Qg(){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=p;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)} Qg.prototype={$s:function(a,b,c){this.UO=(new Date).getTime();var d=a.bg,e=a.poi;this.oG=d.length;this.nj=0;this.Ze=d.length;this.QK();this.Zm||(this.Zm=o,this.map=b.map,this.fb=b,this.Ac=this.map.B.devicePixelRatio,0<this.Ze&&(this.Ob=parseInt(d[0][2].style.width,10)));this.map.vb();this.WO=0;this.BF=c;b=this.map.Na;this.wn=Math.pow(2,18-b);this.Nj?this.Nj.length=0:this.Nj=[];this.map.dispatchEvent(new N("onvectorbegin"));if(this.oG<=e.length)var f=0,g=this.Ze;else f=0,g=e.length;for(;f<g;f++)d[f][2].af= q,e[f][2].af=q,d[f][2].Pq=(new Date).getTime(),e[f][2].Pq=(new Date).getTime(),this.Oy(d[f][0],d[f][1],d[f][2],b,e[f][2]||p,c,a.isZoomMap)},QK:function(){for(var a in this.yk)delete this.yk[a]},AD:function(a,b,c,d,e){this.Nj?this.Nj.length=0:this.Nj=[];this.UO=(new Date).getTime();var d=this.map.Na,f=this.map.wc(),f=new K(f.lng,f.lat);this.BF=c;this.vk=e;for(var e=0,g=a.length;e<g;e++){b[e].Pq=(new Date).getTime();var i=a[e][0],j=a[e][1],l="_"+parseInt(i+""+j+""+d).toString(36);"df"==c&&this.yk[l]? (i=this.yk[l],b[e].be=i,this.rj(b[e]),this.gp(i,b[e],d,p,f,d)):this.Oy(i,j,b[e],d,p,c)}},Oy:function(a,b,c,d,e,f){var g=this,i=g.zG,j=Math.abs(parseInt(a,10)+parseInt(b,10))%i.length,l="x="+a+"&y="+b+"&z="+d,m=g.map.ba.replace(/^TANGRAM_/,""),n="undefined"!=typeof TVC?TVC.zK.S5:{},s=n.version?n.version:"002",n=n.Ou?n.Ou:"20150601",u="",w=m+(0>a?"_":"")+(0>b?"$":"")+parseInt(Math.abs(a)+""+Math.abs(b)+""+d,10).toString(36);if(c&&e)if(g.hi)if("no"==g.hi)u="&layers=&features="+g.hi,c.be=p,e.be=p,this.om? (f=c.getContext("2d"),a=e.getContext("2d"),f.canvas.width=f.canvas.width,a.canvas.width=a.canvas.width,a=f=p):(g.rj(c),g.rj(e)),g.Ze=0;else if(-1<g.hi.indexOf("pts"))if("pts,"==g.hi)c.be=p,this.om?(u=c.getContext("2d"),u.canvas.width=u.canvas.width,u=p):g.rj(c),u="&layers="+f;else{g.Ze<2*g.oG&&(g.Ze*=2);a=g.hi.split(",");b="";u=0;for(m=a.length;u<m;u++)"pts"!=a[u]&&""!=a[u]&&(b=a[u]+","+b);u="&layers=bg,"+f+"&features="+b;b=a=p}else e.be=p,this.om?(u=e.getContext("2d"),u.canvas.width=u.canvas.width, u=p):g.rj(e),u="&layers=bg&features="+g.hi;else u="&layers=bg,"+f;else u="&layers="+f;var i=(i[j]?i[0]:i[j])+"qt=lgvd&"+l+"&styles=pl"+u+"&f=mwebapp&v="+s+"&udt="+n+"&fn=BMap."+w,j=g.map.wc(),y=new K(j.lng,j.lat),D=g.map.ga();B[w]=function(a){var b=a.content;if(b){c.Nq=(new Date).getTime();e&&(e.Nq=(new Date).getTime());var f=g.map,a=f.wc(),f=f.ga();if(!a.ab(y)||f!=D){delete B[w];return}var a={},i;for(i in b)"df"==i&&(g.yk[w]=b[i]),a[i]=b[i];for(var j in a){i=a;for(var b=j,f=a[j],l=0,m=f.length;l< m;l++)for(var n=f[l][1],s=0,u=0,ia=0,Sa=n.length/2;ia<Sa;ia++)s+=n[2*ia]/10,u+=n[2*ia+1]/10,n[2*ia]=s,n[2*ia+1]=u;i[b]=f;"bg"==j?c.Oq=(new Date).getTime():e?e.Oq=(new Date).getTime():c.Oq=(new Date).getTime()}for(var Wa in a)"bg"==Wa?(c.be=a[Wa],c&&g.rj(c),g.gp(a[Wa],c,d,p,y,D)):e!==p?(e.be=a[Wa],g.rj(e),g.gp(a[Wa],e,d,p,y,D)):(c.be=a[Wa],c&&g.rj(c),g.gp(a[Wa],c,d,p,y,D))}delete B[w]};sa(i)},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;a.fillRect(0,0,b,b)},gp:function(a,b,c,d,e,f){b.MV=(new Date).getTime();var g=b.getContext("2d"),i=0;this.om?(g.canvas.width=g.canvas.width,g.scale(this.Ac,this.Ac)):1<this.Ac&&!b.ng&&(g.scale(this.Ac,this.Ac),b.ng=o);g.textBaseline="bottom";-1<b.id.indexOf("bg")&&this.map.B.Wo&&this.yD(g,this.Ob,this.map.B.Wo);for(var j=this.Lp,l=a.length,d=0,m=this.Eb;d<l;d++){var n=a[d],s=m[n[3]]||window.Eb[n[3]],u=m[n[4]]||window.Eb[n[4]];n.tc=s;n.Qc=u;if(s[0]==Mg)i++,this.Bm(g, n,p,f);else break}b.LV=(new Date).getTime();n=this.map.wc();c=this.map.ga();if(n.ab(e)&&c==f){b.o_=(new Date).getTime();for(var w=[];d<l;d++){var n=a[d],s=m[n[3]]||window.Eb[n[3]],u=m[n[4]]||window.Eb[n[4]];n.tc=s;n.Qc=u;17<=c&&(s[5]&&0<s[5].length&&1==s[5][0]&&6==s[5][1]&&u&&0<u.length)&&(s[5].length=0,s[6]=0,u[6]=0);if(s[0]==Lg)i++,w.push(n);else break}this.NF(g,w,c,this.wn);b.n_=(new Date).getTime();n=this.map.wc();c=this.map.ga();if(n.ab(e)&&c==f){for(b.OZ=(new Date).getTime();d<l;d++)n=a[d], s=m[n[3]]||window.Eb[n[3]],u=m[n[4]]||window.Eb[n[4]],n.tc=s,n.Qc=u,n[5]&&n[5].u&&this.vk&&n[5].c==this.vk.fea[5].c?("df"!==this.vk.fea[5].c?this.Bm(g,n,this.wn,o,f):n[5].u==this.vk.fea[5].u?this.Bm(g,n,this.wn,o,f):this.Bm(g,n,this.wn,q,f),n[5].u==this.vk.fea[5].u&&(c=new N("onclickicondrawed"),c.tarPoi={id:b.id,fea:n,equal:this.uW(n[1],this.vk.fea[1])},this.map.dispatchEvent(c))):this.Bm(g,n,this.wn,q,f),i++;b.af=o;this.f_();a=(new Date).getTime();b.NZ=a;b.kH=a;a=b.Nq-b.Pq;f=b.Oq-b.Nq;__drawTime= b.kH-b.Oq;this.Nj.push({id:b.id,downLoadTime:a,parseDataTime:f,drawTime:__drawTime,restRate:i+"/"+d,areaTime:b.LV-b.MV,roadTime:b.n_-b.o_,otherTime:b.NZ-b.OZ,timeline:{start:b.Pq,downLoadComplete:b.Nq,parseComplete:b.Oq,drawComplete:b.kH}});this.WO++;1==this.WO&&this.map.dispatchEvent(new N("onfirstvectorloaded"));if(this.Ze==this.nj){if(j){this.Lp=q;for(d=b=0;i=this.Nj[d];d++)b+=i.drawTime;this.map.vb();B.Vn("cus.fire","time",{z_vectorfirstdrawtime:b})}d=(new Date).getTime()-this.UO;c=new N("onvectorloaded"); c.oG=this.Ze;c.B5=d;c.w5=this.Nj;this.map.dispatchEvent(c);this.map.dispatchEvent(new N("ontilesloaded"))}}}},f_:function(){this.nj++;2>=this.Ze-this.nj&&this.map.dispatchEvent(new N("onallvectorloaded"))},uW:function(a,b){var c=q;if(a.length&&b.length&&a.length==b.length){for(var d=0,e=a.length;d<e&&a[d]===b[d];d++);d==e&&(c=o)}return c},Bm:function(a,b,c,d,e){switch(b.tc[0]){case Mg:this.Dx(a,b,e);break;case Lg:this.ue(a,b[1],b.tc,b.Qc,b[2],c);break;case Ng:this.xD(a,b);break;default:this.zD(a, b,d)}},Dx:function(a,b,c){var d=b.tc,e=d[2],b=b[1];a.fillStyle=B.Cb.we(d[1]);a.beginPath();a.moveTo(b[0],b[1]);for(var d=2,f=b.length;d<f;d+=2)a.lineTo(b[d],b[d+1]);a.closePath();a.fill();0<e.length&&(a.strokeStyle=a.fillStyle,a.lineWidth=12<=c?3:e[3],a.stroke())},ue:function(a,b,c,d,e,f){if(c||d){var g=B.Cb.we,i=B.Cb.Rx,j=B.Cb.Sx;if(this.Ot(c,d))firstColor=backColor=(g=d&&d[5]&&0<d[5].length?o:q)?B.Cb.we(c[1]):"rgba(0, 0, 0, 0)",backLineWidth=c[2],foreLineWidth=g?d[2]:c[2],intervalLen=g?d[5][0]: c[5][0],intervalColor=B.Cb.we(g?d[1]:c[1]),c=Math.round(e/f),B.Cb.iX(a,b,intervalLen,backLineWidth,foreLineWidth,firstColor,c,backColor,intervalColor);else if(1==c[7])a.strokeStyle=g(c[1]),a.fillStyle=a.strokeStyle,a.lineWidth=c[2],a.lineCap=i(c[3]),a.lineJoin=j(c[4]),B.Cb.sL(a,b,a.lineWidth);else{a.beginPath();a.moveTo(b[0],b[1]);e=2;for(f=b.length;e<f;e+=2)a.lineTo(b[e],b[e+1]);a.strokeStyle=g(c[1]);a.lineCap=i(c[3]);a.lineJoin=j(c[4]);a.lineWidth=c[2];a.stroke();d&&(a.strokeStyle=g(d[1]),a.lineWidth= d[2],a.lineCap=i(d[3]),a.lineJoin=j(d[4]),a.stroke())}}},xD:function(a,b){var c=b[1],d=b.tc,e=B.Cb.we,f=e(d[1]),g=e(d[2]),i=d[4],e=e(i[1]),i=i[2],d=d[5];B.Cb.BD(a,c,0,d,0,f,g,e,i)},zD:function(a,b,c){a.save();var d=b[1],e=b[0],f=b[2],b=this.wt(b.tc,b.Qc),g=b[1],i=0;if(!("undefined"==typeof g||"number"==typeof g)){var j=-1<g.indexOf("biaopai");g.indexOf("ditie");if(0<g.length){var l="undefined"!=typeof TVC?TVC.zK.U0:{},l=this.Jt[g.length%this.Jt.length]+this.um.normal.iconUrl+"/"+g+".png?v="+(l.version? l.version:"002")+"&udt="+(l.Ou?l.Ou:"201500601"),m=new Image,n=d[0],s=d[1];2<d.length&&(i+=2);var u=this;if(j)(function(a,b,c,d,e,f,g,i,j,l,n){m.onload=function(){c.drawImage(this,a-this.width/4,b-this.height/4,this.width/2,this.height/2);u.at(c,d,e,f,g,i,j,l,n);m.onload=p;delete m.onload;m=p}})(n,s,a,d,b,f,e,g,i,j,c),m.src=l;else{var w=u.jt[g];w?a.drawImage(w,n-w.width/4,s-w.height/4,w.width/2,w.height/2):(function(b,c,d){m.onload=function(){a.drawImage(this,b-this.width/4,c-this.height/4,this.width/ 2,this.height/2);d&&(u.jt[g]=m);m.onload=p;delete m.onload;m=p}}(n,s,u.Lp),m.src=l)}}!j&&(b[2]&&0<b[2].length)&&this.at(a,d,b,f,e,g,i,j,c)}a.restore()},at:function(a,b,c,d,e,f,g,i,j){var l=B.Cb.we,m=c[2];if(e&&0<m.length){var n=[],c=m[2],s=m[3],u=m[4],m=m[5];n.push(B.Cb.bM(u));n.push(c+"px");i||n.push("Helvetica Neue,Arial,Hiragino Sans GB,\\u9ed1\\u4f53,sans-serif");a.font=n.join(" ");a.fillStyle=j?"#c61b1b":l(s);if(j=B.Cb.MM(u))a.strokeStyle=l(m),a.lineWidth=i?0.5:2;for(var f=-1<f.indexOf("biaopai_xiandao"), n=e.split("\\\\"),s=0,w=n.length,y=b.length;s<w&&g<y;s++){var D=b[g],C=b[g+1],e=n[s],e=a.measureText(e).width,F=c,g=g+2;10<d&&350>d&&this.xG(a,D,C,d);var A=1;B.Cb.LM(u)&&(B.Cb.HL(a,D-e/2,C-F/2,e,F,{fillStyle:l(m)}),A=0);f?(a.save(),a.scale(0.9,0.9),j&&a.strokeText(n[s],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.fillText(n[s],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.restore()):(A=i?2:A,j&&a.strokeText(n[s],D-e/2,C+F/2+A),a.fillText(n[s],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){if(16>=c)for(var c=0,e=b.length;c<e;){for(var f=b[c],g=this.At(f.tc,f.Qc),f=c+1;f<e;f++){var i=b[f];if(g!=this.At(i.tc,i.Qc))break}for(var j=c;j<f;j++){var l=b[j],m=l[1],g=l.tc,i=l.Qc;this.Ot(g,i)?l.RE=o:this.ue(a,m,g,q)}for(j=c;j<f;j++)l=b[j],l.RE?this.ue(a,l[1],l.tc,l.Qc,l[2],d):this.ue(a,l[1],l.Qc, q);c=f}else{c=0;for(e=b.length;c<e;c++)f=b[c],g=f.tc,i=f.Qc,j=g[6]&1?o:q,i&&!j&&(j=i[6]&1?o:q),j?f.aF=o:this.ue(a,f[1],g,q);c=0;for(e=b.length;c<e;c++)f=b[c],g=f.tc,i=f.Qc,f.aF?this.ue(a,f[1],g,i,f[2],d):this.ue(a,f[1],i,q)}},At:function(a,b){if(!b)return 0;var c=a[6],d=b[6];if(1==c||1==d)return 1;switch(c){case 2:return 2==d?1:0;case 4:case 6:case 8:case 10:return 4<=d&&10>=d?1:0;default:return 0}},Ot:function(a,b){return a&&0<a.length&&0<a[5].length||b&&0<b.length&&0<b[5].length?o:q}}; B.VectorDrawLib=Qg; ');