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(); Copy
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();
Add element into target DOM
Set display container or get
show/hidden container or get status
Get container (DOM)
DOM element
Classdesc
Mapbox Themes management
Alias
ol.style.editor.Theme
Param: options
options for function call.
Example