0.6.4 • Published 7 months ago

@types/leaflet-groupedlayercontrol v0.6.4

Weekly downloads
68
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/leaflet-groupedlayercontrol

Summary

This package contains type definitions for leaflet-groupedlayercontrol (https://github.com/ismyrnow/leaflet-groupedlayercontrol).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-groupedlayercontrol.

index.d.ts

// Type definitions for leaflet-groupedlayercontrol 0.6
// Project: https://github.com/ismyrnow/leaflet-groupedlayercontrol
// Definitions by: Ryan Conklin <https://github.com/ryanc16>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as L from 'leaflet';

declare module 'leaflet' {
    namespace Control {
        class GroupedLayers extends Control {
            constructor(baseLayers: { [index: string]: Layer }, groupedOverlays: { [index: string]: { [index: string]: LayerGroup } }, options: GroupedLayersOptions);
        }
    }

    namespace control {
        function groupedLayers(baseLayers: { [index: string]: Layer }, groupedOverlays: { [index: string]: { [index: string]: LayerGroup } }, options: GroupedLayersOptions): Control;
    }

    interface GroupedLayersOptions extends ControlOptions {
        /** Default: true */
        collapsed?: boolean | undefined;
        /** Default: true */
        autoZIndex?: boolean | undefined;
        exclusiveGroups?: string[] | undefined;
        /** Default: false */
        groupCheckboxes?: boolean | undefined;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:23:35 GMT
  • Dependencies: @types/leaflet
  • Global values: none

Credits

These definitions were written by Ryan Conklin.

0.6.3

7 months ago

0.6.2

9 months ago

0.6.4

7 months ago

0.6.1

3 years ago

0.6.0

5 years ago