/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('marker', 'function ag(a,b){0x.ea.rg)&&x.M(this.V,"contextmenu",function(c){b.dispatchEvent(a(c,la(new N("onrightclick"), c)))}));x.M(this.V,"mousedown",function(c){if(b instanceof T)b.JA=b.ha();b.dispatchEvent(a(c,la(new N("onmousedown"),c)))});x.M(this.V,"mouseup",function(c){b.dispatchEvent(a(c,la(new N("onmouseup"),c)));x.ea.rg>=4&&(c.button===2&&b.z.ff)&&b.dispatchEvent(a(c,la(new N("onrightclick"),c)))})}},U:function(){this.Pa!==q&&(this.Pa=q,jc.prototype.U.call(this),this.zb&&(this.zb.$a&&this.zb.$a===this)&&this.Xc())},show:function(){this.Pa!==o&&(this.Pa=o,jc.prototype.show.call(this))},LN:function(a){if(a)for(var b in a)typeof this.z[b]=== typeof a[b]&&(this.z[b]=a[b])},St:function(a){this.zIndex=a;this.Ml()},Ml:function(){var a;Gb(this.zIndex)?a=this.zIndex:(a=0,this.map&&this.ha()&&(a=this.ha()?this.ha().lat:0,a=jc.ym(a)+(this.z.WJ||0)));this.V&&(this.V.style.zIndex=a)},uo:function(a){this.hg=a;this.map&&a.qa(this.map,this)},zp:function(){this.hg.remove();this.hg=p}});S(Qe,{show:Qe.show,hide:Qe.U,addContextMenu:Qe.uo,removeContextMenu:Qe.zp});T.Fu=jc.ym(-90)+1E6;T.kG=T.Fu+1E6;T.KR=function(a){if(T.Xu[a])return T.Xu[a];var b=T.Xu[a]=["BMap_"+Math.round(1E4*Math.random()),"BMap_"+Math.round(1E4*Math.random())],c=Cc[a],d=T.tU;d||(d=T.tU=K("style",{type:"text/css"}),document.getElementsByTagName("head")[0].appendChild(d));d.textContent+=T.sH(c.Bm,b[0])+T.sH(c.Tt,b[1]);return T.Xu[a]}; T.sH=function(a,b){var c=["@-webkit-keyframes "+b+" {\\\\n"];x.jc.Fb(a,function(a){c.push(100*a.$b,"% { ");c.push("-webkit-transform: translate(",a.translate[0],"px,",a.translate[1],"px); ");c.push("-webkit-animation-timing-function: ",a.gc,"; ");c.push("}\\\\n")});c.push("}\\\\n");return c.join("")}; T.PP=function(a,b){if(!T.Kh&&(T.Kh=K("img",{src:F.pa+"drag_cross.png",width:13,height:9}),T.Kh.style.position="absolute",6==x.ea.la)){delete T.Kh;var c=(T.Kh=K("div")).style;c.position="absolute";c.width="13px";c.height="9px";c.filter=\'progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image,src="\'+F.pa+\'drag_cross.png")\'}c=T.Kh.style;c.left=a.width-6+"px";c.top=a.height-5+"px";b.appendChild(T.Kh)};T.ET=function(){T.Kh&&T.Kh.parentNode&&T.Kh.parentNode.removeChild(T.Kh)};T.Xu=[]; T.LG=function(){this.style.WebkitAnimation=""}; x.extend(T.prototype,{initialize:function(a){this.br();gb.prototype.initialize.call(this,a);this.Pa||x.D.U(this.zc);this.sa(this.point);this.Tb(this.z.vj);this.zy(this.z.Nk);this.Lp(this.z.rotation);this.z.label&&this.Ru&&this.z.label.addEventListener("remove",this.Ru);this.fn(this.z.label);this.Dc(this.z.title);this.vA();return this.V},br:function(){this.Qi||(this.Qi=o,this.Zc=this.zc=this.Ld=this.V=p,this.ml=q)},Hj:function(){var a=this.map.Qf();this.V=zb(a.GE,this.bT());this.zc=zb(a.EM,this.US()); this.zc.ba=this.ba},bT:function(){var a=[\'\');return a.join("")},US:function(){var a=[\'\');return a.join("")},hU:function(){var a=[\'\');return a.join("")},draw:function(){if(this.V){var a=this.eS();this.V.style.left=a[0].x+"px";this.V.style.top=a[0].y+"px";this.zc&&(this.zc.style.left=a[0].x+"px",this.zc.style.top=a[0].y+"px"); this.Ld&&(this.Ld.style.left=a[1].x+"px",this.Ld.style.top=a[1].y+"px");this.zb!=p&&this.zb.Va()&&this.zb.sa();this.Ml()}},eS:function(){var a=this.z.ya||new L(0,0),b=this.z.vj.anchor||new L(0,0),c=this.map.Re(this.ha()),b=[new Q(c.x+a.width-b.width,c.y+a.height-b.height)];if(this.z.Nk){var d=this.z.Nk.anchor||new L(0,0);b[1]=new Q(c.x+a.width-d.width,c.y+a.height-d.height)}return b},wb:function(){this.map?(this.V=this.initialize(this.map),this.tq&&(this.dn(this.tq),delete this.tq)):delete this.tq}, remove:function(){this.dn(p);this.zc&&this.zc.parentNode&&this.zc.parentNode.removeChild(this.zc);this.Ld&&this.Ld.parentNode&&this.Ld.parentNode.removeChild(this.Ld);this.zb&&(this.zb.$a&&this.zb.$a===this)&&(this.Xc(),this.zb=p);this.bc=this.Zc=this.Ld=this.zc=p;if(this.z.label){var a=this.z.label;a.removeEventListener("remove",this.Ru);x.lang.Rw(a.ba);a.ON(p);a.V=p;this.z.label=p}gb.prototype.remove.call(this)},U:function(){gb.prototype.U.call(this);this.V&&x.D.U(this.V);this.zc&&x.D.U(this.zc); this.Ld&&x.D.U(this.Ld)},show:function(){gb.prototype.show.call(this);this.V&&x.D.show(this.V);this.zc&&x.D.show(this.zc);this.Ld&&x.D.show(this.Ld)},Tb:function(a){if(a instanceof nc||a instanceof oc)if(this.z.vj=a,this.map&&this.V&&this.zc){try{this.Zc&&(this.zc.removeChild(this.Zc),this.Zc=p),this.V.style.width=a.size.width+"px",this.V.style.height=a.size.height+"px"}catch(b){}if(this.z.vj){var c=this.Zc=K(a instanceof nc?"div":"canvas"),d=c.style;d.position="absolute";d.padding=d.margin="0";d.width= a.size.width+"px";d.height=a.size.height+"px";d.overflow="hidden";a instanceof oc?(c.width=a.size.width,c.height=a.size.height,a.wb(c)):(c.innerHTML=cg(a),c.cL=q);this.zc.appendChild(this.Zc)}this.draw()}},zy:function(a){if(a instanceof nc&&(this.z.Nk=a,this.map&&this.V&&this.zc)){this.Ld||(this.Ld=zb(this.map.Qf().FM,this.hU()));try{this.bc&&(this.Ld.removeChild(this.bc),this.bc=p),this.Ld.style.width=a.size.width+"px",this.Ld.style.height=a.size.height+"px"}catch(b){}if(this.z.Nk){var c=this.bc= K("div"),d=c.style;d.position="absolute";d.padding=d.margin="0";d.width=a.size.width+"px";d.height=a.size.height+"px";d.overflow="hidden";c.innerHTML=cg(a);c.cL=q;this.Ld.appendChild(this.bc)}this.draw()}},fn:function(a){if(a&&a instanceof rc){var b=this;I.load("marker",function(){b.aU(a)},o)}},aU:function(a){if(a instanceof rc){this.z.label=a;var b=this;this.z.label.Li||(this.z.label.Li=o,this.Ru=function(){b.z.label=p},this.z.label.addEventListener("remove",this.Ru));if(this.map){a.Ce(this.map); a.V?this.zc.appendChild(a.V):(a.V=zb(this.V,a.ua()),a.V.ba=a.ba);var c=a.V.style;c.left=a.z.ya.width+"px";c.top=a.z.ya.height+"px";a.ON(this)}}},vA:function(){function a(a,b){b.pixel=b.ib=a.ib;b.point=b.point=a.point;return b}function b(a){var b=a.clientX,c=a.clientY;a.changedTouches&&(b=a.changedTouches[0].clientX,c=a.changedTouches[0].clientY);return new Q(b,c)}if(this.V&&!this.V.Li){this.V.Li=o;var c=this.map,d=this,e=0,f=0,g=0,i={x:0,y:0};this.zs=function(a){if(d.z.Xb&&2!=a.button){d.ml=o;var i= c.ac(d.point),m=b(a);e=m.x-i.x;f=m.y-i.y;g=ab();d.map&&d.map.R&&(d.map.R.Yu=d);x.M(d.map.platform,"mousemove",d.kj);x.M(d.map.platform,"mouseup",d.jj);x.M(d.map.platform,"touchmove",d.kj);x.M(d.map.platform,"touchend",d.jj);d.V&&d.V.setCapture&&d.V.setCapture();d.V.style.cursor=d.z.Ed;"touchstart"==a.type&&ma(a)}};this.kj=function(g){if(d.ml&&(g=b(g),i=g=new Q(g.x-e,g.y-f),d.Uz=g,d.z.BN&&15=g.x||g.x>=d.map.width-20||50>=g.y||g.y>=d.map.height-10){if(20>=g.x?d.zl=8:g.x>=d.map.width-20&&(d.zl=-8),50>=g.y?d.Al=8:g.y>=d.map.height-10&&(d.Al=-8),!d.Be)d.Be=setInterval(function(){c.yg(d.zl,d.Al,{noAnimation:o});var a=c.ub(d.Uz);d.sa(a)},30)}else d.Be&&(clearInterval(d.Be),d.Be=p),d.sa(l);d.el||(d.dispatchEvent(a(m,new N("ondragstart"))),d.el=o,d.z.uN&&(d.dn(3),T.PP(d.z.vj.anchor,d.zc)));d.dispatchEvent(a(m,new N("ondragging")))}};this.jj=function(){d.V&&d.V.releaseCapture&&d.V.releaseCapture(); d.ml=q;d.map&&d.map.R&&(d.map.R.Yu=p);x.cd(document,"mousemove",d.kj);x.cd(document,"mouseup",d.jj);x.cd(document,"touchmove",d.kj);x.cd(document,"touchend",d.jj);e=f=0;d.Be&&(clearInterval(d.Be),d.Be=p);if(100<=ab()-g&&(2\'),a.printImageUrl&&(b.push(\'\'))):(b=[\'\'));return b=b.join("")};x.extend(rc.prototype,{Hj:function(){var a=this.z,b=this.content,c=K("label",{"class":"BMapLabel",unselectable:"on"});a.title&&(c.title=a.title);var d=c.style;d.position="absolute";d.MozUserSelect="none";0==a.width||"auto"==a.width?d.display="inline":(d.width=a.width+"px",d.display="block",d.overflow="hidden");"true"==a.ff?d.cursor="pointer":x.ea.la||(d.cursor="inherit");c.innerHTML=b;this.map.Qf().zE.appendChild(c);this.V=c;this.Kd(a.Rp);return c},sa:function(a){a instanceof H&&!this.ox()&&(this.point= this.z.position=new H(a.lng,a.lat),this.draw())},draw:function(){if(this.V&&this.ha()&&!this.ox()){var a=this.z.ya||new L(0,0),b=this.map.Re(this.ha());this.V.style.left=b.x+a.width+"px";this.V.style.top=b.y+a.height+"px";this.Ml()}},wb:function(){this.map&&!this.qv&&(this.V=this.initialize(this.map),this.draw())},bd:function(a){this.content=a;this.V&&(this.V.innerHTML=a)},uF:function(a){0<=a&&1>=a&&(this.z.opacity=a);if(this.V){var b=this.V.style;b.opacity=a;b.filter="alpha(opacity="+100*a+")"}}, Te:function(a){a instanceof L&&(this.z.ya=new L(a.width,a.height),this.ox()&&this.V?(this.V.style.left=a.width+"px",this.V.style.top=a.height+"px"):this.draw())},Kd:function(a){a=a||{};this.z.Rp=x.extend(this.z.Rp,a);if(this.V)for(var b in a)try{this.V.style[b]=a[b]}catch(c){}},Dc:function(a){this.z.title=a+"";this.V&&(this.V.title=this.z.title)}});S(Se,{setStyle:Se.Kd,setContent:Se.bd,setPosition:Se.sa,setOffset:Se.Te,setTitle:Se.Dc}); ');