new ol.source.IGC(opt_options) experimental
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||
Fires:
-
addfeature(ol.source.VectorEvent) - Triggered when a feature is added to the source. -
changeexperimental - Triggered when the state of the source changes. -
removefeature(ol.source.VectorEvent) - Triggered when a feature is removed from the source.
Extends
Methods
-
addFeature(feature) inherited
-
Name Type Description featureol.Feature Feature.
-
addFeatures(features) inherited
-
Name Type Description featuresArray.<ol.Feature> Features.
-
Remove all features.
-
dispatchChangeEvent() inherited experimental
-
Dispatches a
changeevent.Fires:
-
changeexperimental
-
-
forEachFeature(f, opt_this){S|undefined} inherited
-
Name Type Description ffunction Callback.
thisT The object to use as
thisinf. -
forEachFeatureInExtent(extent, f, opt_this){S|undefined} inherited experimental
-
Name Type Description extentol.Extent Extent.
ffunction Callback.
thisT The object to use as
thisinf. -
getAttributions(){Array.<ol.Attribution>} inherited
-
Returns:
Attributions.
-
getClosestFeatureToCoordinate(coordinate){ol.Feature} inherited
-
Name Type Description coordinateol.Coordinate Coordinate.
Returns:
Closest feature.
-
Get the extent of the features currently in the source.
Returns:
Extent.
-
getFeatureById(id){ol.Feature} inherited
-
Get a feature by its identifier (the value returned by feature.getId()). Note that the index treats string and numeric identifiers as the same. So
source.getFeatureById(2)will return a feature with id'2'or2.Name Type Description idstring | number Feature identifier.
Returns:
The feature (ornullif not found).
-
getFeatures(){Array.<ol.Feature>} inherited
-
Returns:
Features.
-
getFeaturesAtCoordinate(coordinate){Array.<ol.Feature>} inherited
-
Name Type Description coordinateol.Coordinate Coordinate.
Returns:
Features.
-
getLogo(){string|olx.LogoOptions|undefined} inherited
-
Returns:
Logo.
-
getProjection(){ol.proj.Projection} inherited experimental
-
Returns:
Projection.
-
getRevision(){number} inherited experimental
-
Returns:
Revision.
-
getState(){ol.source.State} inherited experimental
-
Returns:
State.
-
on(type, listener, opt_this){goog.events.Key} inherited
-
Listen for a certain type of event.
Name Type Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject The object to use as
thisinlistener.Returns:
Unique key for the listener.
-
once(type, listener, opt_this){goog.events.Key} inherited
-
Listen once for a certain type of event.
Name Type Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject The object to use as
thisinlistener.Returns:
Unique key for the listener.
-
readFeatures(source){Array.<ol.Feature>} inherited experimental
-
Name Type Description sourceArrayBuffer | Document | Node | Object | string Source.
Returns:
Features.
-
removeFeature(feature) inherited
-
Name Type Description featureol.Feature Feature.
-
un(type, listener, opt_this) inherited
-
Unlisten for a certain type of event.
Name Type Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject The object which was used as
thisby thelistener. -
unByKey(key) inherited
-
Removes an event listener using the key returned by
on()oronce().Name Type Description keygoog.events.Key Key.