UNPKG

leaflet-styleeditor-minified

Version:

Edit the style of features drawn within Leaflet.

28 lines (27 loc) 948 B
import { Map } from "leaflet"; import { StyleEditorImpl } from "./StyleEditorImpl"; import { StyleEditorControlOptions, StyleEditorOptions } from './options'; /** * StyleEditorControl creates a { L.Control } * which enables the user to enable and disable Leaflet.StyleEditor */ export declare class StyleEditorControl extends L.Control { options: StyleEditorControlOptions; private styleEditor; private styleEditorClassOptions; constructor(styleEditorOptions: StyleEditorOptions); constructor(options: StyleEditorControlOptions, styleEditor: StyleEditorImpl); private isEnabled; private cancelUI; /** * Create the Control element and its HTMLElements * @param map the map where the control should be added to */ onAdd(map: Map): HTMLElement; createUI(): HTMLElement; toggle(): void; enable(): void; disable(): void; private showCancelButton; private hideCancelButton; }