export default Layer; /** * @classdesc * * MapBox filter management * * @constructor * @alias ol.style.editor.Layer * @param {Object} options - options for function call. * @example * var layers = new Layer ({ * target : ..., * position : 1, // identifiant de position (unique !) * tools : { * "visibility" : true, // afficher l'icone de visibilité * "icon" : { * "image" : true, // afficher l'icone "oeil" (defaut) ou une checkbox * "anchor" : "start" | "end" // afficher l'icone au debut ou à la fin (defaut) * }, * "type" : true, // afficher l'icone du type de geometrie * "pin" : true, // afficher l'icone de puce * "remove" : false, // TODO afficher l'icone de suppression * "clone" : false // TODO afficher l'icone de duplication * }, * obj : { * "id": "ocs - vegetation", // MANDATORY * "type": "fill", // OPTIONAL * "source": "pyramide_proto", // OPTIONAL * "source-layer": "ocs_vegetation_surf" // OPTIONAL * } * }); * layers.addLegend(oLegend); * layers.slotLegend(); * layers.addStyle(oStyle); * layers.addFilter(oFilter); * layers.add(); * layers.active(false); * layers.visibility(false); * layers.display(false); * layers.collapse(); * EventBus.addEventListener("editor:layer:onclickvisibility", function (e) { * // e.target.data : options ! * // e.target.editorID : id or null * }, this); */ declare class Layer { constructor(options: any); options: any; /** * Initialize component * (called by constructor) * * @private */ private _initialize; id: any; bSlotLegend: boolean | undefined; oFilter: Filter | null | undefined; oStyle: Style | null | undefined; oLegend: Legend | null | undefined; container: HTMLDivElement | null | undefined; DomVisibility: any; DomToggle: HTMLLabelElement | null | undefined; name: { target: string; container: string; containerlegend: string; containertitle: string; imagelabelinput: string; imagelabel: string; typeimg: string; titleinput: string; titlelabel: string; containertools: string; visibilityinput: string; visibilitylabel: string; visibilityinputdisable: string; visibilitylabeldisable: string; } | undefined; /** * Graphical rendering of the component * (called by constructor) * * @private * @example * // >> Titre 1 |OOO| <- menu tools : visibility, clone, remove * // >> Titre 2 |OXX| <- affichage configurable (cf. options.tools) * // Event : clic sur le titre -> ex. affiche le menu des styles / filtres * // : clic visibility, clone, remove * // DOM : *