/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('tile', 'function yf(){this.Lf=this.Dp=this.pp=this.Mj=p;this.sE=q;this.ci=p}x.lang.ta(yf,jc,"MobileInfoWindow"); x.extend(yf.prototype,{initialize:function(a){this.C=a;this.ci=document.createElement("div");this.ci.className="iw";this.ci.style.cssText="position:absolute; line-height:28px; text-align:center; border:0px;";var b=this.Mj=document.createElement("div");this.ci.appendChild(b);this.pp=document.createElement("div");this.pp.className="iw_l";b.appendChild(this.pp);this.Dp=document.createElement("div");this.Dp.className="iw_r";b.appendChild(this.Dp);this.kk=document.createElement("a");this.kk.setAttribute("target", "_blank");this.kk.className="iw_s iw_s0 iw_c";this.kk.innerHTML="
";b.appendChild(this.kk);a.Qf().sD.appendChild(this.ci);this.bind();this.Lf=this.kk.getElementsByTagName("DIV")[0];this.pp.style.display="block";this.Dp.style.display="block";return this.ci},bind:function(){var a=this;x.M(a.pp,"click",function(b){a.QY();b.preventDefault();b.stopPropagation()});x.M(a.Dp,"click",function(b){a.yY();b.preventDefault();b.stopPropagation()});x.M(a.kk,"click",function(a){a.stopPropagation()}); x.Fb("touchstart touchmove touchend gesturestart gesturechange mousedown mouseout mouseover click mousewheel keydown selectstart".split(" "),function(b){x.M(a.kk,b,ma);x.M(a.pp,b,ma);x.M(a.Dp,b,ma)})},WI:s(),LI:s(),ha:function(){return new H(this.fI.lng,this.fI.lat)},sa:s(),Va:t("sE"),U:function(){x.D.U(this.V);this.ci.style.display="none";this.sE=q},show:function(a){a&&(this.point=a);x.D.show(this.V);this.ci.style.display="block";this.sE=o;this.C.R.nb=this},TZ:function(){var a=this.C,b=this.Uh,c= this.Mj.offsetWidth,d=this.Mj.offsetHeight,e=a.yb(),c=c/2+16,d=d/2+78;if(this.Uh){var f=new Q(0,0);b.xe.height-b.y&&(f.y=e.height-b.y-60);0==f.x&&0==f.y||a.yg(f.x,f.y)}},switchTo:function(a){this.Uh=a.point;this.af=a.name;this.hk=a.uid;this.$j=a.ya;this.pT=parseInt(this.C.platform.style.left);this.qT=parseInt(this.C.platform.style.top);this.fI=this.C.ub(this.Uh);this.show();this.tZ();this.NN()},N3:function(){this.Mj.className= "iw_rt";this.show();this.NN()},tZ:function(){this.kk.setAttribute("href","http://map.baidu.com/place/detail?uid="+this.hk+"&output=html&source=jsapi&operate=mapclick&clicktype=vector");this.Mj.className="iw_rt";this.Lf.innerHTML="
"+this.af+"
";this.draw()},NN:function(){var a=this;a.hE||(a.hE=setTimeout(function(){a.TZ();clearTimeout(a.hE);a.hE=p},100))},F4:function(){var a=$("popList"); 43k&&(k=e),f>l&&(l=f);a[b][7]=[g,i,k,l]}return a};z.Bb={XK:function(a,b,c,d,e,f){var g=f&&f.wa?f.wa:5,f=f&&f.fillStyle?f.fillStyle:"#817FD1",b=b-2,c=c-3,d=d+4,e=e+4;a.save();a.fillStyle=f;a.beginPath();a.moveTo(b+g,c);a.lineTo(b+d-g,c);a.arc(b+d-g,c+g,g,3*Math.PI/2,2*Math.PI,q);a.lineTo(b+d,c+e-g);a.arc(b+d-g,c+e-g,g,0,Math.PI/2,q);a.lineTo(b+g,c+e);a.arc(b+g,c+e-g,g,Math.PI/2,Math.PI,q);a.lineTo(b,c+g);a.arc(b+g,c+g,g,Math.PI,3*Math.PI/2,q);a.fill();a.restore()},YC:function(a,b,c,d,e,f,g,i,k){6>b.length||(d=d*Math.PI/180,e=e*Math.PI/180,this.bR(a, b,c,d,e,f,i,k),this.pR(a,b,c,d,e,g,i,k))},bR:function(a,b,c,d,e,f,g,i){a.strokeStyle=g;a.lineWidth=i;a.fillStyle=f;f=0;for(g=b.length;f=e?(n=l+c*Math.sin(Math.abs(d)),v=i+c*Math.sin(Math.abs(d)),u=m-c*Math.sin(Math.abs(e)),w=k-c*Math.sin(Math.abs(e))):0>=d&&0<=e? (n=l-c*Math.sin(Math.abs(d)),v=i-c*Math.sin(Math.abs(d)),u=m+c*Math.sin(Math.abs(e)),w=k+c*Math.sin(Math.abs(e))):(n=l-c*Math.sin(Math.abs(d)),v=i-c*Math.sin(Math.abs(d)),u=m-c*Math.sin(Math.abs(e)),w=k-c*Math.sin(Math.abs(e)));a.lineTo(n,u);a.lineTo(v,w);a.stroke();a.fill()}},pR:function(a,b,c,d,e,f,g,i){var k=0,l=0;0<=d&&0<=e?(k=c*Math.sin(Math.abs(d)),l=-c*Math.sin(Math.abs(e))):0<=d&&0>=e?(k=c*Math.sin(Math.abs(d)),l=c*Math.sin(Math.abs(e))):0>=d&&0<=e?(k=-c*Math.sin(Math.abs(d)),l=-c*Math.sin(Math.abs(e))): (k=-c*Math.sin(Math.abs(d)),l=c*Math.sin(Math.abs(e)));a.beginPath();a.moveTo(b[0]+k,b[1]-l);c=2;for(d=b.length;cl&&(n=l);var u=Math.sqrt(n*n/(1+m*m));0>i&&(u=-u);k+= u;g+=m*u;a[e?"lineTo":"moveTo"](k,g);l-=n;e=!e}}a.stroke()},pW:function(a,b,c,d,e,f,g,i,k){for(var l=b.length,f=0==parseInt(g/c)%2?f:f==i?k:i,g=(c-g%c)%c,m=0,n=0;n>>=0;return"rgba("+(a>>24&255)+","+(a>>16&255)+","+(a>>8&255)+","+(a&255)/256+")"},qL:function(a){return a&2?"italic":""},aM:function(a){return!!(a&16)},$L:function(a){return!!(a&4)},lx:function(a){return["butt","square","round"][a]},mx:function(a){return["miter","bevel","round"][a]}};x.extend(Dc.prototype,{TP:function(){this.EG(this.map);this.UH(o);this.Qx(0)},Qx:function(a){this.map.fa();this.loaded||(this.Gx(),this.UH(o),this.loaded=o);this.Tf();0!==a&&this.MO.Zd()},qa:function(){var a=this,b=a.map;b.addEventListener("loadcode",function(){a.Qx()});b.addEventListener("addtilelayer",function(b){a.Yg(b)});b.addEventListener("removetilelayer",function(b){a.zh(b)});b.addEventListener("setmaptype",function(b){a.Bg(b)});b.addEventListener("zoomstartcode",function(){a.Lc()});a.map.addEventListener("setcustomstyles", function(b){a.Nt(b.target);a.Tf(o)});a.EG(b)},EG:function(a){var b=this;a.addEventListener("mousewheel",function(a){b.HY(a)});a.addEventListener("dblclick",function(a){b.yK(a)});a.addEventListener("rightdblclick",function(a){b.yK(a)});a.addEventListener("minuspress",function(a){b.mM(a)});a.addEventListener("pluspress",function(a){b.mM(a)});a.addEventListener("moving",function(){b.Tf()});a.addEventListener("resize",function(){b.map.Ub()||b.Tf()});b.map.addEventListener("setcustomstyles",function(){b.Cv()}); a.addEventListener("onvectorloaded",function(){a.Ub()&&(b.Cv(),b.md.style.visibility="")})},UH:function(){this.MO=new window.VectorLayer(this.map.K.te);this.map.Yg(this.MO)},Yg:function(a){var b=this,c=a.target,a=b.map.Ub();if(c instanceof db)a&&!c.Fm&&(c.qa(this.map,this.md),c.Fm=o);else if(c.Xf&&this.map.Yg(c.Xf),c.mp){for(a=0;af?o:q;if(e-1;b--){var c=m[b];if(n.children[b]){var d=n.children[b].style;d.top=Math.round(c.top+c.hf*a)+"px";d.left=Math.round(c.left+c.gf*a)+"px";d.width=Math.ceil(c.width+c.sW*a)+"px";d.height= Math.ceil(c.height+c.dW*a)+"px"}}if(i||k){u.left=n.gT-i*a+"px";u.top=n.kT-k*a+"px"}}},finish:function(){c.Tf();d.qd&&(x.ea.la&&x.ea.la<8||document.compatMode==="BackCompat"?x.D.show(d.qd):setTimeout(function(){x.D.show(d.qd)},100));c.vl.style.visibility="";c.ao.style.visibility="";delete c.Hq;d.dispatchEvent(new N("onzoomend"));setTimeout(function(){if(c.md)c.md.style.visibility="";c.Cv()},10);n=p;c.$h=p}})},Bg:function(){var a=this,b=a.map;b.addEventListener("tilesloaded",function(){setTimeout(function(){a.Cv()}, 200);b.removeEventListener("tilesloaded",arguments.callee)});for(var c in this.wg)this.Ex(this.wg[c]);for(c in this.fj)this.Ex(this.fj[c]);c=this.Km;for(var d=0,e=c.length;d