new VectorFile
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
olx.source.VectorFileOptions |
<optional> |
Options. |
- Source:
- vectorfilesource.js, line 29
Fires:
- ol.source.VectorEvent ol.source.event:VectorEvent
Extends
Methods
-
addFeature
Stability: experimental -
Parameters:
Name Type Description featureol.Feature Feature.
- Inherited From:
- Source:
- vectorsource.js, line 89
-
addFeatures
Stability: experimental -
Parameters:
Name Type Description featuresArray.<ol.Feature> Features.
- Inherited From:
- Source:
- vectorsource.js, line 127
-
dispatchChangeEvent
Stability: experimental -
Dispatches a
changeevent. Register a listener for this event to get notified of changes.- Inherited From:
- Source:
- observable.js, line 39
Fires:
- event:change
-
forEachFeature
Stability: experimental -
Parameters:
Name Type Argument Description ffunction Callback.
thisT <optional>
The object to use as
thisinf.- Inherited From:
- Source:
- vectorsource.js, line 168
Returns:
- Type
- S | undefined
-
forEachFeatureInExtent
Stability: experimental -
Parameters:
Name Type Argument Description extentol.Extent Extent.
ffunction Callback.
thisT <optional>
The object to use as
thisinf.- Inherited From:
- Source:
- vectorsource.js, line 204
Returns:
- Type
- S | undefined
-
getClosestFeatureToCoordinate
Stability: experimental -
Parameters:
Name Type Description coordinateol.Coordinate Coordinate.
- Inherited From:
- Source:
- vectorsource.js, line 253
Returns:
Closest feature.
- Type
- ol.Feature
-
getExtent
Stability: experimental -
- Inherited From:
- Source:
- vectorsource.js, line 299
Returns:
Extent.
- Type
- ol.Extent
-
getFeatures
Stability: experimental -
- Inherited From:
- Source:
- vectorsource.js, line 214
Returns:
Features.
- Type
- Array.<ol.Feature>
-
getFeaturesAtCoordinate
Stability: experimental -
Parameters:
Name Type Description coordinateol.Coordinate Coordinate.
- Inherited From:
- Source:
- vectorsource.js, line 229
Returns:
Features.
- Type
- Array.<ol.Feature>
-
getState
Stability: not documented -
- Inherited From:
- Source:
- source.js, line 135
Returns:
State.
- Type
- ol.source.State
-
on
Stability: experimental -
Listen for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 62
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
once
Stability: experimental -
Listen once for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 75
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
removeFeature
Stability: experimental -
Parameters:
Name Type Description featureol.Feature Feature.
- Inherited From:
- Source:
- vectorsource.js, line 344
-
un
Stability: experimental -
Unlisten for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 87
-
unByKey
Stability: experimental -
Removes an event listener using the key returned by
on()oronce().Parameters:
Name Type Description keygoog.events.Key Key.
- Inherited From:
- Source:
- observable.js, line 97
OpenLayers 3