@types/leaflet.markercluster.layersupport
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Credits

These definitions were written by AsamK.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.markercluster.layersupport

Weekly Downloads

100

Version

1.0.5

License

MIT

Unpacked Size

5.34 kB

Total Files

5

Last publish

Collaborators

  • types