Constructor
new SortedFeatures(features, propertyName)
Parameters:
Name | Type | Description |
---|---|---|
features |
Array | array of ol features |
propertyName |
string | the property name to use for lookup |
- Source:
Methods
getFeature(propertyValue, exactMatchopt, sortedFeaturesopt) → {ol.Feature|undefined}
recursive search to find the value
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
propertyValue |
number | string | the property value to search for | ||
exactMatch |
boolean |
<optional> |
false | if only an exact match should be returned |
sortedFeatures |
Array |
<optional> |
this.sortedFeatures | the candidate features |
- Source:
Returns:
the feature matching the lookup
- Type
- ol.Feature | undefined