Mapbox Themes management

ol.style.editor.Theme

options for function call.

var theme = new Themes ({
"target": "",
"tools": {
"thumbnails": true,
"button" : {
"visible" : true,
"type" : "radio" (par defaut) | "checkbox"
}
},
"obj": {
"themesSummary": "", // Titre du composant (non graphique !)
"themes": [{
"thumbnail": "data/images/layer0.png",
"name": "standard0",
"url": "data/styles/layer0.json",
"description": "",
"selected" : true
},{
"thumbnail": "data/images/layer1.png",
"name": "standard1",
"url": "data/styles/layer1.json",
"description": ""
}]
}
});
theme.add();
theme.display(true);
theme.getContainer();

Constructors

Properties

Methods

Constructors

Properties

container: undefined | null | HTMLDivElement
id: any
name:
    | undefined
    | {
        container: string;
        containertheme: string;
        containerthemeID: string;
        image: string;
        imageID: string;
        input: string;
        inputID: string;
        label: string;
        labelID: string;
        message: string;
        target: string;
    }
options: any

Methods