diff --git a/dist/inmap.js b/dist/inmap.js index 41a1846..aaa6b21 100644 --- a/dist/inmap.js +++ b/dist/inmap.js @@ -401,6 +401,10 @@ function checkGeoJSON(data, isCheckName, isCheckCount) { } } function rectangleLngLats(geo) { + if (geo.length == 0) { + return []; + } + var minX = geo[0][0]; var minY = geo[0][1]; var maxX = geo[0][0]; @@ -4805,7 +4809,7 @@ var WorkerMrg = function () { _classCallCheck(this, WorkerMrg); this.worker = null; - this.workerContent = '!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(\"inMap\",[],e):\"object\"==typeof exports?exports.inMap=e():t.inMap=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=188)}({153:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o={toRecGrids:function(t){var e=t.request.data,n=e.points,r=e.zoomUnit,i=e.size,a=e.mapSize,u=e.nwMc,c=e.type,s=t.request.map;o._calculatePixel(s,n);var f=o.recGrids(n,s,u,i,r,a,c);return t.request.data=f,t},_calculatePixel:function(t,e){for(var n=0,o=e.length;n=f&&j<=l&&L>=p&&L<=d)for(var S=0;S=T&&j=A&&L0&&(I.count=I.count/I.list.length),I.count>0&&C.push(I)}return u=null,y=null,m=null,t=null,{grids:C}}};e.default=o},154:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o={pointsToPixels:function(t){return t.request.data.forEach(function(e){var n=e.geometry.coordinates;e.geometry.pixel=(0,r.pointToPixelWorker)({lng:n[0],lat:n[1]},t.request.map),n=null}),t}};e.default=o},155:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o=n(5),i={toRecGrids:function(t){var e=t.request.data,n=e.points,r=e.zoomUnit,o=e.size,a=e.mapSize,u=e.nwMc,c=e.type,s=t.request.map;i._calculatePixel(s,n);var f=i.honeycombGrid(n,s,u,o,r,a,c);return t.request.data=f,t},_calculatePixel:function(t,e){for(var n=0,o=e.length;n=v&&O<=g&&j>=d&&j<=m){var L=i._findGrids(c,O,j);L&&(L.list.push(w),L.count+=w.count)}}var S=[];for(var T in c){var k=c[T];\"avg\"==u&&k.count>0&&(k.count=k.count/k.list.length),k.list.length>0&&S.push(k)}return c=null,t=null,{grids:S}}};e.default=i},156:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(69),o={merge:function(t){var e=t.request.data,n=e.pixels,o=e.height,i=e.borderWidth,a=e.byteWidth,u=n.map(function(t){var e=t.pixel.radius+i;return new r.Label(t.pixel.x,t.pixel.y,e,o,a,t.name)});u.sort(function(t,e){return e.x-t.x});var c=void 0;do{c=!1;for(var s=0;sn-2?n-1:l+1],v=t[l>n-3?n-1:l+2]);var g=h*h,m=h*g;r.push([i(p[0],d[0],y[0],v[0],h,g,m),i(p[1],d[1],y[1],v[1],h,g,m)])}return r}function i(t,e,n,r,o,i,a){var u=.5*(n-t),c=.5*(r-e);return(2*(e-n)+u+c)*a+(-3*(e-n)-2*u-c)*i+u*o+e}function a(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function u(t,e,n){for(var r=(e[0]-t[0])/n,o=(e[1]-t[1])/n,i=[],a=0;a=-180&&t.lat<=74&&t.lat>=-74},r.prototype.equals=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},e.default=r},161:function(t,e,n){\"use strict\";function r(t,e,n,r){this.x=t,this.y=e,this.h=n,this.d=s(t,e),this.max=this.d+this.h*Math.SQRT2}function o(t,e){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function i(t,e){return t.x-=e.x,t.y-=e.y,t}function a(t,e){return t.x*=e,t.y*=e,t}function u(t,e){return t.x+=e.x,t.y+=e.y,t}function c(t,e,n){var r=o(n,e);if(0===r)return o(e,t);var c=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return c<0?o(e,t):c>1?o(n,t):o(u(a(i(n,e),c),e),t)}function s(t,e){for(var n=!1,r=1/0,o=0;ot.y!=l.y>t.y&&t.x<(l.x-f.x)*(t.y-f.y)/(l.y-f.y)+f.x&&(n=!n),r=Math.min(r,c(t,f,l))}return(n?1:-1)*Math.sqrt(r)}function f(t){for(var e=0,n=0,o=0,i=t[0],a=0;ao)&&(o=u[0]),(!a||u[1]>i)&&(i=u[1])}if(e==o||n==i)return null;for(var c=o-e,s=i-n,l=Math.min(c,s),h=l/2,d=new p.default(null,function(t,e){return e.max-t.max}),y=e;yg.d&&(g=m),m.max<=g.d||(h=m.h/2,d.push(new r(m.x-h,m.y-h,h,t)),d.push(new r(m.x+h,m.y-h,h,t)),d.push(new r(m.x-h,m.y+h,h,t)),d.push(new r(m.x+h,m.y+h,h,t)))}return{x:g.x,y:g.y}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=l;var h=n(179),p=function(t){return t&&t.__esModule?t:{default:t}}(h)},179:function(t,e,n){\"use strict\";function r(t,e){if(!(this instanceof r))return new r(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||o,this.length>0)for(var n=this.length>>1;n>=0;n--)this._down(n)}function o(t,e){return te?1:0}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r,r.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var o=t-1>>1,i=e[o];if(n(r,i)>=0)break;e[t]=i,t=o}e[t]=r},_down:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,o=e[t];t=0)break;e[t]=u,t=i}e[t]=o}}},188:function(t,e,n){\"use strict\";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.TDpost=void 0;var o=n(154),i=r(o),a=n(153),u=r(a),c=n(158),s=r(c),f=n(157),l=r(f),h=n(155),p=r(h),d=n(156),y=r(d),v={HeatOverlay:i.default,GriddingOverlay:u.default,PolygonOverlay:s.default,LineStringOverlay:l.default,HoneycombOverlay:p.default,LabelEvading:y.default};onmessage=function(t){var e=t.data;m(e)};var g={},m=function(t){for(var e=t.request,n=e.classPath,r=e.hashCode,o=e.msgId,i=n.split(\".\"),a=0,u=v;i[a];){if(u=u[i[a]],++a>=i.length){g[n]=r+\"_\"+o;var c=u(t);x(c)}if(!u)throw new TypeError(\"inMap : \"+i[a-1]+\" worker \"+n+\" is not a function\")}},x=e.TDpost=function(t){var e=t.request,n=e.classPath,r=e.hashCode,o=e.msgId,i=v[n];i&&i!=r+\"_\"+o||(postMessage(t),t.request.data=[],t=null)}},395:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},5:function(t,e,n){\"use strict\";function r(t){var e=Object.prototype.toString;return{\"[object Boolean]\":\"boolean\",\"[object Number]\":\"number\",\"[object String]\":\"string\",\"[object Function]\":\"function\",\"[object Array]\":\"array\",\"[object Date]\":\"date\",\"[object RegExp]\":\"regExp\",\"[object Undefined]\":\"undefined\",\"[object Null]\":\"null\",\"[object Object]\":\"object\"}[e.call(t)]}function o(t){return\"number\"==r(t)}function i(t){return\"boolean\"==r(t)}function a(t){return\"function\"==r(t)}function u(t){return\"string\"==r(t)}function c(t){return\"object\"==r(t)}function s(t){return\"array\"==r(t)}function f(t){var e=window.devicePixelRatio;t.canvas.width=t.canvas.width*e,t.canvas.height=t.canvas.height*e,t.canvas.style.width=t.canvas.width/e+\"px\",t.canvas.style.height=t.canvas.height/e+\"px\",t.scale(e,e)}function l(t){return String(t).replace(/&/g,\"&\").replace(//g,\">\").replace(/\"/g,\""\").replace(/\'/g,\"'\")}function h(t,e,n,r){for(var o=!1,i=90,a=-90,u=180,c=-180,s=0;sa&&(a=e[s]),e[s]c&&(c=t[s]),t[s]a||rc))for(var f=0;f\");for(var r=0,o=t.length;r0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return t.geometry.coordinates}))}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[];return t.forEach(function(t){e=e.concat(t.geometry.coordinates)}),x(e)}function M(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=0;ndocument.F=Object<\/script>\"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(40),o=n(17);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(4).f,o=n(3),i=n(8)(\"toStringTag\");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(25)(\"keys\"),o=n(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r[\"__core-js_shared__\"]||(r[\"__core-js_shared__\"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&\"function\"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if(\"function\"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&\"function\"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError(\"Can\'t convert object to primitive value\")}},function(t,e,n){var r=n(1),o=n(0),i=n(19),a=n(29),u=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});\"_\"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(53),a=r(o),u=n(52),c=r(u),s=\"function\"==typeof c.default&&\"symbol\"==i(a.default)?function(t){return void 0===t?\"undefined\":i(t)}:function(t){return t&&\"function\"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?\"symbol\":void 0===t?\"undefined\":i(t)};e.default=\"function\"==typeof c.default&&\"symbol\"===s(a.default)?function(t){return void 0===t?\"undefined\":s(t)}:function(t){return t&&\"function\"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?\"symbol\":void 0===t?\"undefined\":s(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(62);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(33)(\"div\"),\"a\",{get:function(){return 7}}).a})},function(t,e,n){var r=n(19),o=n(5),i=n(41),a=n(6),u=n(3),c=n(18),s=n(69),f=n(23),l=n(39),h=n(8)(\"iterator\"),p=!([].keys&&\"next\"in[].keys()),d=function(){return this};t.exports=function(t,e,n,y,v,g,m){s(n,e,y);var x,b,_,M=function(t){if(!p&&t in j)return j[t];switch(t){case\"keys\":case\"values\":return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+\" Iterator\",w=\"values\"==v,O=!1,j=t.prototype,L=j[h]||j[\"@@iterator\"]||v&&j[v],S=L||M(v),T=v?w?M(\"entries\"):S:void 0,k=\"Array\"==e?j.entries||L:L;if(k&&(_=l(k.call(new t)))!==Object.prototype&&_.next&&(f(_,P,!0),r||u(_,h)||a(_,h,d)),w&&L&&\"values\"!==L.name&&(O=!0,S=function(){return L.call(this)}),r&&!m||!p&&!O&&j[h]||a(j,h,S),c[e]=S,c[P]=d,v)if(x={values:w?S:M(\"values\"),keys:g?S:M(\"keys\"),entries:T},m)for(b in x)b in j||i(j,b,x[b]);else o(o.P+o.F*(p||O),e,x);return x}},function(t,e,n){var r=n(22),o=n(12),i=n(7),a=n(27),u=n(3),c=n(34),s=Object.getOwnPropertyDescriptor;e.f=n(2)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(40),o=n(17).concat(\"length\",\"prototype\");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),o=n(42),i=n(24)(\"IE_PROTO\"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(3),o=n(7),i=n(64)(!1),a=n(24)(\"IE_PROTO\");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.MercatorProjection=void 0;var o=n(50),i=r(o),a=n(14),u=r(a),c=n(15),s=r(c),f=n(55),l=r(f),h=n(54),p=r(h),d=n(46),y=n(45),v=n(44);e.MercatorProjection=function(t){function e(){(0,u.default)(this,e);var t=(0,l.default)(this,(e.__proto__||(0,i.default)(e)).call(this));return t.EARTHRADIUS=6370996.81,t.MCBAND=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],t.LLBAND=[75,60,45,30,15,0],t.MC2LL=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],t.LL2MC=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],t}return(0,p.default)(e,t),(0,s.default)(e,[{key:\"getDistanceByMC\",value:function(t,e){if(!t||!e)return 0;var n,r,o,i;return(t=this.convertMC2LL(t))?(n=this.toRadians(t.lng),r=this.toRadians(t.lat),(e=this.convertMC2LL(e))?(o=this.toRadians(e.lng),i=this.toRadians(e.lat),this.getDistance(n,o,r,i)):0):0}},{key:\"getDistanceByLL\",value:function(t,e){if(!t||!e)return 0;t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74),e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74);var n,r,o,i;return n=this.toRadians(t.lng),o=this.toRadians(t.lat),r=this.toRadians(e.lng),i=this.toRadians(e.lat),this.getDistance(n,r,o,i)}},{key:\"convertMC2LL\",value:function(t){var e,n;e=new y.Point(Math.abs(t.lng),Math.abs(t.lat));for(var r=0;r=this.MCBAND[r]){n=this.MC2LL[r];break}var o=this.convertor(t,n);return new y.Point(o.lng.toFixed(6),o.lat.toFixed(6))}},{key:\"convertLL2MC\",value:function(t){var e,n;t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74),e=new y.Point(t.lng,t.lat);for(var r=0;r=this.LLBAND[r]){n=this.LL2MC[r];break}if(!n)for(var o=this.LLBAND.length-1;o>=0;o--)if(e.lat<=-this.LLBAND[o]){n=this.LL2MC[o];break}var i=this.convertor(t,n);return new y.Point(i.lng.toFixed(2),i.lat.toFixed(2))}},{key:\"convertor\",value:function(t,e){if(t&&e){var n=e[0]+e[1]*Math.abs(t.lng),r=Math.abs(t.lat)/e[9],o=e[2]+e[3]*r+e[4]*r*r+e[5]*r*r*r+e[6]*r*r*r*r+e[7]*r*r*r*r*r+e[8]*r*r*r*r*r*r;return n*=t.lng<0?-1:1,o*=t.lat<0?-1:1,new y.Point(n,o)}}},{key:\"getDistance\",value:function(t,e,n,r){return this.EARTHRADIUS*Math.acos(Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos(e-t))}},{key:\"toRadians\",value:function(t){return Math.PI*t/180}},{key:\"toDegrees\",value:function(t){return 180*t/Math.PI}},{key:\"getRange\",value:function(t,e,n){return null!=e&&(t=Math.max(t,e)),null!=n&&(t=Math.min(t,n)),t}},{key:\"getLoop\",value:function(t,e,n){for(;t>n;)t-=n-e;for(;t=-180&&t.lat<=74&&t.lat>=-74},o.prototype.equals=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},e.default=o},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Projection=void 0;var o=n(14),i=r(o),a=n(15),u=r(a);e.Projection=function(){function t(){(0,i.default)(this,t)}return(0,u.default)(t,[{key:\"lngLatToPoint\",value:function(){throw\"lngLatToPoint方法未实现\"}},{key:\"pointToLngLat\",value:function(){throw\"pointToLngLat方法未实现\"}}]),t}()},function(t,e,n){function r(t){return\"[object Array]\"==Object.prototype.toString.call(t)}function o(t,e){var n=e.getZoom(),r=e.getCenter(),o=e.getSize();return s.pointToPixel(t,n,r,o)}function i(t,e){var n=t;t=r(n)?n:n.request.data,e=e||n.request.map;for(var i=[],a=0,u=t.length;af;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(21),o=n(38),i=n(22);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(31);t.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==r(t)?t.split(\"\"):Object(t)}},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return\"Array\"==r(t)}},function(t,e,n){var r=n(20),o=n(12),i=n(23),a={};n(6)(a,n(8)(\"iterator\"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+\" Iterator\")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(13)(\"meta\"),o=n(11),a=n(3),u=n(4).f,c=0,s=Object.isExtensible||function(){return!0},f=!n(10)(function(){return s(Object.preventExtensions({}))}),l=function(t){u(t,r,{value:{i:\"O\"+ ++c,w:{}}})},h=function(t,e){if(!o(t))return\"symbol\"==(void 0===t?\"undefined\":i(t))?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!a(t,r)){if(!s(t))return\"F\";if(!e)return\"E\";l(t)}return t[r].i},p=function(t,e){if(!a(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return f&&y.NEED&&s(t)&&!a(t,r)&&l(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(4),o=n(9),i=n(21);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(7),o=n(37).f,a={}.toString,u=\"object\"==(\"undefined\"==typeof window?\"undefined\":i(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&\"[object Window]\"==a.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(5),o=n(0),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),\"Object\",a)}},function(t,e,n){var r=n(11),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+\": can\'t set as prototype!\")};t.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(t,e,r){try{r=n(32)(Function.call,n(36).f(Object.prototype,\"__proto__\").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(26),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?\"\":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(63),o=n(70),i=n(18),a=n(7);t.exports=n(35)(Array,\"Array\",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):\"keys\"==e?o(0,n):\"values\"==e?o(0,t[n]):o(0,[n,t[n]])},\"values\"),i.Arguments=i.Array,r(\"keys\"),r(\"values\"),r(\"entries\")},function(t,e,n){var r=n(5);r(r.S,\"Object\",{create:n(20)})},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),\"Object\",{defineProperty:n(4).f})},function(t,e,n){var r=n(42),o=n(39);n(74)(\"getPrototypeOf\",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(5);r(r.S,\"Object\",{setPrototypeOf:n(75).set})},function(t,e){},function(t,e,n){var r=n(76)(!0);n(35)(String,\"String\",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(1),o=n(3),a=n(2),u=n(5),c=n(41),s=n(71).KEY,f=n(10),l=n(25),h=n(23),p=n(13),d=n(8),y=n(29),v=n(28),g=n(65),m=n(68),x=n(9),b=n(7),_=n(27),M=n(12),P=n(20),w=n(73),O=n(36),j=n(4),L=n(21),S=O.f,T=j.f,k=w.f,A=r.Symbol,R=r.JSON,C=R&&R.stringify,E=d(\"_hidden\"),I=d(\"toPrimitive\"),N={}.propertyIsEnumerable,F=l(\"symbol-registry\"),D=l(\"symbols\"),q=l(\"op-symbols\"),G=Object.prototype,B=\"function\"==typeof A,Y=r.QObject,X=!Y||!Y.prototype||!Y.prototype.findChild,W=a&&f(function(){return 7!=P(T({},\"a\",{get:function(){return T(this,\"a\",{value:7}).a}})).a})?function(t,e,n){var r=S(G,e);r&&delete G[e],T(t,e,n),r&&t!==G&&T(G,e,r)}:T,z=function(t){var e=D[t]=P(A.prototype);return e._k=t,e},J=B&&\"symbol\"==i(A.iterator)?function(t){return\"symbol\"==(void 0===t?\"undefined\":i(t))}:function(t){return t instanceof A},U=function t(e,n,r){return e===G&&t(q,n,r),x(e),n=_(n,!0),x(r),o(D,n)?(r.enumerable?(o(e,E)&&e[E][n]&&(e[E][n]=!1),r=P(r,{enumerable:M(0,!1)})):(o(e,E)||T(e,E,M(1,{})),e[E][n]=!0),W(e,n,r)):T(e,n,r)},H=function(t,e){x(t);for(var n,r=g(e=b(e)),o=0,i=r.length;i>o;)U(t,n=r[o++],e[n]);return t},V=function(t,e){return void 0===e?P(t):H(P(t),e)},Z=function(t){var e=N.call(this,t=_(t,!0));return!(this===G&&o(D,t)&&!o(q,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,E)&&this[E][t])||e)},K=function(t,e){if(t=b(t),e=_(e,!0),t!==G||!o(D,e)||o(q,e)){var n=S(t,e);return!n||!o(D,e)||o(t,E)&&t[E][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=k(b(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==E||e==s||r.push(e);return r},$=function(t){for(var e,n=t===G,r=k(n?q:b(t)),i=[],a=0;r.length>a;)!o(D,e=r[a++])||n&&!o(G,e)||i.push(D[e]);return i};B||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var t=p(arguments.length>0?arguments[0]:void 0),e=function e(n){this===G&&e.call(q,n),o(this,E)&&o(this[E],t)&&(this[E][t]=!1),W(this,t,M(1,n))};return a&&X&&W(G,t,{configurable:!0,set:e}),z(t)},c(A.prototype,\"toString\",function(){return this._k}),O.f=K,j.f=U,n(37).f=w.f=Q,n(22).f=Z,n(38).f=$,a&&!n(19)&&c(G,\"propertyIsEnumerable\",Z,!0),y.f=function(t){return z(d(t))}),u(u.G+u.W+u.F*!B,{Symbol:A});for(var tt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),et=0;tt.length>et;)d(tt[et++]);for(var nt=L(d.store),rt=0;nt.length>rt;)v(nt[rt++]);u(u.S+u.F*!B,\"Symbol\",{for:function(t){return o(F,t+=\"\")?F[t]:F[t]=A(t)},keyFor:function(t){if(!J(t))throw TypeError(t+\" is not a symbol!\");for(var e in F)if(F[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),u(u.S+u.F*!B,\"Object\",{create:V,defineProperty:U,defineProperties:H,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&u(u.S+u.F*(!B||f(function(){var t=A();return\"[null]\"!=C([t])||\"{}\"!=C({a:t})||\"{}\"!=C(Object(t))})),\"JSON\",{stringify:function(t){if(void 0!==t&&!J(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],\"function\"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,C.apply(R,r)}}}),A.prototype[I]||n(6)(A.prototype,I,A.prototype.valueOf),h(A,\"Symbol\"),h(Math,\"Math\",!0),h(r.JSON,\"JSON\",!0)},function(t,e,n){n(28)(\"asyncIterator\")},function(t,e,n){n(28)(\"observable\")},function(t,e,n){n(79);for(var r=n(1),o=n(6),i=n(18),a=n(8)(\"toStringTag\"),u=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),c=0;c3&&(this.show=!1),this.getCurrentRect()}},{key:\"_getTrueLength\",value:function(t){for(var e=t.length,n=0,r=0;r128?n+=2:n+=1;return n}},{key:\"isAnchorMeet\",value:function(t){var e=this.getCurrentRect(),n=t.getCurrentRect();return e.minXthis.textReact.height?n:this.textReact.height;return{x:t,y:e,minX:t,maxX:this.center.x+this.radius,minY:this.center.y-r/2,maxY:this.center.y+r/2}}},{key:\"_getRightAnchor\",value:function(){var t=this.center.x+this.radius,e=this.center.y-this.textReact.height/2,n=2*this.radius,r=n>this.textReact.height?n:this.textReact.height;return{x:t,y:e,minX:this.center.x-this.radius,maxX:this.center.x+this.radius+this.textReact.width,minY:this.center.y-r/2,maxY:this.center.y+r/2}}},{key:\"_getTopAnchor\",value:function(){var t=this.center.x-this.textReact.width/2,e=this.center.y-this.radius-this.textReact.height,n=2*this.radius,r=n>this.textReact.width?n:this.textReact.width;return{x:t,y:e,minX:this.center.x-r/2,maxX:this.center.x+r/2,minY:this.center.y-this.radius-this.textReact.height,maxY:this.center.y+this.radius}}},{key:\"_getBottomAnchor\",value:function(){var t=this.center.x-this.textReact.width/2,e=this.center.y+this.radius,n=this.radius>this.textReact.width?this.radius:this.textReact.width;return{x:t,y:e,minX:this.center.x-n/2,maxX:this.center.x+n/2,minY:this.center.y-this.radius,maxY:this.center.y+this.radius+this.textReact.height}}}]),t}();e.default=i},97:function(t,e,n){\"use strict\";function r(t){return!!t&&\"object\"==typeof t}function o(t){var e=Object.prototype.toString.call(t);return\"[object RegExp]\"===e||\"[object Date]\"===e||i(t)}function i(t){return t.$typeof===p}function a(t){return Array.isArray(t)?[]:{}}function u(t,e){return e&&!0===e.clone&&l(t)?f(a(t),t,e):t}function c(t,e,n){var r=t.slice();return e.forEach(function(e,o){void 0===r[o]?r[o]=u(e,n):l(e)?r[o]=f(t[o],e,n):-1===t.indexOf(e)&&r.push(u(e,n))}),r}function s(t,e,n){var r={};return l(t)&&Object.keys(t).forEach(function(e){r[e]=u(t[e],n)}),Object.keys(e).forEach(function(o){l(e[o])&&t[o]?r[o]=f(t[o],e[o],n):r[o]=u(e[o],n)}),r}function f(t,e,n){var r=Array.isArray(e),o=Array.isArray(t),i=n||{arrayMerge:c};if(r===o)return r?(i.arrayMerge||c)(t,e,n):s(t,e,n);return u(e,n)}var l=function(t){return r(t)&&!o(t)},h=\"function\"==typeof Symbol&&Symbol.for,p=h?Symbol.for(\"react.element\"):60103;f.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error(\"first argument should be an array with at least two elements\");return t.reduce(function(t,n){return f(t,n,e)})};var d=f;t.exports=d}})});'; + this.workerContent = '!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(\"inMap\",[],e):\"object\"==typeof exports?exports.inMap=e():t.inMap=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=188)}({153:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o={toRecGrids:function(t){var e=t.request.data,n=e.points,r=e.zoomUnit,i=e.size,a=e.mapSize,u=e.nwMc,c=e.type,s=t.request.map;o._calculatePixel(s,n);var f=o.recGrids(n,s,u,i,r,a,c);return t.request.data=f,t},_calculatePixel:function(t,e){for(var n=0,o=e.length;n=f&&j<=l&&L>=p&&L<=d)for(var S=0;S=T&&j=A&&L0&&(I.count=I.count/I.list.length),I.count>0&&C.push(I)}return u=null,y=null,m=null,t=null,{grids:C}}};e.default=o},154:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o={pointsToPixels:function(t){return t.request.data.forEach(function(e){var n=e.geometry.coordinates;e.geometry.pixel=(0,r.pointToPixelWorker)({lng:n[0],lat:n[1]},t.request.map),n=null}),t}};e.default=o},155:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(50),o=n(5),i={toRecGrids:function(t){var e=t.request.data,n=e.points,r=e.zoomUnit,o=e.size,a=e.mapSize,u=e.nwMc,c=e.type,s=t.request.map;i._calculatePixel(s,n);var f=i.honeycombGrid(n,s,u,o,r,a,c);return t.request.data=f,t},_calculatePixel:function(t,e){for(var n=0,o=e.length;n=v&&O<=g&&j>=d&&j<=m){var L=i._findGrids(c,O,j);L&&(L.list.push(w),L.count+=w.count)}}var S=[];for(var T in c){var k=c[T];\"avg\"==u&&k.count>0&&(k.count=k.count/k.list.length),k.list.length>0&&S.push(k)}return c=null,t=null,{grids:S}}};e.default=i},156:function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var r=n(69),o={merge:function(t){var e=t.request.data,n=e.pixels,o=e.height,i=e.borderWidth,a=e.byteWidth,u=n.map(function(t){var e=t.pixel.radius+i;return new r.Label(t.pixel.x,t.pixel.y,e,o,a,t.name)});u.sort(function(t,e){return e.x-t.x});var c=void 0;do{c=!1;for(var s=0;sn-2?n-1:l+1],v=t[l>n-3?n-1:l+2]);var g=h*h,m=h*g;r.push([i(p[0],d[0],y[0],v[0],h,g,m),i(p[1],d[1],y[1],v[1],h,g,m)])}return r}function i(t,e,n,r,o,i,a){var u=.5*(n-t),c=.5*(r-e);return(2*(e-n)+u+c)*a+(-3*(e-n)-2*u-c)*i+u*o+e}function a(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function u(t,e,n){for(var r=(e[0]-t[0])/n,o=(e[1]-t[1])/n,i=[],a=0;a=-180&&t.lat<=74&&t.lat>=-74},r.prototype.equals=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},e.default=r},161:function(t,e,n){\"use strict\";function r(t,e,n,r){this.x=t,this.y=e,this.h=n,this.d=s(t,e),this.max=this.d+this.h*Math.SQRT2}function o(t,e){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function i(t,e){return t.x-=e.x,t.y-=e.y,t}function a(t,e){return t.x*=e,t.y*=e,t}function u(t,e){return t.x+=e.x,t.y+=e.y,t}function c(t,e,n){var r=o(n,e);if(0===r)return o(e,t);var c=((t.x-e.x)*(n.x-e.x)+(t.y-e.y)*(n.y-e.y))/r;return c<0?o(e,t):c>1?o(n,t):o(u(a(i(n,e),c),e),t)}function s(t,e){for(var n=!1,r=1/0,o=0;ot.y!=l.y>t.y&&t.x<(l.x-f.x)*(t.y-f.y)/(l.y-f.y)+f.x&&(n=!n),r=Math.min(r,c(t,f,l))}return(n?1:-1)*Math.sqrt(r)}function f(t){for(var e=0,n=0,o=0,i=t[0],a=0;ao)&&(o=u[0]),(!a||u[1]>i)&&(i=u[1])}if(e==o||n==i)return null;for(var c=o-e,s=i-n,l=Math.min(c,s),h=l/2,d=new p.default(null,function(t,e){return e.max-t.max}),y=e;yg.d&&(g=m),m.max<=g.d||(h=m.h/2,d.push(new r(m.x-h,m.y-h,h,t)),d.push(new r(m.x+h,m.y-h,h,t)),d.push(new r(m.x-h,m.y+h,h,t)),d.push(new r(m.x+h,m.y+h,h,t)))}return{x:g.x,y:g.y}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=l;var h=n(179),p=function(t){return t&&t.__esModule?t:{default:t}}(h)},179:function(t,e,n){\"use strict\";function r(t,e){if(!(this instanceof r))return new r(t,e);if(this.data=t||[],this.length=this.data.length,this.compare=e||o,this.length>0)for(var n=this.length>>1;n>=0;n--)this._down(n)}function o(t,e){return te?1:0}Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=r,r.prototype={push:function(t){this.data.push(t),this.length++,this._up(this.length-1)},pop:function(){if(0!==this.length){var t=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),t}},peek:function(){return this.data[0]},_up:function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var o=t-1>>1,i=e[o];if(n(r,i)>=0)break;e[t]=i,t=o}e[t]=r},_down:function(t){for(var e=this.data,n=this.compare,r=this.length>>1,o=e[t];t=0)break;e[t]=u,t=i}e[t]=o}}},188:function(t,e,n){\"use strict\";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.TDpost=void 0;var o=n(154),i=r(o),a=n(153),u=r(a),c=n(158),s=r(c),f=n(157),l=r(f),h=n(155),p=r(h),d=n(156),y=r(d),v={HeatOverlay:i.default,GriddingOverlay:u.default,PolygonOverlay:s.default,LineStringOverlay:l.default,HoneycombOverlay:p.default,LabelEvading:y.default};onmessage=function(t){var e=t.data;m(e)};var g={},m=function(t){for(var e=t.request,n=e.classPath,r=e.hashCode,o=e.msgId,i=n.split(\".\"),a=0,u=v;i[a];){if(u=u[i[a]],++a>=i.length){g[n]=r+\"_\"+o;var c=u(t);x(c)}if(!u)throw new TypeError(\"inMap : \"+i[a-1]+\" worker \"+n+\" is not a function\")}},x=e.TDpost=function(t){var e=t.request,n=e.classPath,r=e.hashCode,o=e.msgId,i=v[n];i&&i!=r+\"_\"+o||(postMessage(t),t.request.data=[],t=null)}},395:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,\"loaded\",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,\"id\",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},5:function(t,e,n){\"use strict\";function r(t){var e=Object.prototype.toString;return{\"[object Boolean]\":\"boolean\",\"[object Number]\":\"number\",\"[object String]\":\"string\",\"[object Function]\":\"function\",\"[object Array]\":\"array\",\"[object Date]\":\"date\",\"[object RegExp]\":\"regExp\",\"[object Undefined]\":\"undefined\",\"[object Null]\":\"null\",\"[object Object]\":\"object\"}[e.call(t)]}function o(t){return\"number\"==r(t)}function i(t){return\"boolean\"==r(t)}function a(t){return\"function\"==r(t)}function u(t){return\"string\"==r(t)}function c(t){return\"object\"==r(t)}function s(t){return\"array\"==r(t)}function f(t){var e=window.devicePixelRatio;t.canvas.width=t.canvas.width*e,t.canvas.height=t.canvas.height*e,t.canvas.style.width=t.canvas.width/e+\"px\",t.canvas.style.height=t.canvas.height/e+\"px\",t.scale(e,e)}function l(t){return String(t).replace(/&/g,\"&\").replace(//g,\">\").replace(/\"/g,\""\").replace(/\'/g,\"'\")}function h(t,e,n,r){for(var o=!1,i=90,a=-90,u=180,c=-180,s=0;sa&&(a=e[s]),e[s]c&&(c=t[s]),t[s]a||rc))for(var f=0;f\");for(var r=0,o=t.length;r0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return t.geometry.coordinates}))}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[];return t.forEach(function(t){e=e.concat(t.geometry.coordinates)}),x(e)}function M(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=0;ndocument.F=Object<\/script>\"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(40),o=n(17);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(4).f,o=n(3),i=n(8)(\"toStringTag\");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(25)(\"keys\"),o=n(13);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r[\"__core-js_shared__\"]||(r[\"__core-js_shared__\"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&\"function\"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if(\"function\"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&\"function\"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError(\"Can\'t convert object to primitive value\")}},function(t,e,n){var r=n(1),o=n(0),i=n(19),a=n(29),u=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});\"_\"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(53),a=r(o),u=n(52),c=r(u),s=\"function\"==typeof c.default&&\"symbol\"==i(a.default)?function(t){return void 0===t?\"undefined\":i(t)}:function(t){return t&&\"function\"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?\"symbol\":void 0===t?\"undefined\":i(t)};e.default=\"function\"==typeof c.default&&\"symbol\"===s(a.default)?function(t){return void 0===t?\"undefined\":s(t)}:function(t){return t&&\"function\"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?\"symbol\":void 0===t?\"undefined\":s(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(62);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(33)(\"div\"),\"a\",{get:function(){return 7}}).a})},function(t,e,n){var r=n(19),o=n(5),i=n(41),a=n(6),u=n(3),c=n(18),s=n(69),f=n(23),l=n(39),h=n(8)(\"iterator\"),p=!([].keys&&\"next\"in[].keys()),d=function(){return this};t.exports=function(t,e,n,y,v,g,m){s(n,e,y);var x,b,_,M=function(t){if(!p&&t in j)return j[t];switch(t){case\"keys\":case\"values\":return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+\" Iterator\",w=\"values\"==v,O=!1,j=t.prototype,L=j[h]||j[\"@@iterator\"]||v&&j[v],S=L||M(v),T=v?w?M(\"entries\"):S:void 0,k=\"Array\"==e?j.entries||L:L;if(k&&(_=l(k.call(new t)))!==Object.prototype&&_.next&&(f(_,P,!0),r||u(_,h)||a(_,h,d)),w&&L&&\"values\"!==L.name&&(O=!0,S=function(){return L.call(this)}),r&&!m||!p&&!O&&j[h]||a(j,h,S),c[e]=S,c[P]=d,v)if(x={values:w?S:M(\"values\"),keys:g?S:M(\"keys\"),entries:T},m)for(b in x)b in j||i(j,b,x[b]);else o(o.P+o.F*(p||O),e,x);return x}},function(t,e,n){var r=n(22),o=n(12),i=n(7),a=n(27),u=n(3),c=n(34),s=Object.getOwnPropertyDescriptor;e.f=n(2)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(40),o=n(17).concat(\"length\",\"prototype\");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),o=n(42),i=n(24)(\"IE_PROTO\"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(3),o=n(7),i=n(64)(!1),a=n(24)(\"IE_PROTO\");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(6)},function(t,e,n){var r=n(16);t.exports=function(t){return Object(r(t))}},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.MercatorProjection=void 0;var o=n(50),i=r(o),a=n(14),u=r(a),c=n(15),s=r(c),f=n(55),l=r(f),h=n(54),p=r(h),d=n(46),y=n(45),v=n(44);e.MercatorProjection=function(t){function e(){(0,u.default)(this,e);var t=(0,l.default)(this,(e.__proto__||(0,i.default)(e)).call(this));return t.EARTHRADIUS=6370996.81,t.MCBAND=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],t.LLBAND=[75,60,45,30,15,0],t.MC2LL=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],t.LL2MC=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],t}return(0,p.default)(e,t),(0,s.default)(e,[{key:\"getDistanceByMC\",value:function(t,e){if(!t||!e)return 0;var n,r,o,i;return(t=this.convertMC2LL(t))?(n=this.toRadians(t.lng),r=this.toRadians(t.lat),(e=this.convertMC2LL(e))?(o=this.toRadians(e.lng),i=this.toRadians(e.lat),this.getDistance(n,o,r,i)):0):0}},{key:\"getDistanceByLL\",value:function(t,e){if(!t||!e)return 0;t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74),e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74);var n,r,o,i;return n=this.toRadians(t.lng),o=this.toRadians(t.lat),r=this.toRadians(e.lng),i=this.toRadians(e.lat),this.getDistance(n,r,o,i)}},{key:\"convertMC2LL\",value:function(t){var e,n;e=new y.Point(Math.abs(t.lng),Math.abs(t.lat));for(var r=0;r=this.MCBAND[r]){n=this.MC2LL[r];break}var o=this.convertor(t,n);return new y.Point(o.lng.toFixed(6),o.lat.toFixed(6))}},{key:\"convertLL2MC\",value:function(t){var e,n;t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74),e=new y.Point(t.lng,t.lat);for(var r=0;r=this.LLBAND[r]){n=this.LL2MC[r];break}if(!n)for(var o=this.LLBAND.length-1;o>=0;o--)if(e.lat<=-this.LLBAND[o]){n=this.LL2MC[o];break}var i=this.convertor(t,n);return new y.Point(i.lng.toFixed(2),i.lat.toFixed(2))}},{key:\"convertor\",value:function(t,e){if(t&&e){var n=e[0]+e[1]*Math.abs(t.lng),r=Math.abs(t.lat)/e[9],o=e[2]+e[3]*r+e[4]*r*r+e[5]*r*r*r+e[6]*r*r*r*r+e[7]*r*r*r*r*r+e[8]*r*r*r*r*r*r;return n*=t.lng<0?-1:1,o*=t.lat<0?-1:1,new y.Point(n,o)}}},{key:\"getDistance\",value:function(t,e,n,r){return this.EARTHRADIUS*Math.acos(Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos(e-t))}},{key:\"toRadians\",value:function(t){return Math.PI*t/180}},{key:\"toDegrees\",value:function(t){return 180*t/Math.PI}},{key:\"getRange\",value:function(t,e,n){return null!=e&&(t=Math.max(t,e)),null!=n&&(t=Math.min(t,n)),t}},{key:\"getLoop\",value:function(t,e,n){for(;t>n;)t-=n-e;for(;t=-180&&t.lat<=74&&t.lat>=-74},o.prototype.equals=function(t){return t&&this.lat==t.lat&&this.lng==t.lng},e.default=o},function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,\"__esModule\",{value:!0}),e.Projection=void 0;var o=n(14),i=r(o),a=n(15),u=r(a);e.Projection=function(){function t(){(0,i.default)(this,t)}return(0,u.default)(t,[{key:\"lngLatToPoint\",value:function(){throw\"lngLatToPoint方法未实现\"}},{key:\"pointToLngLat\",value:function(){throw\"pointToLngLat方法未实现\"}}]),t}()},function(t,e,n){function r(t){return\"[object Array]\"==Object.prototype.toString.call(t)}function o(t,e){var n=e.getZoom(),r=e.getCenter(),o=e.getSize();return s.pointToPixel(t,n,r,o)}function i(t,e){var n=t;t=r(n)?n:n.request.data,e=e||n.request.map;for(var i=[],a=0,u=t.length;af;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(21),o=n(38),i=n(22);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(31);t.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==r(t)?t.split(\"\"):Object(t)}},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return\"Array\"==r(t)}},function(t,e,n){var r=n(20),o=n(12),i=n(23),a={};n(6)(a,n(8)(\"iterator\"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+\" Iterator\")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(13)(\"meta\"),o=n(11),a=n(3),u=n(4).f,c=0,s=Object.isExtensible||function(){return!0},f=!n(10)(function(){return s(Object.preventExtensions({}))}),l=function(t){u(t,r,{value:{i:\"O\"+ ++c,w:{}}})},h=function(t,e){if(!o(t))return\"symbol\"==(void 0===t?\"undefined\":i(t))?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!a(t,r)){if(!s(t))return\"F\";if(!e)return\"E\";l(t)}return t[r].i},p=function(t,e){if(!a(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return f&&y.NEED&&s(t)&&!a(t,r)&&l(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(4),o=n(9),i=n(21);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(7),o=n(37).f,a={}.toString,u=\"object\"==(\"undefined\"==typeof window?\"undefined\":i(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&\"[object Window]\"==a.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(5),o=n(0),i=n(10);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),\"Object\",a)}},function(t,e,n){var r=n(11),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+\": can\'t set as prototype!\")};t.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(t,e,r){try{r=n(32)(Function.call,n(36).f(Object.prototype,\"__proto__\").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(26),o=n(16);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?\"\":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(63),o=n(70),i=n(18),a=n(7);t.exports=n(35)(Array,\"Array\",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):\"keys\"==e?o(0,n):\"values\"==e?o(0,t[n]):o(0,[n,t[n]])},\"values\"),i.Arguments=i.Array,r(\"keys\"),r(\"values\"),r(\"entries\")},function(t,e,n){var r=n(5);r(r.S,\"Object\",{create:n(20)})},function(t,e,n){var r=n(5);r(r.S+r.F*!n(2),\"Object\",{defineProperty:n(4).f})},function(t,e,n){var r=n(42),o=n(39);n(74)(\"getPrototypeOf\",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(5);r(r.S,\"Object\",{setPrototypeOf:n(75).set})},function(t,e){},function(t,e,n){var r=n(76)(!0);n(35)(String,\"String\",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(1),o=n(3),a=n(2),u=n(5),c=n(41),s=n(71).KEY,f=n(10),l=n(25),h=n(23),p=n(13),d=n(8),y=n(29),v=n(28),g=n(65),m=n(68),x=n(9),b=n(7),_=n(27),M=n(12),P=n(20),w=n(73),O=n(36),j=n(4),L=n(21),S=O.f,T=j.f,k=w.f,A=r.Symbol,R=r.JSON,C=R&&R.stringify,E=d(\"_hidden\"),I=d(\"toPrimitive\"),N={}.propertyIsEnumerable,F=l(\"symbol-registry\"),D=l(\"symbols\"),q=l(\"op-symbols\"),G=Object.prototype,B=\"function\"==typeof A,Y=r.QObject,X=!Y||!Y.prototype||!Y.prototype.findChild,W=a&&f(function(){return 7!=P(T({},\"a\",{get:function(){return T(this,\"a\",{value:7}).a}})).a})?function(t,e,n){var r=S(G,e);r&&delete G[e],T(t,e,n),r&&t!==G&&T(G,e,r)}:T,z=function(t){var e=D[t]=P(A.prototype);return e._k=t,e},J=B&&\"symbol\"==i(A.iterator)?function(t){return\"symbol\"==(void 0===t?\"undefined\":i(t))}:function(t){return t instanceof A},U=function t(e,n,r){return e===G&&t(q,n,r),x(e),n=_(n,!0),x(r),o(D,n)?(r.enumerable?(o(e,E)&&e[E][n]&&(e[E][n]=!1),r=P(r,{enumerable:M(0,!1)})):(o(e,E)||T(e,E,M(1,{})),e[E][n]=!0),W(e,n,r)):T(e,n,r)},H=function(t,e){x(t);for(var n,r=g(e=b(e)),o=0,i=r.length;i>o;)U(t,n=r[o++],e[n]);return t},V=function(t,e){return void 0===e?P(t):H(P(t),e)},Z=function(t){var e=N.call(this,t=_(t,!0));return!(this===G&&o(D,t)&&!o(q,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,E)&&this[E][t])||e)},K=function(t,e){if(t=b(t),e=_(e,!0),t!==G||!o(D,e)||o(q,e)){var n=S(t,e);return!n||!o(D,e)||o(t,E)&&t[E][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=k(b(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==E||e==s||r.push(e);return r},$=function(t){for(var e,n=t===G,r=k(n?q:b(t)),i=[],a=0;r.length>a;)!o(D,e=r[a++])||n&&!o(G,e)||i.push(D[e]);return i};B||(A=function(){if(this instanceof A)throw TypeError(\"Symbol is not a constructor!\");var t=p(arguments.length>0?arguments[0]:void 0),e=function e(n){this===G&&e.call(q,n),o(this,E)&&o(this[E],t)&&(this[E][t]=!1),W(this,t,M(1,n))};return a&&X&&W(G,t,{configurable:!0,set:e}),z(t)},c(A.prototype,\"toString\",function(){return this._k}),O.f=K,j.f=U,n(37).f=w.f=Q,n(22).f=Z,n(38).f=$,a&&!n(19)&&c(G,\"propertyIsEnumerable\",Z,!0),y.f=function(t){return z(d(t))}),u(u.G+u.W+u.F*!B,{Symbol:A});for(var tt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),et=0;tt.length>et;)d(tt[et++]);for(var nt=L(d.store),rt=0;nt.length>rt;)v(nt[rt++]);u(u.S+u.F*!B,\"Symbol\",{for:function(t){return o(F,t+=\"\")?F[t]:F[t]=A(t)},keyFor:function(t){if(!J(t))throw TypeError(t+\" is not a symbol!\");for(var e in F)if(F[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),u(u.S+u.F*!B,\"Object\",{create:V,defineProperty:U,defineProperties:H,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&u(u.S+u.F*(!B||f(function(){var t=A();return\"[null]\"!=C([t])||\"{}\"!=C({a:t})||\"{}\"!=C(Object(t))})),\"JSON\",{stringify:function(t){if(void 0!==t&&!J(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],\"function\"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,C.apply(R,r)}}}),A.prototype[I]||n(6)(A.prototype,I,A.prototype.valueOf),h(A,\"Symbol\"),h(Math,\"Math\",!0),h(r.JSON,\"JSON\",!0)},function(t,e,n){n(28)(\"asyncIterator\")},function(t,e,n){n(28)(\"observable\")},function(t,e,n){n(79);for(var r=n(1),o=n(6),i=n(18),a=n(8)(\"toStringTag\"),u=\"CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList\".split(\",\"),c=0;c3&&(this.show=!1),this.getCurrentRect()}},{key:\"_getTrueLength\",value:function(t){for(var e=t.length,n=0,r=0;r128?n+=2:n+=1;return n}},{key:\"isAnchorMeet\",value:function(t){var e=this.getCurrentRect(),n=t.getCurrentRect();return e.minXthis.textReact.height?n:this.textReact.height;return{x:t,y:e,minX:t,maxX:this.center.x+this.radius,minY:this.center.y-r/2,maxY:this.center.y+r/2}}},{key:\"_getRightAnchor\",value:function(){var t=this.center.x+this.radius,e=this.center.y-this.textReact.height/2,n=2*this.radius,r=n>this.textReact.height?n:this.textReact.height;return{x:t,y:e,minX:this.center.x-this.radius,maxX:this.center.x+this.radius+this.textReact.width,minY:this.center.y-r/2,maxY:this.center.y+r/2}}},{key:\"_getTopAnchor\",value:function(){var t=this.center.x-this.textReact.width/2,e=this.center.y-this.radius-this.textReact.height,n=2*this.radius,r=n>this.textReact.width?n:this.textReact.width;return{x:t,y:e,minX:this.center.x-r/2,maxX:this.center.x+r/2,minY:this.center.y-this.radius-this.textReact.height,maxY:this.center.y+this.radius}}},{key:\"_getBottomAnchor\",value:function(){var t=this.center.x-this.textReact.width/2,e=this.center.y+this.radius,n=this.radius>this.textReact.width?this.radius:this.textReact.width;return{x:t,y:e,minX:this.center.x-n/2,maxX:this.center.x+n/2,minY:this.center.y-this.radius,maxY:this.center.y+this.radius+this.textReact.height}}}]),t}();e.default=i},97:function(t,e,n){\"use strict\";function r(t){return!!t&&\"object\"==typeof t}function o(t){var e=Object.prototype.toString.call(t);return\"[object RegExp]\"===e||\"[object Date]\"===e||i(t)}function i(t){return t.$typeof===p}function a(t){return Array.isArray(t)?[]:{}}function u(t,e){return e&&!0===e.clone&&l(t)?f(a(t),t,e):t}function c(t,e,n){var r=t.slice();return e.forEach(function(e,o){void 0===r[o]?r[o]=u(e,n):l(e)?r[o]=f(t[o],e,n):-1===t.indexOf(e)&&r.push(u(e,n))}),r}function s(t,e,n){var r={};return l(t)&&Object.keys(t).forEach(function(e){r[e]=u(t[e],n)}),Object.keys(e).forEach(function(o){l(e[o])&&t[o]?r[o]=f(t[o],e[o],n):r[o]=u(e[o],n)}),r}function f(t,e,n){var r=Array.isArray(e),o=Array.isArray(t),i=n||{arrayMerge:c};if(r===o)return r?(i.arrayMerge||c)(t,e,n):s(t,e,n);return u(e,n)}var l=function(t){return r(t)&&!o(t)},h=\"function\"==typeof Symbol&&Symbol.for,p=h?Symbol.for(\"react.element\"):60103;f.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error(\"first argument should be an array with at least two elements\");return t.reduce(function(t,n){return f(t,n,e)})};var d=f;t.exports=d}})});'; } _createClass(WorkerMrg, [{ @@ -6364,6 +6368,9 @@ var PolygonOverlay = function (_Parameter) { } (_workerData = _this3._workerData).push.apply(_workerData, _toConsumableArray(pixels)); _this3._setState(_OnStateConfig2.default.computeAfter); + if (data.length > 0 && data.length === _this3._workerData.length && _this3._styleConfig.splitList == 0) { + _this3._initLegend(); + } _this3._translation(margin.left - _this3._margin.left, margin.top - _this3._margin.top); pixels = null, margin = null; callback && callback(_this3); @@ -11995,7 +12002,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var version = "2.3.1"; +var version = "2.3.3"; console.log('inMap v' + version); var inMap = { version: version, diff --git a/dist/inmap.min.js b/dist/inmap.min.js index a5629f5..55e7d62 100644 --- a/dist/inmap.min.js +++ b/dist/inmap.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("inMap",[],e):"object"==typeof exports?exports.inMap=e():t.inMap=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=180)}([function(t,e,n){var r=n(2),i=n(23),o=n(13),a=n(14),s=n(20),u=function(t,e,n){var l,c,f,h,p=t&u.F,d=t&u.G,v=t&u.S,y=t&u.P,_=t&u.B,g=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,m=d?i:i[e]||(i[e]={}),b=m.prototype||(m.prototype={});d&&(n=e);for(l in n)c=!p&&g&&void 0!==g[l],f=(c?g:n)[l],h=_&&c?s(f,r):y&&"function"==typeof f?s(Function.call,f):f,g&&a(g,l,f,t&u.U),m[l]!=f&&o(m,l,h),y&&b[l]!=f&&(b[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";function r(t){var e=Object.prototype.toString;return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[e.call(t)]}function i(t){return"number"==r(t)}function o(t){return"boolean"==r(t)}function a(t){return"function"==r(t)}function s(t){return"string"==r(t)}function u(t){return"object"==r(t)}function l(t){return"array"==r(t)}function c(t){var e=window.devicePixelRatio;t.canvas.width=t.canvas.width*e,t.canvas.height=t.canvas.height*e,t.canvas.style.width=t.canvas.width/e+"px",t.canvas.style.height=t.canvas.height/e+"px",t.scale(e,e)}function f(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function h(t,e,n,r){for(var i=!1,o=90,a=-90,s=180,u=-180,l=0;la&&(a=e[l]),e[l]u&&(u=t[l]),t[l]a||ru))for(var c=0;c");for(var r=0,i=t.length;r0&&void 0!==arguments[0]?arguments[0]:[]).map(function(t){return t.geometry.coordinates}))}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[];return t.forEach(function(t){e=e.concat(t.geometry.coordinates)}),m(e)}function x(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],n=0;n0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(24);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(8),i=n(41);t.exports=n(7)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),i=n(13),o=n(12),a=n(45)("src"),s=Function.toString,u=(""+s).split("toString");n(23).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(0),i=n(3),o=n(24),a=/"/g,s=function(t,e,n,r){var i=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var r=n(53),i=n(41),o=n(18),a=n(27),s=n(12),u=n(117),l=Object.getOwnPropertyDescriptor;e.f=n(7)?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),i=n(10),o=n(86)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(52),i=n(24);t.exports=function(t){return r(i(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(11);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(20),i=n(52),o=n(10),a=n(9),s=n(71);t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,c=4==t,f=6==t,h=5==t||f,p=e||s;return function(e,s,d){for(var v,y,_=o(e),g=i(_),m=r(s,d,3),b=a(g.length),w=0,x=n?p(e,b):u?p(e,0):void 0;b>w;w++)if((h||w in g)&&(v=g[w],y=m(v,w,_),t))if(n)x[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:x.push(v)}else if(c)return!1;return f?-1:l||c?c:x}}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),i=n(23),o=n(3);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computeBefore:0,computeAfter:1,drawBefore:2,drawAfter:3}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t){var n=t[e];(0,y.isFunction)(n)&&this.off(e,n)}}},{key:"_tMapStyle",value:function(t){var e=null;(0,y.isString)(t)?e="Blueness"==t?_.Blueness:_.WhiteLover:(0,y.isArray)(t)&&(e=t),t&&this._map&&this._map.setMapStyle({styleJson:e})}},{key:"_tMouseout",value:function(){this.toolTip&&this.toolTip.hide()}},{key:"_tOnResize",value:function(t){this._setCanvasSize(),this._eventType=t.type,this._tDraw(this,t)}},{key:"_tOnMoveEnd",value:function(t){this._animationFlag=!0,this._eventType=t.type}},{key:"_tOnZoomStart",value:function(){this._animationFlag=!1,this._clearCanvas()}},{key:"_tOnZoomEnd",value:function(t){this._animationFlag=!0,this._eventType=t.type}},{key:"_tOnMoving",value:function(t){this._animationFlag=!1,this._eventType=t.type}},{key:"_tMousemove",value:function(){}},{key:"_canvasInit",value:function(){}},{key:"draw",value:function(){"onmoving"==this._eventType?this._canvasResize():this._throttle.throttleEvent()}},{key:"_tMouseClick",value:function(){}},{key:"_tDraw",value:function(t,e){this._eventType=e.type,t.draw(e),this._repaintEnd&&this._repaintEnd(this)}},{key:"_toDraw",value:function(){}},{key:"on",value:function(t,e){t.length>2&&-1===t.indexOf("on")&&(t="on"+t[0].toUpperCase()+t.substr(1));var n=this._subscriptions[t];if(n){var r=n.findIndex(function(t){return t===e});r>-1&&n.splice(r,1),n.push(e)}}},{key:"off",value:function(t,e){t.length>2&&-1===t.indexOf("on")&&(t="on"+t[0].toUpperCase()+t.substr(1));var n=this._subscriptions[t];if(n)for(var r=0;r1?e-1:0),r=1;r2&&-1===t.indexOf("on")&&(t="on"+t[0].toUpperCase()+t.substr(1)),"onMouseClick"==t||"onState"===t||this._subscriptions.preEmitName!=t){this._subscriptions.preEmitName=t;var i=this._subscriptions[t];i&&i.forEach(function(t){t.apply(void 0,n)})}}},{key:"_canvasResize",value:function(){var t=this._map,e=this._container,n=t.getCenter(),r=t.getSize(),i=t.pointToOverlayPixel(n),o=parseInt(i.x-r.width/2,10),a=parseInt(i.y-r.height/2,10),s=e.style;this._translationIf(this._margin.left,this._margin.top,o,a),this._margin.left=o,this._margin.top=a,s.left=o+"px",s.top=a+"px",s=null,e=null,t=null}},{key:"_translationIf",value:function(t,e,n,r){t==n&&e==r||this._translation(t-n,e-r)}},{key:"_translation",value:function(t,e){}},{key:"_clearCanvas",value:function(){if(this._map){var t=this._map.getSize();this._getContext().clearRect(0,0,t.width,t.height)}}},{key:"_setCanvasSize",value:function(){var t=this._map.getSize();this._container.width=t.width,this._container.height=t.height,(0,y.setDevicePixelRatio)(this._ctx)}},{key:"_getContext",value:function(){return this._ctx}},{key:"setZIndex",value:function(t){this._zIndex=t,this._container&&(this._container.style.zIndex=this._zIndex),v.default.sort()}},{key:"getDataURL",value:function(){return this._container.toDataURL()}},{key:"_TClear",value:function(){}},{key:"_TDispose",value:function(){}},{key:"dispose",value:function(){this._throttle.dispose(),this._removeWorkerMessage(),this._map&&(this._map.removeEventListener("resize",this._tOnResize),this._map.removeEventListener("moveend",this._tOnMoveEnd),this._map.removeEventListener("zoomstart",this._tOnZoomStart),this._map.removeEventListener("zoomend",this._tOnZoomEnd),this._map.removeEventListener("moving",this._tOnMoving),this._map.removeEventListener("mousemove",this._tMousemove),this._map.removeEventListener("mouseout",this._tMouseout),k?this._map.removeEventListener("touchstart",this._tMouseClick):this._map.removeEventListener("click",this._tMouseClick)),this.legend&&(this.legend.dispose(this._map._inmapToolBar.legendContainer),this.legend=null),this.toolTip&&(this.toolTip.dispose(),this.toolTip=null),this._TClear(),this._TDispose(),this._map.removeOverlay(this);var t=this;for(var e in t)(0,y.isFunction)(t[e])||(t[e]=null);t._isDispose=!0,t=null}}]),e}(l.default);e.default=O},function(t,e,n){var r=n(138),i=n(0),o=n(65)("metadata"),a=o.store||(o.store=new(n(141))),s=function(t,e,n){var i=a.get(t);if(!i){if(!n)return;a.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o},u=function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},l=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},c=function(t,e,n,r){s(n,r,!0).set(t,e)},f=function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){i(i.S,"Reflect",t)};t.exports={store:a,map:s,has:u,get:l,set:c,keys:f,key:h,exp:p}},function(t,e,n){"use strict";if(n(7)){var r=n(37),i=n(2),o=n(3),a=n(0),s=n(67),u=n(92),l=n(20),c=n(35),f=n(41),h=n(13),p=n(42),d=n(26),v=n(9),y=n(136),_=n(44),g=n(27),m=n(12),b=n(51),w=n(4),x=n(10),k=n(78),O=n(38),S=n(17),P=n(39).f,C=n(95),M=n(45),T=n(6),D=n(22),I=n(54),E=n(66),L=n(96),j=n(46),A=n(60),R=n(43),F=n(70),z=n(109),N=n(8),B=n(16),W=N.f,G=B.f,V=i.RangeError,U=i.TypeError,Z=i.Uint8Array,Y=Array.prototype,J=u.ArrayBuffer,H=u.DataView,X=D(0),q=D(2),K=D(3),$=D(4),Q=D(5),tt=D(6),et=I(!0),nt=I(!1),rt=L.values,it=L.keys,ot=L.entries,at=Y.lastIndexOf,st=Y.reduce,ut=Y.reduceRight,lt=Y.join,ct=Y.sort,ft=Y.slice,ht=Y.toString,pt=Y.toLocaleString,dt=T("iterator"),vt=T("toStringTag"),yt=M("typed_constructor"),_t=M("def_constructor"),gt=s.CONSTR,mt=s.TYPED,bt=s.VIEW,wt=D(1,function(t,e){return Pt(E(t,t[_t]),e)}),xt=o(function(){return 1===new Z(new Uint16Array([1]).buffer)[0]}),kt=!!Z&&!!Z.prototype.set&&o(function(){new Z(1).set({})}),Ot=function(t,e){var n=d(t);if(n<0||n%e)throw V("Wrong offset!");return n},St=function(t){if(w(t)&&mt in t)return t;throw U(t+" is not a typed array!")},Pt=function(t,e){if(!(w(t)&&yt in t))throw U("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return Mt(E(t,t[_t]),e)},Mt=function(t,e){for(var n=0,r=e.length,i=Pt(t,r);r>n;)i[n]=e[n++];return i},Tt=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,r,i,o,a,s=x(t),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,h=C(s);if(void 0!=h&&!k(h)){for(a=h.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(f&&u>2&&(c=l(c,arguments[2],2)),e=0,n=v(s.length),i=Pt(this,n);n>e;e++)i[e]=f?c(s[e],e):s[e];return i},It=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},Et=!!Z&&o(function(){pt.call(new Z(1))}),Lt=function(){return pt.apply(Et?ft.call(St(this)):St(this),arguments)},jt={copyWithin:function(t,e){return z.call(St(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return $(St(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(St(this),arguments)},filter:function(t){return Ct(this,q(St(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(St(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(St(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(St(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(St(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(St(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(St(this),arguments)},lastIndexOf:function(t){return at.apply(St(this),arguments)},map:function(t){return wt(St(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(St(this),arguments)},reduceRight:function(t){return ut.apply(St(this),arguments)},reverse:function(){for(var t,e=this,n=St(e).length,r=Math.floor(n/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return ct.call(St(this),t)},subarray:function(t,e){var n=St(this),r=n.length,i=_(t,r);return new(E(n,n[_t]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:_(e,r))-i))}},At=function(t,e){return Ct(this,ft.call(St(this),t,e))},Rt=function(t){St(this);var e=Ot(arguments[1],1),n=this.length,r=x(t),i=v(r.length),o=0;if(i+e>n)throw V("Wrong length!");for(;o255?255:255&r),i.v[p](n*e+i.o,r,xt)},T=function(t,e){W(t,e,{get:function(){return C(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};m?(d=n(function(t,n,r,i){c(t,d,l,"_d");var o,a,s,u,f=0,p=0;if(w(n)){if(!(n instanceof J||"ArrayBuffer"==(u=b(n))||"SharedArrayBuffer"==u))return mt in n?Mt(d,n):Dt.call(d,n);o=n,p=Ot(r,e);var _=n.byteLength;if(void 0===i){if(_%e)throw V("Wrong length!");if((a=_-p)<0)throw V("Wrong length!")}else if((a=v(i)*e)+p>_)throw V("Wrong length!");s=a/e}else s=y(n),a=s*e,o=new J(a);for(h(t,"_d",{b:o,o:p,l:a,e:s,v:new H(o)});f0&&(r.style.colors=[]),this._toRgba(r.style),this._option=r,this._tooltipConfig=r.tooltip,this._legendConfig=r.legend,this._eventConfig=r.event,this._styleConfig=r.style,void 0!==e.data?this.setData(e.data,n):(this._onOptionChange(),this._map&&(this.refresh(),n&&n(this))),delete this._option.data,this._selectItem=r.selected||[],this._tMapStyle(r.skin),this.toolTip&&this.toolTip.setOption(this._tooltipConfig),this.emitEvent=this._eventConfig.emitEvent,this._clearBindEmit(t.event),this._bindEmit()}},{key:"_checkGeoJSON",value:function(t){var e=this._styleConfig.colors.length>0||this._styleConfig.splitList.length>0;(0,l.checkGeoJSON)(t,this._option.checkDataType.name,e)}},{key:"setData",value:function(t,e){t?(this._checkGeoJSON(t),this._data=t):this._data=[],this._clearData(),this._cancerSelected(),this._onDataChange(),this._map&&this._toDraw(e)}},{key:"_onOptionChange",value:function(){}},{key:"_onDataChange",value:function(){}},{key:"setPoints",value:function(t){this.setData(t)}},{key:"getRenderData",value:function(){return this._workerData}},{key:"_getTransformData",value:function(){return this._workerData.length>0?this._workerData:this._data}},{key:"_clearData",value:function(){(0,l.clearPushArray)(this._workerData),this._overItem=null}},{key:"_cancerSelected",value:function(){(0,l.clearPushArray)(this._selectItem,[])}},{key:"setSelectedList",value:function(t){(0,l.clearPushArray)(this._selectItem,t),this._map&&this.refresh()}},{key:"_setWorkerData",value:function(t){this._data=[],this._overItem=null,(0,l.clearPushArray)(this._workerData,t)}},{key:"_canvasInit",value:function(){this.toolTip.setOption(this._tooltipConfig),this._parameterInit()}},{key:"_parameterInit",value:function(){}},{key:"_toRgba",value:function(t){["normal","mouseOver","selected"].forEach(function(e){var n=t[e];n&&["backgroundColor","borderColor","shadowColor"].forEach(function(r){var i=n[r];i&&-1==i.indexOf("rgba")&&(t[e][r]=new p.default(i).getRgbaValue())})}),t.colors&&t.colors.forEach(function(t,e,n){-1==t.indexOf("rgba")&&(n[e]=new p.default(t).getRgbaValue())})}},{key:"_setDrawStyle",value:function(t,e,n){var r=this._styleConfig.normal,i=this._styleConfig.mouseOver,o=this._styleConfig.selected,a=(0,l.merge)({},r),s=parseFloat(t.count),u=this._styleConfig.splitList,c=u.length;if(c>0&&"number"!==(0,l.typeOf)(s))throw new TypeError("inMap: data index Line "+n+", The property count must be of type Number! about geoJSON, visit http://inmap.talkingdata.com/#/docs/v2/Geojson");for(var f=0;f=h.start){a=this._mergeCondition(a,h);break}}else if(s>=h.start&&s<=h.end){a=this._mergeCondition(a,h);break}}else if(s>=h.start&&s-1}},{key:"_findIndexSelectItem",value:function(t){return-1}},{key:"_getTarget",value:function(t,e){return{item:null,index:-1}}},{key:"_deleteSelectItem",value:function(t){var e=this._findIndexSelectItem(t);e>-1&&this._selectItem.splice(e,1)}},{key:"_setTooltip",value:function(t){this.toolTip.render(t,this._overItem)}},{key:"_TClear",value:function(){this._data=null,this._workerData=null,this._baseConfig=null,this._selectItem=null,this._overItem=null,this._option=null,this._tooltipConfig=null,this._legendConfig=null,this._eventConfig=null,this._styleConfig=null}},{key:"_setLegend",value:function(t,e){if(this._map){var n={};n=t.list&&t.list.length>0?s({},t):s({},t,{list:e}),this.legend.setOption(n)}}},{key:"refresh",value:function(){}},{key:"_swopData",value:function(t,e){(0,l.isNumber)(t)&&t>-1&&(this._workerData[t]=this._workerData[this._workerData.length-1],this._workerData[this._workerData.length-1]=e)}},{key:"_tMousemove",value:function(t){if("onmoving"!=this._eventType){var e=this._getTarget(t.pixel.x,t.pixel.y),n=e.item,r=this._overItem;return n!=this._overItem&&(this._overItem=n,n&&this._swopData(e.index,e.item),this._eventType="mousemove",(0,l.isEmpty)(this._styleConfig.mouseOver)||this.refresh()),n?(this._map.setDefaultCursor("pointer"),this._emit("onMouseOver",this._overItem,t,this)):(this._map.setDefaultCursor("default"),this._emit("onMouseLeave",r,t,this)),this._setTooltip(t),e}}},{key:"_tMouseClick",value:function(t){if("onmoving"!=this._eventType){var e=this._eventConfig.multiSelect,n=this._getTarget(t.pixel.x,t.pixel.y);if(-1!=n.index){var r=JSON.parse(JSON.stringify(n.item));return e?this._selectItemContains(r)?this._deleteSelectItem(r):this._selectItem.push(n.item):(0,l.clearPushArray)(this._selectItem,n.item),this._swopData(n.index,r),this._emit("onMouseClick",this._selectItem,t,this),this.refresh(),d&&(this._overItem=r,this._setTooltip(t)),n}}}}]),e}(f.default);e.default=v},function(t,e,n){var r=n(6)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(45)("meta"),i=n(4),o=n(12),a=n(8).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(3)(function(){return u(Object.preventExtensions({}))}),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},p=function(t){return l&&d.NEED&&u(t)&&!o(t,r)&&c(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:h,onFreeze:p}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(20),i=n(120),o=n(78),a=n(1),s=n(9),u=n(95),l={},c={},e=t.exports=function(t,e,n,f,h){var p,d,v,y,_=h?function(){return t}:u(t),g=r(n,f,e?2:1),m=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(o(_)){for(p=s(t.length);p>m;m++)if((y=e?g(a(d=t[m])[0],d[1]):g(t[m]))===l||y===c)return y}else for(v=_.call(t);!(d=v.next()).done;)if((y=i(v,g,d.value,e))===l||y===c)return y};e.BREAK=l,e.RETURN=c},function(t,e){t.exports=!1},function(t,e,n){var r=n(1),i=n(126),o=n(74),a=n(86)("IE_PROTO"),s=function(){},u=function(){var t,e=n(73)("iframe"),r=o.length;for(e.style.display="none",n(76).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("