/* 百度地图API V2 模块 * 此模块必须配套使用baidumap_offline_v2_20160822.js对 * 获取模块的方法: * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2 * 模块名称就是文件名 * www.xiaoguo123.com 整理 */ _jsload2&&_jsload2('pointcollection', 'x.extend(wc.prototype,{qa:function(a){var b=this;b.map=this.C=a;b.wc=document.createElement("canvas");b.wc.style.cssText="position: absolute; left: 0; top: 0;";b.V=b.wc;a=b.map.yb();b.wc.width=a.width;b.wc.height=a.height;b.wc.id="myCanvasElement";b.map.Qf().ot.appendChild(b.wc);b.Ay=new Hf;b.hi();b.map.addEventListener("click",function(a){a=If(b.Ay,a.offsetX,a.offsetY);a!==p&&b.dispatchEvent("click",{point:a.point})});b.Ok=p;b.map.addEventListener("mousemove",function(a){for(var d=b.map.tx(),e=d.length, f=p,g=0;gd.x||0>d.y||d.x>a.width||d.y>a.height)){var e;switch(this.z.shape){case 1:e=new Jf; break;case 2:e=new Kf;break;case 4:e=new Lf;break;case 5:e=new Mf;break;case tc:e=new Nf;break;default:e=new Nf}switch(this.z.size){case 1:("circle"===e.type||"star"===e.type)&&e.qf(1);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(2),e.Ah(2);break;case 2:("circle"===e.type||"star"===e.type)&&e.qf(2);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(4),e.Ah(4);break;case 3:("circle"===e.type||"star"===e.type)&&e.qf(4);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(8),e.Ah(8);break;case uc:("circle"=== e.type||"star"===e.type)&&e.qf(5);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(10),e.Ah(10);break;case 5:("circle"===e.type||"star"===e.type)&&e.qf(8);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(16),e.Ah(16);break;case 6:("circle"===e.type||"star"===e.type)&&e.qf(10);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(20),e.Ah(20);break;case 7:("circle"===e.type||"star"===e.type)&&e.qf(15);if("rectangle"===e.type||"rhombus"===e.type)e.Ch(30),e.Ah(30);break;default:if(("circle"===e.type||"star"=== e.type)&&e.qf(5),"rectangle"===e.type||"rhombus"===e.type)e.Ch(10),e.Ah(10)}this.z.color&&("circle"===e.type||"star"===e.type||"rectangle"===e.type||"rhombus"===e.type)&&e.Kk(this.z.color);e.Lo(this.wc.getContext("2d"),d.x,d.y);e.point=c;this.Ay.data.zF.push(e)}}this.wc.getContext("2d").fillStyle=this.z.color;this.wc.getContext("2d").fill();-1!==document.location.href.indexOf(".local")&&(console&&console.timeEnd)&&console.timeEnd("\\u904d\\u5386\\u7ed8\\u5236\\u9ebb\\u70b9")}},b_:function(a){this.da.ia= a;this.hi()},yi:function(a){a.color&&(this.z.color=a.color);a.size&&(this.z.size=a.size);a.shape&&(this.z.shape=a.shape);this.hi()},clear:function(){this.da.ia=[];this.hi()},remove:function(){this.clear();this.wc&&this.wc.parentNode&&this.wc.parentNode.removeChild(this.wc);this.dispatchEvent(new N("onremove"))}});wc.prototype.initialize=wc.prototype.qa;wc.prototype.draw=wc.prototype.hi;wc.prototype.setPoints=wc.prototype.b_;wc.prototype.setStyles=wc.prototype.yi;wc.prototype.clear=wc.prototype.clear; wc.prototype.remove=wc.prototype.remove;function Hf(){this.data={zF:[]}}function If(a,b,c){for(var d=0,e;e=a.data.zF[d];d++)if(e.vk(),b>e.position.x-e.gp()/2&&be.position.y-e.vk()/2&&c