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
1 line
21 KiB
10 months ago
|
/**/_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:functio
|