Geoportal Extension for OpenLayers API Reference

Class: Style

ol.style.editor.Style

MapBox styles management

new Style(options)

OpenLayers/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}

OpenLayers/Controls/Editor/Style.js, line 369

Add element into target DOM

Returns:
instance

display(display){Boolean}

OpenLayers/Controls/Editor/Style.js, line 393

Set display container or get

Name Type Description
display Boolean

show/hidden container or get status

getContainer(){DOMElement}

OpenLayers/Controls/Editor/Style.js, line 406

Get container (DOM)

Returns:
element