/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('vector', 'x.extend(Lc.prototype,{qa:function(a,b){Ec.prototype.qa.call(this,a,b);this.Cg={};this.cr(a);this.pq();this.Lq()},remove:function(){var a=this.C;Ec.prototype.remove.call(this);a&&(a.removeEventListener("zoomend",this.Xk),a.removeEventListener("moveend",this.Dk),a.removeEventListener("resize",this.Jk),a.removeEventListener("hotspotclick",this.OL),a.bm(this.k.Bk))},cr:function(a){this.C=a;this.IB=this.Pb;this.yc=this.C.K.devicePixelRatio;this.mn=62;a.bm(this.k.Bk);for(var b in this.ip)delete this.ip[b]}, pq:function(){var a=this,b=this.C;a.Xk=function(b){a.Lq(b)};a.Dk=function(b){a.Lq(b)};a.Jk=function(b){a.Lq(b)};a.OL=function(b){0>>=0;return"rgba("+(a>>24&255)+","+(a>>16&255)+","+(a>>8&255)+","+(a&255)/256+")"},lx:function(a){return["butt","square","round"][a]},mx:function(a){return["miter","bevel","round"][a]}});x.extend(db.prototype,{ye:function(){this.qa(this.C,this.B)},qa:function(a,b){this.C=a;this.B=b;this.C&&this.B&&(this.cr(),this.AS(),this.pq(),this.Kq())},remove:function(){var a=this.C;this.B.removeChild(this.Wa);a.removeEventListener("zoomend",this.Xk);a.removeEventListener("moving",this.PM);a.removeEventListener("moveend",this.Dk);a.removeEventListener("resize",this.Jk)},cr:function(){var a=this.C,b=a.K.devicePixelRatio,c=a.oa().k.Ob,d=a.yb(),a=d.width,d=d.height;this.Yh={};this.Ob=c;this.yc=b; this.FE=a;this.EE=d;this.uC=a*b;this.tC=d*b},AS:function(){var a=this.C,b=this.B,c=document.createElement("canvas"),d=c.style;d.position="absolute";d.zIndex=5;d.left=-a.offsetX+"px";d.top=-a.offsetY+"px";d.width=this.FE+"px";d.height=this.EE+"px";c.setAttribute("width",this.uC);c.setAttribute("height",this.tC);b.appendChild(c);this.Wa=c;this.Ih=c.getContext("2d");a=this.yc;1this.fa()?"none":"block";a();b.Kq(c)};b.PM=function(c){var d=(new Date).getTime();100>d-b.nM||(b.nM=d,a(),b.Kq(c))};b.Dk=function(c){a();b.Kq(c)};b.Jk=function(e){var f=c.yb(),g=f.width,f=f.height,i=g*d,k=f*d;b.Wa.style.width=g+"px";b.Wa.style.height=f+"px";b.Wa.setAttribute("width",i);b.Wa.setAttribute("height",k);b.FE=g;b.EE=f;b.uC=i;b.tC=k;a();b.Kq(e)};c.addEventListener("zoomend",b.Xk);c.addEventListener("moving",b.PM);c.addEventListener("moveend", b.Dk);c.addEventListener("resize",b.Jk)},Kq:function(a){var b=this.C,c=b.fa();if(!(18>c)){var d=b.bb.lL(),e=d[0],b=d[1],f=d[2],d=d[3],a=a?q:o,g;for(g in this.Yh)for(var i=e;i