new Select( [options])
Parameters:
| Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
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 resultArray.<ol.Feature> the current list of features
featuresArray.<ol.Feature> to test in
conditionObject Properties
Name Type Description attrstring attribute name
opstring operator
valany value to test
allboolean all conditions must be valid
usecaseboolean use case or not when testing strings
- Inherited From:
- Overrides:
-
addCondition(options)
-
Add a new condition
Parameters:
Name Type Description options* Properties
Name Type Description attrstring attribute name
opstring operator
valstring attribute value
-
doSelect(options)
-
Select features by attributes
Parameters:
Name Type Description options* Properties
Name Type Description sourcesArray.<ol.source.Vector> | undefined source to apply rules, default the select sources
useCasebool case sensitive, default checkbox state
matchAllbool match all conditions, , default checkbox state
conditionsArray.<conditions> array of conditions
- Overrides:
Fires:
- event:select
-
getConditions()
-
Get the condition list
-
getConditionsString()
-
Get the conditions as string
-
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>
-
removeCondition(i)
-
Remove the ith condition
Parameters:
Name Type Description iint condition index
-
setConditions()
-
Set the condition list
-
setFeatures(features)
-
Set feature collection to search in
Parameters:
Name Type Description featuresol.Collection.<ol.Feature> - Inherited From:
- Overrides:
-
setSources(source)
-
Set the current sources
Parameters:
Name Type Description sourceol.source.Vector | Array.<ol.source.Vector> | undefined - Inherited From:
- Overrides: