Installation
npm install --save @types/leaflet.markercluster.layersupport
Summary
This package contains type definitions for leaflet.markercluster.layersupport (https://github.com/ghybs/Leaflet.MarkerCluster.LayerSupport).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.markercluster.layersupport.
index.d.ts
import * as L from "leaflet";
import "leaflet.markercluster";
declare module "leaflet" {
namespace MarkerClusterGroup {
interface LayerSupport extends MarkerClusterGroup {
/**
* Stamps the passed layers as being part of this group, but without adding
* them to the map right now.
*/
checkIn(layers: Layer | Layer[]): this;
/**
* Un-stamps the passed layers from being part of this group. It has to
* remove them from map (if they are) since they will no longer cluster.
*/
checkOut(layers: Layer | Layer[]): this;
}
}
interface MarkerClusterGroupLayerSupportOptions extends MarkerClusterGroupOptions {
/**
* Buffer single addLayer and removeLayer requests for efficiency.
*/
singleAddRemoveBufferDuration: number;
}
namespace markerClusterGroup {
/**
* Create a layer support marker cluster group, optionally given marker cluster group options.
*/
function layerSupport(options?: MarkerClusterGroupLayerSupportOptions): MarkerClusterGroup.LayerSupport;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet, @types/leaflet.markercluster
Credits
These definitions were written by AsamK.