Geoportal Extension for OpenLayers API Reference

Class: Filter

ol.style.editor.Filter

MapBox filter management

new Filter(options)

OpenLayers/Controls/Editor/Filter.js, line 32
Name Type Description
options Object

options for function call.

Example
var filter = new Filter ({
     target : ...,
     position : 1, // identifiant de position (unique !)
     tools : {
         edition : false
     },
     title : "Filtres (JSON)",
     obj : {
         filter : []
     }
  });
 filter.add();
 filter.display(true);
 filter.getContainer();

Methods

add(){Object}

OpenLayers/Controls/Editor/Filter.js, line 189

Add element into target DOM

Returns:
instance

display(display){Boolean}

OpenLayers/Controls/Editor/Filter.js, line 213

Set display container or get

Name Type Description
display Boolean

show/hidden container or get status

getContainer(){DOMElement}

OpenLayers/Controls/Editor/Filter.js, line 226

Get container (DOM)

Returns:
element