mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* adding leaflet-groupedlayercontrol types * Adding typescript version information to index.d.ts file. * Updating formatting in types * Adding dom to libs in tsconfig * Updating formatting issues in index.d.ts file
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
// 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;
|
|
/** Default: true */
|
|
autoZIndex?: boolean;
|
|
exclusiveGroups?: string[];
|
|
/** Default: false */
|
|
groupCheckboxes?: boolean;
|
|
}
|
|
}
|