new FilterAndSort(options)
Class to auto load all features from a URL
Parameters:
| Name | Type | Description |
|---|---|---|
options |
olx.source.VectorOptions | Constructor optionss |
Extends
- ol.source.Vector
Methods
-
filter(filters)
-
Filters the features of this source
Parameters:
Name Type Description filtersArray.<module:nyc/FilterAndSort~FilterAndSort.Filter> Used to filter features by attributes
- Source:
Returns:
An array of features contained in this source that are the result is the intersection of the applied filters
- Type
- Array.<ol.Feature>
-
sort()
-
Sort features by distance from a coordinate
- Source:
Returns:
features
- Type
- Array.<ol.Feature>
Type Definitions
-
Distance
-
Type:
- Object
- Source:
Properties:
Name Type Description distancenumber The distance
unitsstring The distance units
-
Filter
-
Object to use for filtering the features of an instance of {@see FilterAndSort}
Type:
- Object
- Source:
Properties:
Name Type Description propertystring The property name on which to filter features
valuesArray.<string> The values used to filter features