experimental new ol.source.KML(opt_options)
| Name | Type | Argument | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
optional
Options.
|
|||||||||||||||||||||||||||||||||||
Fires:
-
experimental
addfeature(ol.source.VectorEvent) - Triggered when a feature is added to the source. -
change -
experimental
removefeature(ol.source.VectorEvent) - Triggered when a feature is removed from the source.
Extends
Methods
-
experimental inherited addFeature(feature)
-
Name Type Description featureol.Feature Feature.
-
experimental inherited addFeatures(features)
-
Name Type Description featuresArray.<ol.Feature> Features.
-
experimental inherited dispatchChangeEvent()
-
Dispatches a
changeevent. Register a listener for this event to get notified of changes.Fires:
-
change
-
-
experimental inherited forEachFeature(f, opt_this){S|undefined}
-
Name Type Argument Description ffunction Callback.
thisT <optional>
optional The object to use as
thisinf. -
experimental inherited forEachFeatureInExtent(extent, f, opt_this){S|undefined}
-
Name Type Argument Description extentol.Extent Extent.
ffunction Callback.
thisT <optional>
optional The object to use as
thisinf. -
experimental inherited getClosestFeatureToCoordinate(coordinate){ol.Feature}
-
Name Type Description coordinateol.Coordinate Coordinate.
Returns:
feature.
-
-
experimental inherited getFeatures(){Array.<ol.Feature>}
-
-
experimental inherited getFeaturesAtCoordinate(coordinate){Array.<ol.Feature>}
-
Name Type Description coordinateol.Coordinate Coordinate.
-
experimental inherited getState(){ol.source.State}
-
-
experimental inherited on(type, listener, opt_this){goog.events.Key}
-
Listen for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener.Returns:
key for the listener.
-
experimental inherited once(type, listener, opt_this){goog.events.Key}
-
Listen once for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener.Returns:
key for the listener.
-
experimental inherited removeFeature(feature)
-
Name Type Description featureol.Feature Feature.
-
experimental inherited un(type, listener, opt_this)
-
Unlisten for a certain type of event.
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
optional The object to use as
thisinlistener. -
experimental inherited unByKey(key)
-
Removes an event listener using the key returned by
on()oronce().Name Type Description keygoog.events.Key Key.
OpenLayers 3