Geoportal Extension for OpenLayers
API Reference

Class: Style

ol.style.editor.Style

MapBox styles management

new Style(options)

Controls/Editor/Style.js, line 34
Name Type Description
options Object

options for function call.

Example
var style = new Style ({
     target : ...,
     position : 1, // identifiant de position (unique !)
     tools : {
         edition : false,
         scale : true
     },
     title : "Styles (JSON)",
     obj : {
         paint : {},
         layout : {}
     }
  });
 style.add();
 style.display(true);
 style.getContainer();

Methods

add(){Object}

Controls/Editor/Style.js, line 361

Add element into target DOM

Returns:
instance

display(display){Boolean}

Controls/Editor/Style.js, line 385

Set display container or get

Name Type Description
display Boolean

show/hidden container or get status

getContainer(){DOMElement}

Controls/Editor/Style.js, line 398

Get container (DOM)

Returns:
element