Class: SelectMulti

ol.control. SelectMulti

A multiselect control. A container that manage other control Select


new SelectMulti( [options])

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Description
className string

control class name

target Element | undefined

Specify a target if you want the control to be rendered outside of the map's viewport.

source ol/source/Vector | Array.<ol/source/Vector>

the source to search in

controls Array.<ol.control.SelectBase>

an array of controls

Fires:
  • event:select

Extends

Members


operationsList

List of operators / translation

Inherited From:
Overrides:

Methods


_escape(s)

Escape string for regexp

Parameters:
Name Type Description
s *

value to escape

Inherited From:
Overrides:
Returns:
Type
string

_selectFeatures(result, features, condition, all, usecase)

Selection features in a list of features

Parameters:
Name Type Description
result Array.<ol.Feature>

the current list of features

features Array.<ol.Feature>

to test in

condition Object
Properties
Name Type Description
attr string

attribute name

op string

operator

val any

value to test

all boolean

all conditions must be valid

usecase boolean

use case or not when testing strings

Inherited From:
Overrides:

addControl(c)

Add a new control

Parameters:
Name Type Description
c ol.control.SelectBase

doSelect()

Select features by condition

Overrides:

getControls()

Get select controls

Returns:
Type
Aray.<ol.control.SelectBase>

getFeatures()

Get feature collection to search in

Inherited From:
Overrides:
Returns:
Type
ol.Collection.<ol.Feature>

getSources()

Get vector source

Inherited From:
Overrides:
Returns:
Type
Array.<ol.source.Vector>

setFeatures(features)

Set feature collection to search in

Parameters:
Name Type Description
features ol.Collection.<ol.Feature>
Inherited From:
Overrides:

setMap(map)

Set the map instance the control associated with.

Parameters:
Name Type Description
map o.Map

The map instance.


setSources(source)

Set the current sources

Parameters:
Name Type Description
source ol.source.Vector | Array.<ol.source.Vector> | undefined
Inherited From:
Overrides: