@2gis/mapgl-clusterer
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var n in o)("object"==typeof exports?exports:t)[n]=o[n]}}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=1)}([function(t,e,o){t.exports=function(){"use strict";function t(o,n,r,i,s,a){if(!(s-i<=r)){var l=i+s>>1;!function t(o,n,r,i,s,a){for(;s>i;){if(s-i>600){var l=s-i+1,u=r-i+1,p=Math.log(l),c=.5*Math.exp(2*p/3),h=.5*Math.sqrt(p*c*(l-c)/l)*(u-l/2<0?-1:1),f=Math.max(i,Math.floor(r-u*c/l+h)),d=Math.min(s,Math.floor(r+(l-u)*c/l+h));t(o,n,r,f,d,a)}var m=n[2*r+a],v=i,g=s;for(e(o,n,i,r),n[2*s+a]>m&&e(o,n,i,s);v<g;){for(e(o,n,v,g),v++,g--;n[2*v+a]<m;)v++;for(;n[2*g+a]>m;)g--}n[2*i+a]===m?e(o,n,i,g):(g++,e(o,n,g,s)),g<=r&&(i=g+1),r<=g&&(s=g-1)}}(o,n,l,i,s,a%2),t(o,n,r,i,l-1,a+1),t(o,n,r,l+1,s,a+1)}}function e(t,e,n,r){o(t,n,r),o(e,2*n,2*r),o(e,2*n+1,2*r+1)}function o(t,e,o){var n=t[e];t[e]=t[o],t[o]=n}function n(t,e,o,n){var r=t-o,i=e-n;return r*r+i*i}var r=function(t){return t[0]},i=function(t){return t[1]},s=function(e,o,n,s,a){void 0===o&&(o=r),void 0===n&&(n=i),void 0===s&&(s=64),void 0===a&&(a=Float64Array),this.nodeSize=s,this.points=e;for(var l=e.length<65536?Uint16Array:Uint32Array,u=this.ids=new l(e.length),p=this.coords=new a(2*e.length),c=0;c<e.length;c++)u[c]=c,p[2*c]=o(e[c]),p[2*c+1]=n(e[c]);t(u,p,s,0,u.length-1,0)};s.prototype.range=function(t,e,o,n){return function(t,e,o,n,r,i,s){for(var a,l,u=[0,t.length-1,0],p=[];u.length;){var c=u.pop(),h=u.pop(),f=u.pop();if(h-f<=s)for(var d=f;d<=h;d++)a=e[2*d],l=e[2*d+1],a>=o&&a<=r&&l>=n&&l<=i&&p.push(t[d]);else{var m=Math.floor((f+h)/2);a=e[2*m],l=e[2*m+1],a>=o&&a<=r&&l>=n&&l<=i&&p.push(t[m]);var v=(c+1)%2;(0===c?o<=a:n<=l)&&(u.push(f),u.push(m-1),u.push(v)),(0===c?r>=a:i>=l)&&(u.push(m+1),u.push(h),u.push(v))}}return p}(this.ids,this.coords,t,e,o,n,this.nodeSize)},s.prototype.within=function(t,e,o){return function(t,e,o,r,i,s){for(var a=[0,t.length-1,0],l=[],u=i*i;a.length;){var p=a.pop(),c=a.pop(),h=a.pop();if(c-h<=s)for(var f=h;f<=c;f++)n(e[2*f],e[2*f+1],o,r)<=u&&l.push(t[f]);else{var d=Math.floor((h+c)/2),m=e[2*d],v=e[2*d+1];n(m,v,o,r)<=u&&l.push(t[d]);var g=(p+1)%2;(0===p?o-i<=m:r-i<=v)&&(a.push(h),a.push(d-1),a.push(g)),(0===p?o+i>=m:r+i>=v)&&(a.push(d+1),a.push(c),a.push(g))}}return l}(this.ids,this.coords,t,e,o,this.nodeSize)};var a={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},l=function(t){this.options=m(Object.create(a),t),this.trees=new Array(this.options.maxZoom+1)};function u(t,e,o,n,r){return{x:t,y:e,zoom:1/0,id:o,parentId:-1,numPoints:n,properties:r}}function p(t,e){var o=t.geometry.coordinates,n=o[0],r=o[1];return{x:f(n),y:d(r),zoom:1/0,index:e,parentId:-1}}function c(t){return{type:"Feature",id:t.id,properties:h(t),geometry:{type:"Point",coordinates:[(n=t.x,360*(n-.5)),(e=t.y,o=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(o))/Math.PI-90)]}};var e,o,n}function h(t){var e=t.numPoints,o=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return m(m({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:o})}function f(t){return t/360+.5}function d(t){var e=Math.sin(t*Math.PI/180),o=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return o<0?0:o>1?1:o}function m(t,e){for(var o in e)t[o]=e[o];return t}function v(t){return t.x}function g(t){return t.y}return l.prototype.load=function(t){var e=this.options,o=e.log,n=e.minZoom,r=e.maxZoom,i=e.nodeSize;o&&console.time("total time");var a="prepare "+t.length+" points";o&&console.time(a),this.points=t;for(var l=[],u=0;u<t.length;u++)t[u].geometry&&l.push(p(t[u],u));this.trees[r+1]=new s(l,v,g,i,Float32Array),o&&console.timeEnd(a);for(var c=r;c>=n;c--){var h=+Date.now();l=this._cluster(l,c),this.trees[c]=new s(l,v,g,i,Float32Array),o&&console.log("z%d: %d clusters in %dms",c,l.length,+Date.now()-h)}return o&&console.timeEnd("total time"),this},l.prototype.getClusters=function(t,e){var o=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),r=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,r=180;else if(o>r){var s=this.getClusters([o,n,180,i],e),a=this.getClusters([-180,n,r,i],e);return s.concat(a)}for(var l=this.trees[this._limitZoom(e)],u=[],p=0,h=l.range(f(o),d(i),f(r),d(n));p<h.length;p+=1){var m=h[p],v=l.points[m];u.push(v.numPoints?c(v):this.points[v.index])}return u},l.prototype.getChildren=function(t){var e=this._getOriginId(t),o=this._getOriginZoom(t),n="No cluster with the specified id.",r=this.trees[o];if(!r)throw new Error(n);var i=r.points[e];if(!i)throw new Error(n);for(var s=this.options.radius/(this.options.extent*Math.pow(2,o-1)),a=[],l=0,u=r.within(i.x,i.y,s);l<u.length;l+=1){var p=u[l],h=r.points[p];h.parentId===t&&a.push(h.numPoints?c(h):this.points[h.index])}if(0===a.length)throw new Error(n);return a},l.prototype.getLeaves=function(t,e,o){e=e||10,o=o||0;var n=[];return this._appendLeaves(n,t,e,o,0),n},l.prototype.getTile=function(t,e,o){var n=this.trees[this._limitZoom(t)],r=Math.pow(2,t),i=this.options,s=i.extent,a=i.radius/s,l=(o-a)/r,u=(o+1+a)/r,p={features:[]};return this._addTileFeatures(n.range((e-a)/r,l,(e+1+a)/r,u),n.points,e,o,r,p),0===e&&this._addTileFeatures(n.range(1-a/r,l,1,u),n.points,r,o,r,p),e===r-1&&this._addTileFeatures(n.range(0,l,a/r,u),n.points,-1,o,r,p),p.features.length?p:null},l.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var o=this.getChildren(t);if(e++,1!==o.length)break;t=o[0].properties.cluster_id}return e},l.prototype._appendLeaves=function(t,e,o,n,r){for(var i=0,s=this.getChildren(e);i<s.length;i+=1){var a=s[i],l=a.properties;if(l&&l.cluster?r+l.point_count<=n?r+=l.point_count:r=this._appendLeaves(t,l.cluster_id,o,n,r):r<n?r++:t.push(a),t.length===o)break}return r},l.prototype._addTileFeatures=function(t,e,o,n,r,i){for(var s=0,a=t;s<a.length;s+=1){var l=e[a[s]],u=l.numPoints,p={type:1,geometry:[[Math.round(this.options.extent*(l.x*r-o)),Math.round(this.options.extent*(l.y*r-n))]],tags:u?h(l):this.points[l.index].properties},c=void 0;u?c=l.id:this.options.generateId?c=l.index:this.points[l.index].id&&(c=this.points[l.index].id),void 0!==c&&(p.id=c),i.features.push(p)}},l.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},l.prototype._cluster=function(t,e){for(var o=[],n=this.options,r=n.radius,i=n.extent,s=n.reduce,a=r/(i*Math.pow(2,e)),l=0;l<t.length;l++){var p=t[l];if(!(p.zoom<=e)){p.zoom=e;for(var c=this.trees[e+1],h=c.within(p.x,p.y,a),f=p.numPoints||1,d=p.x*f,m=p.y*f,v=s&&f>1?this._map(p,!0):null,g=(l<<5)+(e+1)+this.points.length,y=0,b=h;y<b.length;y+=1){var x=b[y],_=c.points[x];if(!(_.zoom<=e)){_.zoom=e;var M=_.numPoints||1;d+=_.x*M,m+=_.y*M,f+=M,_.parentId=g,s&&(v||(v=this._map(p,!0)),s(v,this._map(_)))}}1===f?o.push(p):(p.parentId=g,o.push(u(d/f,m/f,g,f,v)))}}return o},l.prototype._getOriginId=function(t){return t-this.points.length>>5},l.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},l.prototype._map=function(t,e){if(t.numPoints)return e?m({},t.properties):t.properties;var o=this.points[t.index].properties,n=this.options.map(o);return e&&n===o?m({},n):n},l}()},function(t,e,o){"use strict";o.r(e),o.d(e,"Clusterer",(function(){return m}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};var r=function(){return(r=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.create;Object.create;var i=function(){function t(){this.events={}}return t.prototype.on=function(t,e){var o=this.events[t];return o||(o=this.events[t]=[]),o.push(e),this},t.prototype.once=function(t,e){var o=this,n=function(r){o.off(t,n),e.call(o,r)};return this.on(t,n),this},t.prototype.off=function(t,e){var o=this.events[t];if(!o)return this;var n=o.indexOf(e);return-1!==n&&o.splice(n,1),this},t.prototype.emit=function(t,e){var o=this.events[t];if(!o)return this;for(var n=o.slice(),r=0;r<n.length;r++)n[r].call(this,e);return this},t}(),s="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48Y2lyY2xlIGZpbGw9IiM0OGQ5NWQiIGN4PSIxNSIgY3k9IjE1IiByPSIxNSIvPjwvc3ZnPg==",a=["click","mousemove","mouseover","mouseout","mousedown","mouseup","touchstart","touchend"];function l(t,e,o){var n=t.getBoundingClientRect();return[e-n.left-t.clientLeft,o-n.top-t.clientTop]}function u(t,e){return function(t){return void 0!==t.screenX}(e)?l(t,e.clientX,e.clientY):l(t,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}var p=o(0),c=1,h=0,f=[15,43],d={minZoom:-1/0,maxZoom:1/0,color:"#000000",fontSize:18,haloRadius:0,haloColor:"#ffffff",letterSpacing:0,lineHeight:1.2,offset:[0,0],relativeAnchor:[.5,.5]},m=function(t){function e(o,n){void 0===n&&(n={});var i,s,a=this;(a=t.call(this)||this)._updateVisibleObjects=function(){var t=a._getVisibleObjects();a.markers.forEach((function(t){t.hide()})),a.clusters.forEach((function(t){t.marker.hide()})),t.forEach((function(t){if(function(t){return t.properties.cluster}(t)){var e=t.properties.cluster_id,o=a.clusters.get(e);o?o.marker.show():a._createCluster(e,t.geometry.coordinates,t.properties.point_count)}else{var n=t.properties.index,r=a.markers.get(n);r?r.show():a._createMarker(n,t.geometry.coordinates)}}))},a._throttleUpdateVisibleObjects=function(t,e){var o,n;function r(){o=!1,n&&(i.apply(void 0,n),n=!1)}function i(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o?n=i:(t.apply(void 0,i),setTimeout(r,e),o=!0)}return i}(a._updateVisibleObjects,100);var l=null!==(i=n.radius)&&void 0!==i?i:e.options.radius,u=null!==(s=n.disableClusteringAtZoom)&&void 0!==s?s:e.options.disableClusteringAtZoom,c=e.options.clusterStyle;return n.clusterStyle&&(c="function"==typeof n.clusterStyle?n.clusterStyle:r(r({},c),n.clusterStyle)),a.options={radius:l,clusterStyle:c,disableClusteringAtZoom:u},a.map=o,a.inputMarkers=[],a.supercluster=new p({minZoom:0,maxZoom:Math.floor(a.options.disableClusteringAtZoom),radius:a.options.radius}),a.supercluster.load([]),a.markers=new Map,a.clusters=new Map,a.map.on("move",a._throttleUpdateVisibleObjects),a.map.on("resize",a._throttleUpdateVisibleObjects),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}(e,t),e.prototype.load=function(t){this._clear(),this.inputMarkers=t,this.supercluster.load(function(t){return t.map((function(t,e){return{type:"Feature",geometry:{type:"Point",coordinates:t.coordinates},properties:{index:e,cluster:!1}}}))}(t)),this._updateVisibleObjects()},e.prototype.destroy=function(){this._clear(),this.map.off("move",this._throttleUpdateVisibleObjects),this.map.off("resize",this._throttleUpdateVisibleObjects)},e.prototype.setClusterStyle=function(t,o){var n=this.clusters.get(t);if(n){var i=n.target.data.length;"function"==typeof o&&(o=r(r({},e.options.clusterStyle),o(i,n.target))),"webgl"===n.type?void 0!==o.type&&"webgl"!==o.type||(n.marker.setIcon({icon:o.icon||s,size:o.size,anchor:v(o.icon,o.anchor)}),o.hoverIcon?n.marker.setHoverIcon({icon:o.hoverIcon,size:o.hoverSize,anchor:o.hoverAnchor}):n.marker.setHoverIcon(),n.marker.setLabel(g(i,o))):"html"===n.type&&"html"===o.type&&(n.marker.setContent(o.html),n.marker.setAnchor(o.anchor||[0,0]))}},e.prototype.resetClusterStyle=function(t){this.setClusterStyle(t,this.options.clusterStyle)},e.prototype._dangerouslyUpdateVisibleObjects=function(){this._updateVisibleObjects()},e.prototype.getClusterExpansionZoom=function(t){return this.supercluster.getClusterExpansionZoom(t)},e.prototype._clear=function(){this.markers.forEach((function(t){t.destroy()})),this.clusters.forEach((function(t){t.marker.destroy()})),this.markers.clear(),this.clusters.clear(),this.supercluster.load([]),this.inputMarkers=[]},e.prototype._getVisibleObjects=function(){var t=this.map.getZoom(),e=t<this.options.disableClusteringAtZoom?Math.floor(t):Math.ceil(t)+1,o=this._getBounds();return this.supercluster.getClusters(o,e)},e.prototype._getBounds=function(){var t=this.map.getSize(),e=.06*t[0],o=.06*t[1],n=this.map.unproject([-e,t[1]+o]),r=this.map.unproject([t[0]+e,t[1]+o]),i=this.map.unproject([t[0]+e,-o]),s=this.map.unproject([-e,-o]);return[Math.min(n[0],r[0],i[0],s[0]),Math.min(n[1],r[1],i[1],s[1]),Math.max(n[0],r[0],i[0],s[0]),Math.max(n[1],r[1],i[1],s[1])]},e.prototype.isMapglMarker=function(t){return!t.type||"webgl"===t.type},e.prototype._createMarker=function(t,e){var o=this.inputMarkers[t],n=this.isMapglMarker(o)?this._createMapglMarker(r(r({},o),{coordinates:e})):this._createHtmlMarker(r(r({},o),{coordinates:e}));this.markers.set(t,n)},e.prototype._createMapglMarker=function(t){var e,o,n,r,i,s,l,u,p=this,h=t.coordinates,m=t.icon,v=t.size,g=t.anchor,y=t.hoverIcon,b=t.hoverSize,x=t.hoverAnchor,_=t.label,M=t.zIndex,w=_?{text:_.text,image:_.image,minZoom:null!==(e=_.minZoom)&&void 0!==e?e:d.minZoom,maxZoom:null!==(o=_.maxZoom)&&void 0!==o?o:d.maxZoom,color:_.color||d.color,fontSize:null!==(n=_.fontSize)&&void 0!==n?n:d.fontSize,haloRadius:null!==(r=_.haloRadius)&&void 0!==r?r:d.haloRadius,haloColor:_.haloColor||d.haloColor,letterSpacing:null!==(i=_.letterSpacing)&&void 0!==i?i:d.letterSpacing,lineHeight:null!==(s=_.lineHeight)&&void 0!==s?s:d.lineHeight,zIndex:(null!=M?M:c)+1e-5,offset:(null!==(l=_.offset)&&void 0!==l?l:null===(u=_.anchor)||void 0===u?void 0:u.map((function(t){return-t})))||d.offset,relativeAnchor:_.relativeAnchor||d.relativeAnchor}:void 0,S=new mapgl.Marker(this.map,{coordinates:h,icon:m,size:v,anchor:void 0!==m?g:f,hoverIcon:y,hoverSize:b,hoverAnchor:x,label:w,zIndex:null!=M?M:c}),I={type:"marker",data:t};return a.forEach((function(t){return S.on(t,(function(e){var o={originalEvent:e.originalEvent,lngLat:e.lngLat,point:e.point,target:I};p.emit(t,o)}))})),S},e.prototype._bindHtmlMarkerEvents=function(t,e,o){var n=this,r=this.map.getContainer(),i=e._impl.dangerouslyGetRootElement();a.forEach((function(e){return i.addEventListener(e,(function(i){var s={originalEvent:i,lngLat:t,point:u(r,i),target:o};n.emit(e,s)}),{passive:!0})}))},e.prototype._createHtmlMarker=function(t){var e=t.coordinates,o=t.html,n=t.anchor,r=t.minZoom,i=t.maxZoom,s=t.zIndex,a=t.preventMapInteractions,l=new mapgl.HtmlMarker(this.map,{coordinates:e,html:o,anchor:n,minZoom:r,maxZoom:i,preventMapInteractions:a,zIndex:null!=s?s:c}),u={type:"marker",data:t};this._bindHtmlMarkerEvents(e,l,u);var p=l.getContent();return{show:function(){p.hidden&&(p.hidden=!1)},hide:function(){p.hidden||(p.hidden=!0)},destroy:function(){l.destroy()},setContent:function(t){l.setContent(t)},setAnchor:function(t){l.setAnchor(t)}}},e.prototype.isWebglClusterStyle=function(t){return!t.type||"webgl"===t.type},e.prototype._createCluster=function(t,o,n){var i=this,s=this.supercluster.getLeaves(t,1/0).map((function(t){return i.inputMarkers[t.properties.index]})),a={id:t,type:"cluster",data:s},l="function"==typeof this.options.clusterStyle?r(r({},e.options.clusterStyle),this.options.clusterStyle(s.length,a)):this.options.clusterStyle;if(this.isWebglClusterStyle(l)){var u=this._createWebGLCluster(o,n,l,a);this.clusters.set(t,{type:"webgl",coordinates:o,marker:u,target:a})}else{u=this._createHtmlCluster(o,n,l,a);this.clusters.set(t,{type:"html",coordinates:o,marker:u,target:a})}},e.prototype._createWebGLCluster=function(t,e,o,n){var r,i=this,l=new mapgl.Marker(this.map,{coordinates:t,zIndex:null!==(r=o.zIndex)&&void 0!==r?r:h,icon:o.icon||s,size:o.size,anchor:v(o.icon,o.anchor),hoverIcon:o.hoverIcon,hoverSize:o.hoverSize,hoverAnchor:o.hoverAnchor,label:g(e,o)});return a.forEach((function(t){return l.on(t,(function(e){var o={originalEvent:e.originalEvent,lngLat:e.lngLat,point:e.point,target:n};i.emit(t,o)}))})),l},e.prototype._createHtmlCluster=function(t,e,o,n){var r=o.html,i=o.anchor,s=o.minZoom,a=o.maxZoom,l=o.zIndex,u=o.preventMapInteractions,p=new mapgl.HtmlMarker(this.map,{coordinates:t,html:r||String(e),anchor:i,minZoom:s,maxZoom:a,preventMapInteractions:u,zIndex:null!=l?l:h});this._bindHtmlMarkerEvents(t,p,n);var c=p.getContent();return{show:function(){c.hidden&&(c.hidden=!1)},hide:function(){c.hidden||(c.hidden=!0)},destroy:function(){p.destroy()},setContent:function(t){p.setContent(t)},setAnchor:function(t){p.setAnchor(t)}}},e.options={radius:80,disableClusteringAtZoom:20,clusterStyle:{icon:s,labelColor:"#000000",labelFontSize:14,labelAnchor:[0,0],labelText:void 0}},e}(i);function v(t,e){return void 0!==t?e:void 0}function g(t,e){var o,n,r,i,s,a,l;return{text:null!==(o=e.labelText)&&void 0!==o?o:String(t),color:e.labelColor||d.color,fontSize:null!==(n=e.labelFontSize)&&void 0!==n?n:d.fontSize,haloRadius:null!==(r=e.labelHaloRadius)&&void 0!==r?r:d.haloRadius,haloColor:e.labelHaloColor||d.haloColor,letterSpacing:null!==(i=e.labelLetterSpacing)&&void 0!==i?i:d.letterSpacing,anchor:e.labelAnchor,offset:(null!==(s=e.labelOffset)&&void 0!==s?s:null===(a=e.labelAnchor)||void 0===a?void 0:a.map((function(t){return-t})))||d.offset,relativeAnchor:e.labelRelativeAnchor||d.relativeAnchor,image:e.labelImage,zIndex:(null!==(l=e.zIndex)&&void 0!==l?l:h)+1e-5,minZoom:d.minZoom,maxZoom:d.maxZoom,lineHeight:d.lineHeight}}"undefined"!=typeof window&&("mapgl"in window?mapgl.Clusterer=m:(window.__mapglPlugins||(window.__mapglPlugins={}),window.__mapglPlugins.Clusterer=m))}])})); | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var r in o)("object"==typeof exports?exports:t)[r]=o[r]}}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}return o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=1)}([function(t,e,o){t.exports=function(){"use strict";function t(o,r,n,i,s,a){if(!(s-i<=n)){var l=i+s>>1;!function t(o,r,n,i,s,a){for(;s>i;){if(s-i>600){var l=s-i+1,u=n-i+1,p=Math.log(l),c=.5*Math.exp(2*p/3),h=.5*Math.sqrt(p*c*(l-c)/l)*(u-l/2<0?-1:1),f=Math.max(i,Math.floor(n-u*c/l+h)),d=Math.min(s,Math.floor(n+(l-u)*c/l+h));t(o,r,n,f,d,a)}var m=r[2*n+a],v=i,g=s;for(e(o,r,i,n),r[2*s+a]>m&&e(o,r,i,s);v<g;){for(e(o,r,v,g),v++,g--;r[2*v+a]<m;)v++;for(;r[2*g+a]>m;)g--}r[2*i+a]===m?e(o,r,i,g):(g++,e(o,r,g,s)),g<=n&&(i=g+1),n<=g&&(s=g-1)}}(o,r,l,i,s,a%2),t(o,r,n,i,l-1,a+1),t(o,r,n,l+1,s,a+1)}}function e(t,e,r,n){o(t,r,n),o(e,2*r,2*n),o(e,2*r+1,2*n+1)}function o(t,e,o){var r=t[e];t[e]=t[o],t[o]=r}function r(t,e,o,r){var n=t-o,i=e-r;return n*n+i*i}var n=function(t){return t[0]},i=function(t){return t[1]},s=function(e,o,r,s,a){void 0===o&&(o=n),void 0===r&&(r=i),void 0===s&&(s=64),void 0===a&&(a=Float64Array),this.nodeSize=s,this.points=e;for(var l=e.length<65536?Uint16Array:Uint32Array,u=this.ids=new l(e.length),p=this.coords=new a(2*e.length),c=0;c<e.length;c++)u[c]=c,p[2*c]=o(e[c]),p[2*c+1]=r(e[c]);t(u,p,s,0,u.length-1,0)};s.prototype.range=function(t,e,o,r){return function(t,e,o,r,n,i,s){for(var a,l,u=[0,t.length-1,0],p=[];u.length;){var c=u.pop(),h=u.pop(),f=u.pop();if(h-f<=s)for(var d=f;d<=h;d++)a=e[2*d],l=e[2*d+1],a>=o&&a<=n&&l>=r&&l<=i&&p.push(t[d]);else{var m=Math.floor((f+h)/2);a=e[2*m],l=e[2*m+1],a>=o&&a<=n&&l>=r&&l<=i&&p.push(t[m]);var v=(c+1)%2;(0===c?o<=a:r<=l)&&(u.push(f),u.push(m-1),u.push(v)),(0===c?n>=a:i>=l)&&(u.push(m+1),u.push(h),u.push(v))}}return p}(this.ids,this.coords,t,e,o,r,this.nodeSize)},s.prototype.within=function(t,e,o){return function(t,e,o,n,i,s){for(var a=[0,t.length-1,0],l=[],u=i*i;a.length;){var p=a.pop(),c=a.pop(),h=a.pop();if(c-h<=s)for(var f=h;f<=c;f++)r(e[2*f],e[2*f+1],o,n)<=u&&l.push(t[f]);else{var d=Math.floor((h+c)/2),m=e[2*d],v=e[2*d+1];r(m,v,o,n)<=u&&l.push(t[d]);var g=(p+1)%2;(0===p?o-i<=m:n-i<=v)&&(a.push(h),a.push(d-1),a.push(g)),(0===p?o+i>=m:n+i>=v)&&(a.push(d+1),a.push(c),a.push(g))}}return l}(this.ids,this.coords,t,e,o,this.nodeSize)};var a,l={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},u=Math.fround||(a=new Float32Array(1),function(t){return a[0]=+t,a[0]}),p=function(t){this.options=g(Object.create(l),t),this.trees=new Array(this.options.maxZoom+1)};function c(t,e,o,r,n){return{x:u(t),y:u(e),zoom:1/0,id:o,parentId:-1,numPoints:r,properties:n}}function h(t,e){var o=t.geometry.coordinates,r=o[0],n=o[1];return{x:u(m(r)),y:u(v(n)),zoom:1/0,index:e,parentId:-1}}function f(t){return{type:"Feature",id:t.id,properties:d(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,o=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(o))/Math.PI-90)]}};var e,o,r}function d(t){var e=t.numPoints,o=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return g(g({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:o})}function m(t){return t/360+.5}function v(t){var e=Math.sin(t*Math.PI/180),o=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return o<0?0:o>1?1:o}function g(t,e){for(var o in e)t[o]=e[o];return t}function y(t){return t.x}function b(t){return t.y}return p.prototype.load=function(t){var e=this.options,o=e.log,r=e.minZoom,n=e.maxZoom,i=e.nodeSize;o&&console.time("total time");var a="prepare "+t.length+" points";o&&console.time(a),this.points=t;for(var l=[],u=0;u<t.length;u++)t[u].geometry&&l.push(h(t[u],u));this.trees[n+1]=new s(l,y,b,i,Float32Array),o&&console.timeEnd(a);for(var p=n;p>=r;p--){var c=+Date.now();l=this._cluster(l,p),this.trees[p]=new s(l,y,b,i,Float32Array),o&&console.log("z%d: %d clusters in %dms",p,l.length,+Date.now()-c)}return o&&console.timeEnd("total time"),this},p.prototype.getClusters=function(t,e){var o=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),n=180===t[2]?180:((t[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,n=180;else if(o>n){var s=this.getClusters([o,r,180,i],e),a=this.getClusters([-180,r,n,i],e);return s.concat(a)}for(var l=this.trees[this._limitZoom(e)],u=[],p=0,c=l.range(m(o),v(i),m(n),v(r));p<c.length;p+=1){var h=c[p],d=l.points[h];u.push(d.numPoints?f(d):this.points[d.index])}return u},p.prototype.getChildren=function(t){var e=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",n=this.trees[o];if(!n)throw new Error(r);var i=n.points[e];if(!i)throw new Error(r);for(var s=this.options.radius/(this.options.extent*Math.pow(2,o-1)),a=[],l=0,u=n.within(i.x,i.y,s);l<u.length;l+=1){var p=u[l],c=n.points[p];c.parentId===t&&a.push(c.numPoints?f(c):this.points[c.index])}if(0===a.length)throw new Error(r);return a},p.prototype.getLeaves=function(t,e,o){e=e||10,o=o||0;var r=[];return this._appendLeaves(r,t,e,o,0),r},p.prototype.getTile=function(t,e,o){var r=this.trees[this._limitZoom(t)],n=Math.pow(2,t),i=this.options,s=i.extent,a=i.radius/s,l=(o-a)/n,u=(o+1+a)/n,p={features:[]};return this._addTileFeatures(r.range((e-a)/n,l,(e+1+a)/n,u),r.points,e,o,n,p),0===e&&this._addTileFeatures(r.range(1-a/n,l,1,u),r.points,n,o,n,p),e===n-1&&this._addTileFeatures(r.range(0,l,a/n,u),r.points,-1,o,n,p),p.features.length?p:null},p.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e<=this.options.maxZoom;){var o=this.getChildren(t);if(e++,1!==o.length)break;t=o[0].properties.cluster_id}return e},p.prototype._appendLeaves=function(t,e,o,r,n){for(var i=0,s=this.getChildren(e);i<s.length;i+=1){var a=s[i],l=a.properties;if(l&&l.cluster?n+l.point_count<=r?n+=l.point_count:n=this._appendLeaves(t,l.cluster_id,o,r,n):n<r?n++:t.push(a),t.length===o)break}return n},p.prototype._addTileFeatures=function(t,e,o,r,n,i){for(var s=0,a=t;s<a.length;s+=1){var l=e[a[s]],u=l.numPoints,p=void 0,c=void 0,h=void 0;if(u)p=d(l),c=l.x,h=l.y;else{var f=this.points[l.index];p=f.properties,c=m(f.geometry.coordinates[0]),h=v(f.geometry.coordinates[1])}var g={type:1,geometry:[[Math.round(this.options.extent*(c*n-o)),Math.round(this.options.extent*(h*n-r))]],tags:p},y=void 0;u?y=l.id:this.options.generateId?y=l.index:this.points[l.index].id&&(y=this.points[l.index].id),void 0!==y&&(g.id=y),i.features.push(g)}},p.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))},p.prototype._cluster=function(t,e){for(var o=[],r=this.options,n=r.radius,i=r.extent,s=r.reduce,a=r.minPoints,l=n/(i*Math.pow(2,e)),u=0;u<t.length;u++){var p=t[u];if(!(p.zoom<=e)){p.zoom=e;for(var h=this.trees[e+1],f=h.within(p.x,p.y,l),d=p.numPoints||1,m=d,v=0,g=f;v<g.length;v+=1){var y=g[v],b=h.points[y];b.zoom>e&&(m+=b.numPoints||1)}if(m>d&&m>=a){for(var x=p.x*d,_=p.y*d,M=s&&d>1?this._map(p,!0):null,w=(u<<5)+(e+1)+this.points.length,S=0,I=f;S<I.length;S+=1){var z=I[S],C=h.points[z];if(!(C.zoom<=e)){C.zoom=e;var Z=C.numPoints||1;x+=C.x*Z,_+=C.y*Z,C.parentId=w,s&&(M||(M=this._map(p,!0)),s(M,this._map(C)))}}p.parentId=w,o.push(c(x/m,_/m,w,m,M))}else if(o.push(p),m>1)for(var k=0,j=f;k<j.length;k+=1){var O=j[k],A=h.points[O];A.zoom<=e||(A.zoom=e,o.push(A))}}}return o},p.prototype._getOriginId=function(t){return t-this.points.length>>5},p.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},p.prototype._map=function(t,e){if(t.numPoints)return e?g({},t.properties):t.properties;var o=this.points[t.index].properties,r=this.options.map(o);return e&&r===o?g({},r):r},p}()},function(t,e,o){"use strict";o.r(e),o.d(e,"Clusterer",(function(){return v}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var i=function(){return(i=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var s=function(){function t(){this.events={}}return t.prototype.on=function(t,e){var o=this.events[t];return o||(o=this.events[t]=[]),o.push(e),this},t.prototype.once=function(t,e){var o=this,r=function(n){o.off(t,r),e.call(o,n)};return this.on(t,r),this},t.prototype.off=function(t,e){var o=this.events[t];if(!o)return this;var r=o.indexOf(e);return-1!==r&&o.splice(r,1),this},t.prototype.emit=function(t,e){var o=this.events[t];if(!o)return this;for(var r=o.slice(),n=0;n<r.length;n++)r[n].call(this,e);return this},t}(),a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48Y2lyY2xlIGZpbGw9IiM0OGQ5NWQiIGN4PSIxNSIgY3k9IjE1IiByPSIxNSIvPjwvc3ZnPg==",l=["click","mousemove","mouseover","mouseout","mousedown","mouseup","touchstart","touchend"];function u(t,e,o){var r=t.getBoundingClientRect();return[e-r.left-t.clientLeft,o-r.top-t.clientTop]}function p(t,e){return function(t){return void 0!==t.screenX}(e)?u(t,e.clientX,e.clientY):u(t,e.changedTouches[0].clientX,e.changedTouches[0].clientY)}var c=o(0),h=1,f=0,d=[15,43],m={minZoom:-1/0,maxZoom:1/0,color:"#000000",fontSize:18,haloRadius:0,haloColor:"#ffffff",letterSpacing:0,lineHeight:1.2,offset:[0,0],relativeAnchor:[.5,.5]},v=function(t){function e(o,r){void 0===r&&(r={});var n,s,a=this;(a=t.call(this)||this)._updateVisibleObjects=function(){var t=a._getVisibleObjects();a.markers.forEach((function(t){t.hide()})),a.clusters.forEach((function(t){t.marker.hide()})),t.forEach((function(t){if(function(t){return t.properties.cluster}(t)){var e=t.properties.cluster_id,o=a.clusters.get(e);o?o.marker.show():a._createCluster(e,t.geometry.coordinates,t.properties.point_count)}else{var r=t.properties.index,n=a.markers.get(r);n?n.show():a._createMarker(r,t.geometry.coordinates)}}))},a._throttleUpdateVisibleObjects=function(t,e){var o,r;function n(){o=!1,r&&(i.apply(void 0,r),r=!1)}function i(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o?r=i:(t.apply(void 0,i),setTimeout(n,e),o=!0)}return i}(a._updateVisibleObjects,100);var l=null!==(n=r.radius)&&void 0!==n?n:e.options.radius,u=null!==(s=r.disableClusteringAtZoom)&&void 0!==s?s:e.options.disableClusteringAtZoom,p=e.options.clusterStyle;return r.clusterStyle&&(p="function"==typeof r.clusterStyle?r.clusterStyle:i(i({},p),r.clusterStyle)),a.options={radius:l,clusterStyle:p,disableClusteringAtZoom:u},a.map=o,a.inputMarkers=[],a.supercluster=new c({minZoom:0,maxZoom:Math.floor(a.options.disableClusteringAtZoom),radius:a.options.radius}),a.supercluster.load([]),a.markers=new Map,a.clusters=new Map,a.map.on("move",a._throttleUpdateVisibleObjects),a.map.on("resize",a._throttleUpdateVisibleObjects),a}return n(e,t),e.prototype.load=function(t){this._clear(),this.inputMarkers=t,this.supercluster.load(function(t){return t.map((function(t,e){return{type:"Feature",geometry:{type:"Point",coordinates:t.coordinates},properties:{index:e,cluster:!1}}}))}(t)),this._updateVisibleObjects()},e.prototype.destroy=function(){this._clear(),this.map.off("move",this._throttleUpdateVisibleObjects),this.map.off("resize",this._throttleUpdateVisibleObjects)},e.prototype.setClusterStyle=function(t,o){var r=this.clusters.get(t);if(r){var n=r.target.data.length;"function"==typeof o&&(o=i(i({},e.options.clusterStyle),o(n,r.target))),"webgl"===r.type?void 0!==o.type&&"webgl"!==o.type||(r.marker.setIcon({icon:o.icon||a,size:o.size,anchor:g(o.icon,o.anchor)}),o.hoverIcon?r.marker.setHoverIcon({icon:o.hoverIcon,size:o.hoverSize,anchor:o.hoverAnchor}):r.marker.setHoverIcon(),r.marker.setLabel(y(n,o))):"html"===r.type&&"html"===o.type&&(r.marker.setContent(o.html),r.marker.setAnchor(o.anchor||[0,0]))}},e.prototype.resetClusterStyle=function(t){this.setClusterStyle(t,this.options.clusterStyle)},e.prototype._dangerouslyUpdateVisibleObjects=function(){this._updateVisibleObjects()},e.prototype.getClusterExpansionZoom=function(t){return this.supercluster.getClusterExpansionZoom(t)},e.prototype._clear=function(){this.markers.forEach((function(t){t.destroy()})),this.clusters.forEach((function(t){t.marker.destroy()})),this.markers.clear(),this.clusters.clear(),this.supercluster.load([]),this.inputMarkers=[]},e.prototype._getVisibleObjects=function(){var t=this.map.getZoom(),e=t<this.options.disableClusteringAtZoom?Math.floor(t):Math.ceil(t)+1,o=this._getBounds();return this.supercluster.getClusters(o,e)},e.prototype._getBounds=function(){var t=this.map.getSize(),e=.06*t[0],o=.06*t[1],r=this.map.unproject([-e,t[1]+o]),n=this.map.unproject([t[0]+e,t[1]+o]),i=this.map.unproject([t[0]+e,-o]),s=this.map.unproject([-e,-o]);return[Math.min(r[0],n[0],i[0],s[0]),Math.min(r[1],n[1],i[1],s[1]),Math.max(r[0],n[0],i[0],s[0]),Math.max(r[1],n[1],i[1],s[1])]},e.prototype.isMapglMarker=function(t){return!t.type||"webgl"===t.type},e.prototype._createMarker=function(t,e){var o=this.inputMarkers[t],r=this.isMapglMarker(o)?this._createMapglMarker(i(i({},o),{coordinates:e})):this._createHtmlMarker(i(i({},o),{coordinates:e}));this.markers.set(t,r)},e.prototype._createMapglMarker=function(t){var e,o,r,n,i,s,a,u,p=this,c=t.coordinates,f=t.icon,v=t.size,g=t.anchor,y=t.hoverIcon,b=t.hoverSize,x=t.hoverAnchor,_=t.label,M=t.zIndex,w=_?{text:_.text,image:_.image,minZoom:null!==(e=_.minZoom)&&void 0!==e?e:m.minZoom,maxZoom:null!==(o=_.maxZoom)&&void 0!==o?o:m.maxZoom,color:_.color||m.color,fontSize:null!==(r=_.fontSize)&&void 0!==r?r:m.fontSize,haloRadius:null!==(n=_.haloRadius)&&void 0!==n?n:m.haloRadius,haloColor:_.haloColor||m.haloColor,letterSpacing:null!==(i=_.letterSpacing)&&void 0!==i?i:m.letterSpacing,lineHeight:null!==(s=_.lineHeight)&&void 0!==s?s:m.lineHeight,zIndex:(null!=M?M:h)+1e-5,offset:(null!==(a=_.offset)&&void 0!==a?a:null===(u=_.anchor)||void 0===u?void 0:u.map((function(t){return-t})))||m.offset,relativeAnchor:_.relativeAnchor||m.relativeAnchor}:void 0,S=new mapgl.Marker(this.map,{coordinates:c,icon:f,size:v,anchor:void 0!==f?g:d,hoverIcon:y,hoverSize:b,hoverAnchor:x,label:w,zIndex:null!=M?M:h}),I={type:"marker",data:t};return l.forEach((function(t){return S.on(t,(function(e){var o={originalEvent:e.originalEvent,lngLat:e.lngLat,point:e.point,target:I};p.emit(t,o)}))})),S},e.prototype._bindHtmlMarkerEvents=function(t,e,o){var r=this,n=this.map.getContainer(),i=e._impl.dangerouslyGetRootElement();l.forEach((function(e){return i.addEventListener(e,(function(i){var s={originalEvent:i,lngLat:t,point:p(n,i),target:o};r.emit(e,s)}),{passive:!0})}))},e.prototype._createHtmlMarker=function(t){var e=t.coordinates,o=t.html,r=t.anchor,n=t.minZoom,i=t.maxZoom,s=t.zIndex,a=t.preventMapInteractions,l=new mapgl.HtmlMarker(this.map,{coordinates:e,html:o,anchor:r,minZoom:n,maxZoom:i,preventMapInteractions:a,zIndex:null!=s?s:h}),u={type:"marker",data:t};this._bindHtmlMarkerEvents(e,l,u);var p=l.getContent();return{show:function(){p.hidden&&(p.hidden=!1)},hide:function(){p.hidden||(p.hidden=!0)},destroy:function(){l.destroy()},setContent:function(t){l.setContent(t)},setAnchor:function(t){l.setAnchor(t)}}},e.prototype.isWebglClusterStyle=function(t){return!t.type||"webgl"===t.type},e.prototype._createCluster=function(t,o,r){var n=this,s=this.supercluster.getLeaves(t,1/0).map((function(t){return n.inputMarkers[t.properties.index]})),a={id:t,type:"cluster",data:s},l="function"==typeof this.options.clusterStyle?i(i({},e.options.clusterStyle),this.options.clusterStyle(s.length,a)):this.options.clusterStyle;if(this.isWebglClusterStyle(l)){var u=this._createWebGLCluster(o,r,l,a);this.clusters.set(t,{type:"webgl",coordinates:o,marker:u,target:a})}else{u=this._createHtmlCluster(o,r,l,a);this.clusters.set(t,{type:"html",coordinates:o,marker:u,target:a})}},e.prototype._createWebGLCluster=function(t,e,o,r){var n,i=this,s=new mapgl.Marker(this.map,{coordinates:t,zIndex:null!==(n=o.zIndex)&&void 0!==n?n:f,icon:o.icon||a,size:o.size,anchor:g(o.icon,o.anchor),hoverIcon:o.hoverIcon,hoverSize:o.hoverSize,hoverAnchor:o.hoverAnchor,label:y(e,o)});return l.forEach((function(t){return s.on(t,(function(e){var o={originalEvent:e.originalEvent,lngLat:e.lngLat,point:e.point,target:r};i.emit(t,o)}))})),s},e.prototype._createHtmlCluster=function(t,e,o,r){var n=o.html,i=o.anchor,s=o.minZoom,a=o.maxZoom,l=o.zIndex,u=o.preventMapInteractions,p=new mapgl.HtmlMarker(this.map,{coordinates:t,html:n||String(e),anchor:i,minZoom:s,maxZoom:a,preventMapInteractions:u,zIndex:null!=l?l:f});this._bindHtmlMarkerEvents(t,p,r);var c=p.getContent();return{show:function(){c.hidden&&(c.hidden=!1)},hide:function(){c.hidden||(c.hidden=!0)},destroy:function(){p.destroy()},setContent:function(t){p.setContent(t)},setAnchor:function(t){p.setAnchor(t)}}},e.options={radius:80,disableClusteringAtZoom:30,clusterStyle:{icon:a,labelColor:"#000000",labelFontSize:14,labelAnchor:[0,0],labelText:void 0}},e}(s);function g(t,e){return void 0!==t?e:void 0}function y(t,e){var o,r,n,i,s,a,l;return{text:null!==(o=e.labelText)&&void 0!==o?o:String(t),color:e.labelColor||m.color,fontSize:null!==(r=e.labelFontSize)&&void 0!==r?r:m.fontSize,haloRadius:null!==(n=e.labelHaloRadius)&&void 0!==n?n:m.haloRadius,haloColor:e.labelHaloColor||m.haloColor,letterSpacing:null!==(i=e.labelLetterSpacing)&&void 0!==i?i:m.letterSpacing,anchor:e.labelAnchor,offset:(null!==(s=e.labelOffset)&&void 0!==s?s:null===(a=e.labelAnchor)||void 0===a?void 0:a.map((function(t){return-t})))||m.offset,relativeAnchor:e.labelRelativeAnchor||m.relativeAnchor,image:e.labelImage,zIndex:(null!==(l=e.zIndex)&&void 0!==l?l:f)+1e-5,minZoom:m.minZoom,maxZoom:m.maxZoom,lineHeight:m.lineHeight}}"undefined"!=typeof window&&("mapgl"in window?mapgl.Clusterer=v:(window.__mapglPlugins||(window.__mapglPlugins={}),window.__mapglPlugins.Clusterer=v))}])})); |
@@ -1,1 +0,1 @@ | ||
{"typescript":{"Evented":{"documentation":{"contents":["<p>Event emitter</p>\n"],"contentsRaw":"Event emitter","metadata":{}},"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Evented","methods":[{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"emit","signatures":[{"documentation":{"contents":["<p>Calls all event listeners with event type <code>type</code></p>\n"],"contentsRaw":"Calls all event listeners with event type `type`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"emit","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Data transferred to events</p>\n"],"contentsRaw":"Data transferred to events","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"data","type":"M[K]"}],"returnType":"this","type":"(type: K, data?: M[K]) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"off","signatures":[{"documentation":{"contents":["<p>Removes event listener registered with <code>on</code></p>\n"],"contentsRaw":"Removes event listener registered with `on`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"off","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"on","signatures":[{"documentation":{"contents":["<p>Registers event listener</p>\n"],"contentsRaw":"Registers event listener","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"on","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"once","signatures":[{"documentation":{"contents":["<p>Registers event listener which will be called once</p>\n"],"contentsRaw":"Registers event listener which will be called once","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"once","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]}],"properties":[],"accessors":[],"constructorType":{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"fileName":"src/evented.ts","kind":"signature","name":"new Evented","parameters":[],"returnType":"Evented","type":"() => Evented"}]}},"Clusterer":{"documentation":{"contents":["<p>A class that provides markers clustering functionality.</p>\n"],"contentsRaw":"A class that provides markers clustering functionality.","metadata":{}},"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Clusterer","extends":["Evented<ClustererEventTable>"],"methods":[{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"destroy","signatures":[{"documentation":{"contents":["<p>Destroys the clusterer.</p>\n"],"contentsRaw":"Destroys the clusterer.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"destroy","parameters":[],"returnType":"void","type":"() => void"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"emit","inheritedFrom":"Evented.emit","signatures":[{"documentation":{"contents":["<p>Calls all event listeners with event type <code>type</code></p>\n"],"contentsRaw":"Calls all event listeners with event type `type`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"emit","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Data transferred to events</p>\n"],"contentsRaw":"Data transferred to events","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"data","type":"ClustererEventTable[K]"}],"returnType":"this","type":"(type: K, data?: ClustererEventTable[K]) => this"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"getClusterExpansionZoom","signatures":[{"documentation":{"contents":["<p>Returns the zoom at which the cluster expands into markers.</p>\n"],"contentsRaw":"Returns the zoom at which the cluster expands into markers.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"getClusterExpansionZoom","parameters":[{"documentation":{"contents":["<p>Cluster identifier. Can be obtained from cluster mouse events in <code>ClusterTarget</code>.</p>\n"],"contentsRaw":"Cluster identifier. Can be obtained from cluster mouse events in `ClusterTarget`.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"}],"returnType":"any","type":"(clusterId: number) => any"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"load","signatures":[{"documentation":{"contents":["<p>Loads markers to clusterer.</p>\n"],"contentsRaw":"Loads markers to clusterer.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"load","parameters":[{"documentation":{"contents":["<p>An array of markers.</p>\n"],"contentsRaw":"An array of markers.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"input","type":"InputMarker[]"}],"returnType":"void","type":"(input: InputMarker[]) => void"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"off","inheritedFrom":"Evented.off","signatures":[{"documentation":{"contents":["<p>Removes event listener registered with <code>on</code></p>\n"],"contentsRaw":"Removes event listener registered with `on`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"off","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"on","inheritedFrom":"Evented.on","signatures":[{"documentation":{"contents":["<p>Registers event listener</p>\n"],"contentsRaw":"Registers event listener","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"on","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"once","inheritedFrom":"Evented.once","signatures":[{"documentation":{"contents":["<p>Registers event listener which will be called once</p>\n"],"contentsRaw":"Registers event listener which will be called once","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"once","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"resetClusterStyle","signatures":[{"documentation":{"contents":["<p>Resets the cluster style by its ID to to the one set in the options.</p>\n"],"contentsRaw":"Resets the cluster style by its ID to to the one set in the options.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"resetClusterStyle","parameters":[{"documentation":{"contents":["<p>Cluster identifier. The same parameter as in setClusterStyle method.</p>\n"],"contentsRaw":"Cluster identifier. The same parameter as in setClusterStyle method.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"}],"returnType":"void","type":"(clusterId: number) => void"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"setClusterStyle","signatures":[{"documentation":{"contents":["<p>Changes the cluster style by its ID</p>\n"],"contentsRaw":"Changes the cluster style by its ID","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"setClusterStyle","parameters":[{"documentation":{"contents":["<p>Cluster identifier. Can be obtained from cluster mouse events in <code>ClusterTarget</code>.</p>\n"],"contentsRaw":"Cluster identifier. Can be obtained from cluster mouse events in `ClusterTarget`.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"},{"documentation":{"contents":["<p>An object or a function that returns style for the cluster.</p>\n"],"contentsRaw":"An object or a function that returns style for the cluster.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterStyle","type":"(pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle"}],"returnType":"void","type":"(clusterId: number, clusterStyle: (pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle) => void"}]}],"properties":[],"accessors":[],"constructorType":{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});\n```","metadata":{}},"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});\n```","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"new Clusterer","parameters":[{"documentation":{"contents":["<p>The map instance.</p>\n"],"contentsRaw":"The map instance.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"map","type":"mapgl.Map"},{"documentation":{"contents":["<p>Clusterer initialization options.</p>\n"],"contentsRaw":"Clusterer initialization options.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"userOptions","defaultValue":"{}","type":"ClustererOptions"}],"returnType":"Clusterer","type":"(map: mapgl.Map, userOptions?: ClustererOptions) => Clusterer"}]}},"HtmlInputMarker":{"documentation":{"contents":["<p>Marker style for HTML marker</p>\n"],"contentsRaw":"Marker style for HTML marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"HtmlInputMarker","indexSignature":{"documentation":{"contents":["<p>Any specific data.</p>\n"],"contentsRaw":"Any specific data.","metadata":{}},"fileName":"src/types.ts","kind":"signature","name":"__index","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"key","type":"string"}],"returnType":"any","type":"{ [key: string]: any }"},"methods":[],"properties":[{"documentation":{"contents":["<p>The position in pixels of the "tip" of the HTML marker relative to its top-left corner.</p>\n"],"contentsRaw":"The position in pixels of the \"tip\" of the HTML marker relative to its top-left corner.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Geographical coordinates of marker center <code>[longitude, latitude]</code>.</p>\n"],"contentsRaw":"Geographical coordinates of marker center `[longitude, latitude]`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"coordinates","type":"number[]"},{"documentation":{"contents":["<p>HTML content of the HTML marker.</p>\n"],"contentsRaw":"HTML content of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"html","type":"HTMLElement | string"},{"documentation":{"contents":["<p>Maximum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Maximum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Minimum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's <code>true</code>.</p>\n"],"contentsRaw":"Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's `true`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"preventMapInteractions","defaultValue":"true","type":"undefined | false | true"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"html\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"WebglInputMarker":{"documentation":{"contents":["<p>Marker style for MapGL marker.</p>\n"],"contentsRaw":"Marker style for MapGL marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"WebglInputMarker","indexSignature":{"documentation":{"contents":["<p>Any specific data.</p>\n"],"contentsRaw":"Any specific data.","metadata":{}},"fileName":"src/types.ts","kind":"signature","name":"__index","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"key","type":"string"}],"returnType":"any","type":"{ [key: string]: any }"},"methods":[],"properties":[{"documentation":{"contents":["<p>The position of the "tip" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the marker's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.</p>\n"],"contentsRaw":"The position of the \"tip\" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the marker's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Geographical coordinates of marker center <code>[longitude, latitude]</code>.</p>\n"],"contentsRaw":"Geographical coordinates of marker center `[longitude, latitude]`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"coordinates","type":"number[]"},{"documentation":{"contents":["<p>Marker icon anchor in hovered state.</p>\n"],"contentsRaw":"Marker icon anchor in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverAnchor","type":"number[]"},{"documentation":{"contents":["<p>Marker icon URL in hovered state.</p>\n"],"contentsRaw":"Marker icon URL in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverIcon","type":"undefined | string"},{"documentation":{"contents":["<p>Marker icon size <code>[width, height]</code> in pixels in hovered state.</p>\n"],"contentsRaw":"Marker icon size `[width, height]` in pixels in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverSize","type":"number[]"},{"documentation":{"contents":["<p>Marker icon URL.</p>\n"],"contentsRaw":"Marker icon URL.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"undefined | string"},{"documentation":{"contents":["<p>Initialization options of the marker's label.</p>\n"],"contentsRaw":"Initialization options of the marker's label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"label","type":"InputMarkerLabelOptions"},{"documentation":{"contents":["<p>Marker icon size <code>[width, height]</code> in pixels.</p>\n"],"contentsRaw":"Marker icon size `[width, height]` in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"size","type":"number[]"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"undefined | \"webgl\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"InputMarkerLabelOptions":{"documentation":{"contents":["<p>Initialization options of the marker's label.</p>\n"],"contentsRaw":"Initialization options of the marker's label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"InputMarkerLabelOptions","methods":[],"properties":[{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate left and up, while negative values indicate right and down.</p>\n<p>DEPRECATED! Will be removed in the next major release, use the <code>offset</code> option instead.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate left and up, while negative values indicate right and down.\n\nDEPRECATED! Will be removed in the next major release, use the `offset` option instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Text color in hexadecimal RGB (<code>#ff0000</code>) or RGBA (<code>#ff0000ff</code>) format.</p>\n"],"contentsRaw":"Text color in hexadecimal RGB (`#ff0000`) or RGBA (`#ff0000ff`) format.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"color","type":"undefined | string"},{"documentation":{"contents":["<p>Text size.</p>\n"],"contentsRaw":"Text size.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"fontSize","type":"undefined | number"},{"documentation":{"contents":["<p>Color of letters background (when <code>haloRadius</code> is specified). Same format as for <code>color</code>.</p>\n"],"contentsRaw":"Color of letters background (when `haloRadius` is specified). Same format as for `color`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"haloColor","type":"undefined | string"},{"documentation":{"contents":["<p>Use <code>haloRadius</code> to add background behind each letter.</p>\n"],"contentsRaw":"Use `haloRadius` to add background behind each letter.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"haloRadius","type":"undefined | number"},{"documentation":{"contents":["<p>Space between each letter.</p>\n"],"contentsRaw":"Space between each letter.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"letterSpacing","type":"undefined | number"},{"documentation":{"contents":["<p>For multiline label <code>lineHeight</code> specify how far lines between each other.</p>\n"],"contentsRaw":"For multiline label `lineHeight` specify how far lines between each other.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lineHeight","type":"undefined | number"},{"documentation":{"contents":["<p>Maximum display zoom level of the label.</p>\n"],"contentsRaw":"Maximum display zoom level of the label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the label.</p>\n"],"contentsRaw":"Minimum display zoom level of the label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate right and down, while negative values indicate left and up.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate right and down, while negative values indicate left and up.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"offset","type":"number[]"},{"documentation":{"contents":["<p>The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical <code>coordinates</code> respects the absolute <code>offset</code>.</p>\n"],"contentsRaw":"The relative, from 0 to 1 in each dimension, coordinates of the text box \"tip\". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical `coordinates` respects the absolute `offset`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"relativeAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text.</p>\n"],"contentsRaw":"Label's text.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"text","type":"string"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"MarkerTarget":{"documentation":{"contents":["<p>Marker event target.</p>\n"],"contentsRaw":"Marker event target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"MarkerTarget","methods":[],"properties":[{"documentation":{"contents":["<p>The targeted marker.</p>\n"],"contentsRaw":"The targeted marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"data","type":"InputMarker"},{"documentation":{"contents":["<p>Type of the target.</p>\n"],"contentsRaw":"Type of the target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"marker\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"}]},"ClusterTarget":{"documentation":{"contents":["<p>Cluster event target.</p>\n"],"contentsRaw":"Cluster event target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClusterTarget","methods":[],"properties":[{"documentation":{"contents":["<p>Markers contained in the targeted cluster.</p>\n"],"contentsRaw":"Markers contained in the targeted cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"data","type":"InputMarker[]"},{"documentation":{"contents":["<p>Cluster identifier.</p>\n"],"contentsRaw":"Cluster identifier.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","type":"number"},{"documentation":{"contents":["<p>Type of the target.</p>\n"],"contentsRaw":"Type of the target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"cluster\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"}]},"ClustererPointerEvent":{"documentation":{"contents":["<p>The event type for pointer-related clusterer events.</p>\n"],"contentsRaw":"The event type for pointer-related clusterer events.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererPointerEvent","methods":[],"properties":[{"documentation":{"contents":["<p>Geographical coordinates of the event.</p>\n"],"contentsRaw":"Geographical coordinates of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lngLat","type":"number[]"},{"documentation":{"contents":["<p>The original DOM event.</p>\n"],"contentsRaw":"The original DOM event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"originalEvent","type":"MouseEvent | TouchEvent"},{"documentation":{"contents":["<p>Screen coordinates of the event.</p>\n"],"contentsRaw":"Screen coordinates of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"point","type":"number[]"},{"documentation":{"contents":["<p>Target (a marker or a cluster) of the event.</p>\n"],"contentsRaw":"Target (a marker or a cluster) of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"target","type":"MarkerTarget | ClusterTarget"}]},"ClustererOptions":{"documentation":{"contents":["<p>Clusterer initialization options.</p>\n"],"contentsRaw":"Clusterer initialization options.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererOptions","methods":[],"properties":[{"documentation":{"contents":["<p>Style of clusters.\nThis parameter accepts an object or a function.\nWhen given an object, the same style will be applied to all clusters.\nIf you want to customize the style based on the number of markers within the cluster, you can provide a function instead.</p>\n"],"contentsRaw":"Style of clusters.\nThis parameter accepts an object or a function.\nWhen given an object, the same style will be applied to all clusters.\nIf you want to customize the style based on the number of markers within the cluster, you can provide a function instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"clusterStyle","type":"(pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle"},{"documentation":{"contents":["<p>At this zoom level and above, markers will not be clustered.</p>\n"],"contentsRaw":"At this zoom level and above, markers will not be clustered.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"disableClusteringAtZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Clustering radius in pixels.</p>\n"],"contentsRaw":"Clustering radius in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"radius","type":"undefined | number"}]},"ClustererEventTable":{"documentation":{"contents":["<p>The list of events that can be emitted by clusterer.</p>\n"],"contentsRaw":"The list of events that can be emitted by clusterer.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererEventTable","methods":[],"properties":[{"documentation":{"contents":["<p>Emitted when the marker/cluster is clicked.</p>\n"],"contentsRaw":"Emitted when the marker/cluster is clicked.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"click","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user presses a mouse button over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user presses a mouse button over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mousedown","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user moves the pointer over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user moves the pointer over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mousemove","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user moves the pointer away from the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user moves the pointer away from the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseout","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user hovers over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user hovers over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseover","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user releases the mouse button over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user releases the mouse button over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseup","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user lifts the finger off the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user lifts the finger off the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"touchend","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user taps on the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user taps on the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"touchstart","type":"ClustererPointerEvent"}]},"HtmlClusterStyle":{"documentation":{"contents":["<p>Cluster style for HTML Marker</p>\n"],"contentsRaw":"Cluster style for HTML Marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"HtmlClusterStyle","methods":[],"properties":[{"documentation":{"contents":["<p>The position in pixels of the "tip" of the HTML marker relative to its top-left corner.</p>\n"],"contentsRaw":"The position in pixels of the \"tip\" of the HTML marker relative to its top-left corner.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>HTML content of the HTML marker.</p>\n"],"contentsRaw":"HTML content of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"html","type":"HTMLElement | string"},{"documentation":{"contents":["<p>Maximum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Maximum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Minimum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's <code>true</code>.</p>\n"],"contentsRaw":"Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's `true`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"preventMapInteractions","defaultValue":"true","type":"undefined | false | true"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"html\""},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"WebglClusterStyle":{"documentation":{"contents":["<p>Cluster style for MapGL Marker</p>\n"],"contentsRaw":"Cluster style for MapGL Marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"WebglClusterStyle","methods":[],"properties":[{"documentation":{"contents":["<p>The position of the "tip" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the cluster's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.</p>\n"],"contentsRaw":"The position of the \"tip\" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the cluster's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon anchor in hovered state.</p>\n"],"contentsRaw":"Cluster icon anchor in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverAnchor","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon URL in hovered state.</p>\n"],"contentsRaw":"Cluster icon URL in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverIcon","type":"undefined | string"},{"documentation":{"contents":["<p>Cluster icon size <code>[width, height]</code> in hovered state in pixels.</p>\n"],"contentsRaw":"Cluster icon size `[width, height]` in hovered state in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverSize","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon URL.</p>\n"],"contentsRaw":"Cluster icon URL.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"undefined | string"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate left and up, while negative values indicate right and down.</p>\n<p>DEPRECATED! Will be removed in the next major release, use the <code>offset</code> option instead.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate left and up, while negative values indicate right and down.\n\nDEPRECATED! Will be removed in the next major release, use the `offset` option instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text color of a cluster in CSS hexadecimal RGB format (e.g. <code>#ff0000</code>).</p>\n"],"contentsRaw":"Label's text color of a cluster in CSS hexadecimal RGB format (e.g. `#ff0000`).","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelColor","type":"undefined | string"},{"documentation":{"contents":["<p>Label's text font size of a cluster.</p>\n"],"contentsRaw":"Label's text font size of a cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelFontSize","type":"undefined | number"},{"documentation":{"contents":["<p>Label's text background color of a cluster in CSS hexadecimal RGB format (e.g. <code>#ff0000</code>).</p>\n"],"contentsRaw":"Label's text background color of a cluster in CSS hexadecimal RGB format (e.g. `#ff0000`).","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelHaloColor","type":"undefined | string"},{"documentation":{"contents":["<p>Label's text background radius of a cluster.\nThe background is set for each letter of the text.</p>\n"],"contentsRaw":"Label's text background radius of a cluster.\nThe background is set for each letter of the text.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelHaloRadius","type":"undefined | number"},{"documentation":{"contents":["<p>Label's text letter spacing of a cluster.</p>\n"],"contentsRaw":"Label's text letter spacing of a cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelLetterSpacing","type":"undefined | number"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate right and down, while negative values indicate left and up.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate right and down, while negative values indicate left and up.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelOffset","type":"number[]"},{"documentation":{"contents":["<p>The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical <code>coordinates</code> respects the absolute <code>offset</code>.</p>\n"],"contentsRaw":"The relative, from 0 to 1 in each dimension, coordinates of the text box \"tip\". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical `coordinates` respects the absolute `offset`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelRelativeAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text of a cluster. By default, it's the size of the cluster.</p>\n"],"contentsRaw":"Label's text of a cluster. By default, it's the size of the cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelText","type":"undefined | string"},{"documentation":{"contents":["<p>Cluster icon size <code>[width, height]</code> in pixels.</p>\n"],"contentsRaw":"Cluster icon size `[width, height]` in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"size","type":"number[]"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"undefined | \"webgl\""},{"documentation":{"contents":["<p>Draw Order</p>\n"],"contentsRaw":"Draw Order","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"InputMarker":{"documentation":{"contents":["<p>A marker for clustering. Marker can be represented via MapGL marker or HTML marker.</p>\n<p>MapGL markers are more performant, HTML Markers are more customizable.</p>\n"],"contentsRaw":"A marker for clustering. Marker can be represented via MapGL marker or HTML marker.\n\nMapGL markers are more performant, HTML Markers are more customizable.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"InputMarker","type":"WebglInputMarker | HtmlInputMarker"},"ClusterStyle":{"documentation":{"contents":["<p>An object describing a cluster style. Cluster can be represented via MapGL Marker or HTML Marker.</p>\n<p>MapGL markers are more performant, HTML Markers are more customizable.</p>\n"],"contentsRaw":"An object describing a cluster style. Cluster can be represented via MapGL Marker or HTML Marker.\n\nMapGL markers are more performant, HTML Markers are more customizable.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"ClusterStyle","type":"WebglClusterStyle | HtmlClusterStyle"}}} | ||
{"typescript":{"Evented":{"documentation":{"contents":["<p>Event emitter</p>\n"],"contentsRaw":"Event emitter","metadata":{}},"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Evented","methods":[{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"emit","signatures":[{"documentation":{"contents":["<p>Calls all event listeners with event type <code>type</code></p>\n"],"contentsRaw":"Calls all event listeners with event type `type`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"emit","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Data transferred to events</p>\n"],"contentsRaw":"Data transferred to events","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"data","type":"M[K]"}],"returnType":"this","type":"(type: K, data?: M[K]) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"off","signatures":[{"documentation":{"contents":["<p>Removes event listener registered with <code>on</code></p>\n"],"contentsRaw":"Removes event listener registered with `on`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"off","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"on","signatures":[{"documentation":{"contents":["<p>Registers event listener</p>\n"],"contentsRaw":"Registers event listener","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"on","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"once","signatures":[{"documentation":{"contents":["<p>Registers event listener which will be called once</p>\n"],"contentsRaw":"Registers event listener which will be called once","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"once","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: M[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: M[K]) => void) => this"}]}],"properties":[],"accessors":[],"constructorType":{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"fileName":"src/evented.ts","kind":"signature","name":"new Evented","parameters":[],"returnType":"Evented","type":"() => Evented"}]}},"Clusterer":{"documentation":{"contents":["<p>A class that provides markers clustering functionality.</p>\n"],"contentsRaw":"A class that provides markers clustering functionality.","metadata":{}},"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Clusterer","extends":["Evented<ClustererEventTable>"],"methods":[{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"destroy","signatures":[{"documentation":{"contents":["<p>Destroys the clusterer.</p>\n"],"contentsRaw":"Destroys the clusterer.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"destroy","parameters":[],"returnType":"void","type":"() => void"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"emit","inheritedFrom":"Evented.emit","signatures":[{"documentation":{"contents":["<p>Calls all event listeners with event type <code>type</code></p>\n"],"contentsRaw":"Calls all event listeners with event type `type`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"emit","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Data transferred to events</p>\n"],"contentsRaw":"Data transferred to events","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"data","type":"ClustererEventTable[K]"}],"returnType":"this","type":"(type: K, data?: ClustererEventTable[K]) => this"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"getClusterExpansionZoom","signatures":[{"documentation":{"contents":["<p>Returns the zoom at which the cluster expands into markers.</p>\n"],"contentsRaw":"Returns the zoom at which the cluster expands into markers.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"getClusterExpansionZoom","parameters":[{"documentation":{"contents":["<p>Cluster identifier. Can be obtained from cluster mouse events in <code>ClusterTarget</code>.</p>\n"],"contentsRaw":"Cluster identifier. Can be obtained from cluster mouse events in `ClusterTarget`.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"}],"returnType":"number","type":"(clusterId: number) => number"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"load","signatures":[{"documentation":{"contents":["<p>Loads markers to clusterer.</p>\n"],"contentsRaw":"Loads markers to clusterer.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"load","parameters":[{"documentation":{"contents":["<p>An array of markers.</p>\n"],"contentsRaw":"An array of markers.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"input","type":"InputMarker[]"}],"returnType":"void","type":"(input: InputMarker[]) => void"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"off","inheritedFrom":"Evented.off","signatures":[{"documentation":{"contents":["<p>Removes event listener registered with <code>on</code></p>\n"],"contentsRaw":"Removes event listener registered with `on`","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"off","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"on","inheritedFrom":"Evented.on","signatures":[{"documentation":{"contents":["<p>Registers event listener</p>\n"],"contentsRaw":"Registers event listener","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"on","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/evented.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"once","inheritedFrom":"Evented.once","signatures":[{"documentation":{"contents":["<p>Registers event listener which will be called once</p>\n"],"contentsRaw":"Registers event listener which will be called once","metadata":{}},"fileName":"src/evented.ts","kind":"signature","name":"once","parameters":[{"documentation":{"contents":["<p>Event type</p>\n"],"contentsRaw":"Event type","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"K"},{"documentation":{"contents":["<p>Event handler</p>\n"],"contentsRaw":"Event handler","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"listener","type":"(ev: ClustererEventTable[K]) => void"}],"returnType":"this","type":"(type: K, listener: (ev: ClustererEventTable[K]) => void) => this"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"resetClusterStyle","signatures":[{"documentation":{"contents":["<p>Resets the cluster style by its ID to to the one set in the options.</p>\n"],"contentsRaw":"Resets the cluster style by its ID to to the one set in the options.","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"resetClusterStyle","parameters":[{"documentation":{"contents":["<p>Cluster identifier. The same parameter as in setClusterStyle method.</p>\n"],"contentsRaw":"Cluster identifier. The same parameter as in setClusterStyle method.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"}],"returnType":"void","type":"(clusterId: number) => void"}]},{"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"setClusterStyle","signatures":[{"documentation":{"contents":["<p>Changes the cluster style by its ID</p>\n"],"contentsRaw":"Changes the cluster style by its ID","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"setClusterStyle","parameters":[{"documentation":{"contents":["<p>Cluster identifier. Can be obtained from cluster mouse events in <code>ClusterTarget</code>.</p>\n"],"contentsRaw":"Cluster identifier. Can be obtained from cluster mouse events in `ClusterTarget`.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterId","type":"number"},{"documentation":{"contents":["<p>An object or a function that returns style for the cluster.</p>\n"],"contentsRaw":"An object or a function that returns style for the cluster.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"clusterStyle","type":"(pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle"}],"returnType":"void","type":"(clusterId: number, clusterStyle: (pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle) => void"}]}],"properties":[],"accessors":[],"constructorType":{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});\n```","metadata":{}},"fileName":"src/clusterer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst clusterer = new mapgl.Clusterer(map, {\n radius: 60\n});\n```","metadata":{}},"fileName":"src/clusterer.ts","kind":"signature","name":"new Clusterer","parameters":[{"documentation":{"contents":["<p>The map instance.</p>\n"],"contentsRaw":"The map instance.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"map","type":"mapgl.Map"},{"documentation":{"contents":["<p>Clusterer initialization options.</p>\n"],"contentsRaw":"Clusterer initialization options.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"userOptions","defaultValue":"{}","type":"ClustererOptions"}],"returnType":"Clusterer","type":"(map: mapgl.Map, userOptions?: ClustererOptions) => Clusterer"}]}},"HtmlInputMarker":{"documentation":{"contents":["<p>Marker style for HTML marker</p>\n"],"contentsRaw":"Marker style for HTML marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"HtmlInputMarker","indexSignature":{"documentation":{"contents":["<p>Any specific data.</p>\n"],"contentsRaw":"Any specific data.","metadata":{}},"fileName":"src/types.ts","kind":"signature","name":"__index","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"key","type":"string"}],"returnType":"any","type":"{ [key: string]: any }"},"methods":[],"properties":[{"documentation":{"contents":["<p>The position in pixels of the "tip" of the HTML marker relative to its top-left corner.</p>\n"],"contentsRaw":"The position in pixels of the \"tip\" of the HTML marker relative to its top-left corner.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Geographical coordinates of marker center <code>[longitude, latitude]</code>.</p>\n"],"contentsRaw":"Geographical coordinates of marker center `[longitude, latitude]`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"coordinates","type":"number[]"},{"documentation":{"contents":["<p>HTML content of the HTML marker.</p>\n"],"contentsRaw":"HTML content of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"html","type":"HTMLElement | string"},{"documentation":{"contents":["<p>Maximum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Maximum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Minimum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's <code>true</code>.</p>\n"],"contentsRaw":"Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's `true`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"preventMapInteractions","defaultValue":"true","type":"undefined | false | true"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"html\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"WebglInputMarker":{"documentation":{"contents":["<p>Marker style for MapGL marker.</p>\n"],"contentsRaw":"Marker style for MapGL marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"WebglInputMarker","indexSignature":{"documentation":{"contents":["<p>Any specific data.</p>\n"],"contentsRaw":"Any specific data.","metadata":{}},"fileName":"src/types.ts","kind":"signature","name":"__index","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"key","type":"string"}],"returnType":"any","type":"{ [key: string]: any }"},"methods":[],"properties":[{"documentation":{"contents":["<p>The position of the "tip" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the marker's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.</p>\n"],"contentsRaw":"The position of the \"tip\" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the marker's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Geographical coordinates of marker center <code>[longitude, latitude]</code>.</p>\n"],"contentsRaw":"Geographical coordinates of marker center `[longitude, latitude]`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"coordinates","type":"number[]"},{"documentation":{"contents":["<p>Marker icon anchor in hovered state.</p>\n"],"contentsRaw":"Marker icon anchor in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverAnchor","type":"number[]"},{"documentation":{"contents":["<p>Marker icon URL in hovered state.</p>\n"],"contentsRaw":"Marker icon URL in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverIcon","type":"undefined | string"},{"documentation":{"contents":["<p>Marker icon size <code>[width, height]</code> in pixels in hovered state.</p>\n"],"contentsRaw":"Marker icon size `[width, height]` in pixels in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverSize","type":"number[]"},{"documentation":{"contents":["<p>Marker icon URL.</p>\n"],"contentsRaw":"Marker icon URL.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"undefined | string"},{"documentation":{"contents":["<p>Initialization options of the marker's label.</p>\n"],"contentsRaw":"Initialization options of the marker's label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"label","type":"InputMarkerLabelOptions"},{"documentation":{"contents":["<p>Marker icon size <code>[width, height]</code> in pixels.</p>\n"],"contentsRaw":"Marker icon size `[width, height]` in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"size","type":"number[]"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"undefined | \"webgl\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"InputMarkerLabelOptions":{"documentation":{"contents":["<p>Initialization options of the marker's label.</p>\n"],"contentsRaw":"Initialization options of the marker's label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"InputMarkerLabelOptions","methods":[],"properties":[{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate left and up, while negative values indicate right and down.</p>\n<p>DEPRECATED! Will be removed in the next major release, use the <code>offset</code> option instead.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate left and up, while negative values indicate right and down.\n\nDEPRECATED! Will be removed in the next major release, use the `offset` option instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Text color in hexadecimal RGB (<code>#ff0000</code>) or RGBA (<code>#ff0000ff</code>) format.</p>\n"],"contentsRaw":"Text color in hexadecimal RGB (`#ff0000`) or RGBA (`#ff0000ff`) format.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"color","type":"undefined | string"},{"documentation":{"contents":["<p>Text size.</p>\n"],"contentsRaw":"Text size.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"fontSize","type":"undefined | number"},{"documentation":{"contents":["<p>Color of letters background (when <code>haloRadius</code> is specified). Same format as for <code>color</code>.</p>\n"],"contentsRaw":"Color of letters background (when `haloRadius` is specified). Same format as for `color`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"haloColor","type":"undefined | string"},{"documentation":{"contents":["<p>Use <code>haloRadius</code> to add background behind each letter.</p>\n"],"contentsRaw":"Use `haloRadius` to add background behind each letter.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"haloRadius","type":"undefined | number"},{"documentation":{"contents":["<p>Space between each letter.</p>\n"],"contentsRaw":"Space between each letter.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"letterSpacing","type":"undefined | number"},{"documentation":{"contents":["<p>For multiline label <code>lineHeight</code> specify how far lines between each other.</p>\n"],"contentsRaw":"For multiline label `lineHeight` specify how far lines between each other.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lineHeight","type":"undefined | number"},{"documentation":{"contents":["<p>Maximum display zoom level of the label.</p>\n"],"contentsRaw":"Maximum display zoom level of the label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the label.</p>\n"],"contentsRaw":"Minimum display zoom level of the label.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate right and down, while negative values indicate left and up.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate right and down, while negative values indicate left and up.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"offset","type":"number[]"},{"documentation":{"contents":["<p>The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical <code>coordinates</code> respects the absolute <code>offset</code>.</p>\n"],"contentsRaw":"The relative, from 0 to 1 in each dimension, coordinates of the text box \"tip\". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical `coordinates` respects the absolute `offset`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"relativeAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text.</p>\n"],"contentsRaw":"Label's text.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"text","type":"string"},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"MarkerTarget":{"documentation":{"contents":["<p>Marker event target.</p>\n"],"contentsRaw":"Marker event target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"MarkerTarget","methods":[],"properties":[{"documentation":{"contents":["<p>The targeted marker.</p>\n"],"contentsRaw":"The targeted marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"data","type":"InputMarker"},{"documentation":{"contents":["<p>Type of the target.</p>\n"],"contentsRaw":"Type of the target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"marker\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"}]},"ClusterTarget":{"documentation":{"contents":["<p>Cluster event target.</p>\n"],"contentsRaw":"Cluster event target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClusterTarget","methods":[],"properties":[{"documentation":{"contents":["<p>Markers contained in the targeted cluster.</p>\n"],"contentsRaw":"Markers contained in the targeted cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"data","type":"InputMarker[]"},{"documentation":{"contents":["<p>Cluster identifier.</p>\n"],"contentsRaw":"Cluster identifier.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","type":"number"},{"documentation":{"contents":["<p>Type of the target.</p>\n"],"contentsRaw":"Type of the target.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"cluster\""},{"documentation":{"contents":["<p>User specific data.</p>\n"],"contentsRaw":"User specific data.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"userData","type":"any"}]},"ClustererPointerEvent":{"documentation":{"contents":["<p>The event type for pointer-related clusterer events.</p>\n"],"contentsRaw":"The event type for pointer-related clusterer events.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererPointerEvent","methods":[],"properties":[{"documentation":{"contents":["<p>Geographical coordinates of the event.</p>\n"],"contentsRaw":"Geographical coordinates of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lngLat","type":"number[]"},{"documentation":{"contents":["<p>The original DOM event.</p>\n"],"contentsRaw":"The original DOM event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"originalEvent","type":"MouseEvent | TouchEvent"},{"documentation":{"contents":["<p>Screen coordinates of the event.</p>\n"],"contentsRaw":"Screen coordinates of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"point","type":"number[]"},{"documentation":{"contents":["<p>Target (a marker or a cluster) of the event.</p>\n"],"contentsRaw":"Target (a marker or a cluster) of the event.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"target","type":"MarkerTarget | ClusterTarget"}]},"ClustererOptions":{"documentation":{"contents":["<p>Clusterer initialization options.</p>\n"],"contentsRaw":"Clusterer initialization options.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererOptions","methods":[],"properties":[{"documentation":{"contents":["<p>Style of clusters.\nThis parameter accepts an object or a function.\nWhen given an object, the same style will be applied to all clusters.\nIf you want to customize the style based on the number of markers within the cluster, you can provide a function instead.</p>\n"],"contentsRaw":"Style of clusters.\nThis parameter accepts an object or a function.\nWhen given an object, the same style will be applied to all clusters.\nIf you want to customize the style based on the number of markers within the cluster, you can provide a function instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"clusterStyle","type":"(pointsCount: number, target: ClusterTarget) => ClusterStyle | ClusterStyle"},{"documentation":{"contents":["<p>At this zoom level and above, markers will not be clustered.</p>\n"],"contentsRaw":"At this zoom level and above, markers will not be clustered.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"disableClusteringAtZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Clustering radius in pixels.</p>\n"],"contentsRaw":"Clustering radius in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"radius","type":"undefined | number"}]},"ClustererEventTable":{"documentation":{"contents":["<p>The list of events that can be emitted by clusterer.</p>\n"],"contentsRaw":"The list of events that can be emitted by clusterer.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ClustererEventTable","methods":[],"properties":[{"documentation":{"contents":["<p>Emitted when the marker/cluster is clicked.</p>\n"],"contentsRaw":"Emitted when the marker/cluster is clicked.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"click","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user presses a mouse button over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user presses a mouse button over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mousedown","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user moves the pointer over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user moves the pointer over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mousemove","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user moves the pointer away from the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user moves the pointer away from the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseout","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user hovers over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user hovers over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseover","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user releases the mouse button over the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user releases the mouse button over the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"mouseup","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user lifts the finger off the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user lifts the finger off the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"touchend","type":"ClustererPointerEvent"},{"documentation":{"contents":["<p>Emitted when the user taps on the marker/cluster.</p>\n"],"contentsRaw":"Emitted when the user taps on the marker/cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"touchstart","type":"ClustererPointerEvent"}]},"HtmlClusterStyle":{"documentation":{"contents":["<p>Cluster style for HTML Marker</p>\n"],"contentsRaw":"Cluster style for HTML Marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"HtmlClusterStyle","methods":[],"properties":[{"documentation":{"contents":["<p>The position in pixels of the "tip" of the HTML marker relative to its top-left corner.</p>\n"],"contentsRaw":"The position in pixels of the \"tip\" of the HTML marker relative to its top-left corner.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>HTML content of the HTML marker.</p>\n"],"contentsRaw":"HTML content of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"html","type":"HTMLElement | string"},{"documentation":{"contents":["<p>Maximum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Maximum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maxZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Minimum display zoom level of the HTML marker.</p>\n"],"contentsRaw":"Minimum display zoom level of the HTML marker.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"minZoom","type":"undefined | number"},{"documentation":{"contents":["<p>Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's <code>true</code>.</p>\n"],"contentsRaw":"Capture events if set, otherwise events will passed to the map. Use this setting if you want to\ndisable map zoom/scroll over html marker. By default it's `true`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"preventMapInteractions","defaultValue":"true","type":"undefined | false | true"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"html\""},{"documentation":{"contents":["<p>Draw order.</p>\n"],"contentsRaw":"Draw order.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"WebglClusterStyle":{"documentation":{"contents":["<p>Cluster style for MapGL Marker</p>\n"],"contentsRaw":"Cluster style for MapGL Marker","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"WebglClusterStyle","methods":[],"properties":[{"documentation":{"contents":["<p>The position of the "tip" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the cluster's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.</p>\n"],"contentsRaw":"The position of the \"tip\" of the icon (relative to its top left corner).\nThe icon will be aligned so that this point is at the cluster's geographical location.\nCentered by default if anchor is not specified and custom icon is provided.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"anchor","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon anchor in hovered state.</p>\n"],"contentsRaw":"Cluster icon anchor in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverAnchor","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon URL in hovered state.</p>\n"],"contentsRaw":"Cluster icon URL in hovered state.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverIcon","type":"undefined | string"},{"documentation":{"contents":["<p>Cluster icon size <code>[width, height]</code> in hovered state in pixels.</p>\n"],"contentsRaw":"Cluster icon size `[width, height]` in hovered state in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoverSize","type":"number[]"},{"documentation":{"contents":["<p>Cluster icon URL.</p>\n"],"contentsRaw":"Cluster icon URL.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"undefined | string"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate left and up, while negative values indicate right and down.</p>\n<p>DEPRECATED! Will be removed in the next major release, use the <code>offset</code> option instead.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate left and up, while negative values indicate right and down.\n\nDEPRECATED! Will be removed in the next major release, use the `offset` option instead.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text color of a cluster in CSS hexadecimal RGB format (e.g. <code>#ff0000</code>).</p>\n"],"contentsRaw":"Label's text color of a cluster in CSS hexadecimal RGB format (e.g. `#ff0000`).","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelColor","type":"undefined | string"},{"documentation":{"contents":["<p>Label's text font size of a cluster.</p>\n"],"contentsRaw":"Label's text font size of a cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelFontSize","type":"undefined | number"},{"documentation":{"contents":["<p>Label's text background color of a cluster in CSS hexadecimal RGB format (e.g. <code>#ff0000</code>).</p>\n"],"contentsRaw":"Label's text background color of a cluster in CSS hexadecimal RGB format (e.g. `#ff0000`).","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelHaloColor","type":"undefined | string"},{"documentation":{"contents":["<p>Label's text background radius of a cluster.\nThe background is set for each letter of the text.</p>\n"],"contentsRaw":"Label's text background radius of a cluster.\nThe background is set for each letter of the text.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelHaloRadius","type":"undefined | number"},{"documentation":{"contents":["<p>Label's text letter spacing of a cluster.</p>\n"],"contentsRaw":"Label's text letter spacing of a cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelLetterSpacing","type":"undefined | number"},{"documentation":{"contents":["<p>The offset distance of text box from its <code>relativeAnchor</code>.\nPositive values indicate right and down, while negative values indicate left and up.</p>\n"],"contentsRaw":"The offset distance of text box from its `relativeAnchor`.\nPositive values indicate right and down, while negative values indicate left and up.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelOffset","type":"number[]"},{"documentation":{"contents":["<p>The relative, from 0 to 1 in each dimension, coordinates of the text box "tip". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical <code>coordinates</code> respects the absolute <code>offset</code>.</p>\n"],"contentsRaw":"The relative, from 0 to 1 in each dimension, coordinates of the text box \"tip\". relative to its top left corner, for example:\n[0, 0] value is the top left corner, [0.5, 0.5] — center point, and [1, 1] is the bottom right corner of the box.\nThe label will be placed so that this point is at geographical `coordinates` respects the absolute `offset`.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelRelativeAnchor","type":"number[]"},{"documentation":{"contents":["<p>Label's text of a cluster. By default, it's the size of the cluster.</p>\n"],"contentsRaw":"Label's text of a cluster. By default, it's the size of the cluster.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"labelText","type":"undefined | string"},{"documentation":{"contents":["<p>Cluster icon size <code>[width, height]</code> in pixels.</p>\n"],"contentsRaw":"Cluster icon size `[width, height]` in pixels.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"size","type":"number[]"},{"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"undefined | \"webgl\""},{"documentation":{"contents":["<p>Draw Order</p>\n"],"contentsRaw":"Draw Order","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"zIndex","type":"undefined | number"}]},"InputMarker":{"documentation":{"contents":["<p>A marker for clustering. Marker can be represented via MapGL marker or HTML marker.</p>\n<p>MapGL markers are more performant, HTML Markers are more customizable.</p>\n"],"contentsRaw":"A marker for clustering. Marker can be represented via MapGL marker or HTML marker.\n\nMapGL markers are more performant, HTML Markers are more customizable.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"InputMarker","type":"WebglInputMarker | HtmlInputMarker"},"ClusterStyle":{"documentation":{"contents":["<p>An object describing a cluster style. Cluster can be represented via MapGL Marker or HTML Marker.</p>\n<p>MapGL markers are more performant, HTML Markers are more customizable.</p>\n"],"contentsRaw":"An object describing a cluster style. Cluster can be represented via MapGL Marker or HTML Marker.\n\nMapGL markers are more performant, HTML Markers are more customizable.","metadata":{}},"fileName":"src/types.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"ClusterStyle","type":"WebglClusterStyle | HtmlClusterStyle"}}} |
@@ -9,3 +9,3 @@ import Supercluster from 'supercluster'; | ||
*/ | ||
export declare type InputMarker = WebglInputMarker | HtmlInputMarker; | ||
export type InputMarker = WebglInputMarker | HtmlInputMarker; | ||
/** | ||
@@ -132,3 +132,3 @@ * Marker style for HTML marker | ||
*/ | ||
export declare type Cluster = WebGLCluster | HtmlCluster; | ||
export type Cluster = WebGLCluster | HtmlCluster; | ||
/** | ||
@@ -305,3 +305,3 @@ * @hidden | ||
*/ | ||
export declare type PointFeature = Supercluster.PointFeature<MarkerGeoJsonProperties>; | ||
export type PointFeature = Supercluster.PointFeature<MarkerGeoJsonProperties>; | ||
/** | ||
@@ -311,3 +311,3 @@ * @hidden | ||
*/ | ||
export declare type ClusterFeature = Supercluster.ClusterFeature<Supercluster.AnyProps>; | ||
export type ClusterFeature = Supercluster.ClusterFeature<Supercluster.AnyProps>; | ||
/** | ||
@@ -355,3 +355,3 @@ * The list of events that can be emitted by clusterer. | ||
*/ | ||
export declare type ClusterStyle = WebglClusterStyle | HtmlClusterStyle; | ||
export type ClusterStyle = WebglClusterStyle | HtmlClusterStyle; | ||
/** | ||
@@ -358,0 +358,0 @@ * Cluster style for HTML Marker |
{ | ||
"name": "@2gis/mapgl-clusterer", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Marker clustering plugin for Mapgl", | ||
@@ -18,10 +18,8 @@ "main": "dist/clustering.js", | ||
"prettier:write": "prettier --write \"./**/*.{ts,tsx,js,json,html,css,md}\"", | ||
"lint": "tslint -p tsconfig.json 'src/**/*.ts' 'demo/**/*.ts'", | ||
"lint": "eslint 'src/**/*.ts' 'demo/**/*.ts'", | ||
"lint:fix": "eslint --fix 'src/**/*.ts' 'demo/**/*.ts'", | ||
"test": "mocha --config test/.mocharc.json", | ||
"screenshot:test": "jest test/screenshots", | ||
"screenshot:test:update": "jest --updateSnapshot test/screenshots" | ||
"screenshot:test": "npm run build:js-demo && npm run build:assets && jest --forceExit --projects test/screenshots --colors", | ||
"screenshot:test:update": "npm run build:js-demo && npm run build:assets && jest --updateSnapshot test/screenshots" | ||
}, | ||
"jest": { | ||
"preset": "./test/screenshots/jestPresets.js" | ||
}, | ||
"license": "BSD-2-Clause", | ||
@@ -32,3 +30,3 @@ "files": [ | ||
"devDependencies": { | ||
"@2gis/mapgl": "^1.14.0", | ||
"@2gis/mapgl": "^1.33.0", | ||
"@documentalist/compiler": "^2.7.0", | ||
@@ -43,15 +41,25 @@ "@types/dat.gui": "^0.7.5", | ||
"@types/puppeteer": "^5.4.6", | ||
"@typescript-eslint/eslint-plugin": "^5.42.1", | ||
"@typescript-eslint/parser": "^5.42.1", | ||
"@types/sinon": "^9.0.0", | ||
"dat.gui": "^0.7.7", | ||
"eslint": "^8.27.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.6.2", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"eslint-plugin-prettier": "^5.2.1", | ||
"fork-ts-checker-webpack-plugin": "^4.0.5", | ||
"fs-extra": "^9.0.1", | ||
"geojson": "^0.5.0", | ||
"http-server": "^14.1.1", | ||
"jest": "^28.1.2", | ||
"jest-dev-server": "^6.0.3", | ||
"jest-image-snapshot": "^5.1.0", | ||
"jest-puppeteer": "^6.1.1", | ||
"mocha": "^7.1.1", | ||
"prettier": "^2.0.5", | ||
"prettier": "^3.3.3", | ||
"puppeteer": "^15.3.1", | ||
"sinon": "^9.0.1", | ||
"supercluster": "^7.0.0", | ||
"supercluster": "7.1.5", | ||
"ts-jest": "^28.0.5", | ||
@@ -61,4 +69,2 @@ "ts-loader": "^8.2.0", | ||
"tslib": "^2.4.0", | ||
"tslint": "^6.0.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typescript": "^4.7.4", | ||
@@ -70,4 +76,11 @@ "webpack": "^4.41.6", | ||
"dependencies": { | ||
"@types/supercluster": "^5.0.2" | ||
"@types/supercluster": "7.1.3" | ||
}, | ||
"engines": { | ||
"node": "20.18.0" | ||
}, | ||
"volta": { | ||
"node": "20.18.0", | ||
"npm": "9.6.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
104492
0.96%41
24.24%2
100%+ Added
- Removed
Updated