interface LayerSwitcherOptions {
    advancedTools?: any[];
    allowEdit?: boolean;
    allowGrayScale?: boolean;
    allowTooltips?: boolean;
    collapsed?: boolean;
    counter?: boolean;
    draggable?: boolean;
    gutter?: boolean;
    id?: string;
    panel?: boolean;
    position?: string;
}

Properties

advancedTools?: any[]

Liste d’outils personnalisés à afficher pour chaque couche.

allowEdit?: boolean

Affiche le bouton d’édition pour les couches éditables (vecteur).

allowGrayScale?: boolean

Affiche le bouton N&B (niveaux de gris) pour les couches compatibles.

allowTooltips?: boolean

Active l’affichage des info-bulles (tooltips) sur les éléments du widget.

collapsed?: boolean

Définit si le widget est replié au chargement.

counter?: boolean

Affiche un compteur du nombre de couches visibles.

draggable?: boolean

Permet de déplacer le panneau du LayerSwitcher.

gutter?: boolean

Ajoute ou retire l’espace autour du panneau.

id?: string

Identifiant unique du widget.

panel?: boolean

Affiche un en-tête (header) dans le panneau du LayerSwitcher.

position?: string

Position CSS du widget sur la carte.