ol.source. ol.source.KML

new KML

Stability: experimental
Parameters:
Name Type Argument Description
options olx.source.KMLOptions <optional>

Options.

Source:
  • kmlsource.js, line 14

Extends

Methods

addFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Inherited From:
Source:
  • vectorsource.js, line 77

addFeatures

Stability: experimental
Parameters:
Name Type Description
features Array.<ol.Feature>

Features.

Inherited From:
Source:
  • vectorsource.js, line 109

dispatchChangeEvent

Stability: experimental
Inherited From:
Source:
  • observable.js, line 35

forEachFeature

Stability: experimental
Parameters:
Name Type Argument Description
f function

Callback.

this T <optional>

The object to use as this in f.

Inherited From:
Source:
  • vectorsource.js, line 150
Returns:
Type
S | undefined

forEachFeatureInExtent

Stability: experimental
Parameters:
Name Type Argument Description
extent ol.Extent

Extent.

f function

Callback.

this T <optional>

The object to use as this in f.

Inherited From:
Source:
  • vectorsource.js, line 186
Returns:
Type
S | undefined

getClosestFeatureToCoordinate

Stability: experimental
Parameters:
Name Type Description
coordinate ol.Coordinate

Coordinate.

Inherited From:
Source:
  • vectorsource.js, line 235
Returns:

Closest feature.

Type
ol.Feature

getExtent

Stability: experimental
Inherited From:
Source:
  • vectorsource.js, line 281
Returns:

Extent.

Type
ol.Extent

getFeatures

Stability: experimental
Inherited From:
Source:
  • vectorsource.js, line 196
Returns:

Features.

Type
Array.<ol.Feature>

getFeaturesAtCoordinate

Stability: experimental
Parameters:
Name Type Description
coordinate ol.Coordinate

Coordinate.

Inherited From:
Source:
  • vectorsource.js, line 211
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
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 58
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
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 71
Returns:

Unique key for the listener.

Type
goog.events.Key

removeFeature

Stability: experimental
Parameters:
Name Type Description
feature ol.Feature

Feature.

Inherited From:
Source:
  • vectorsource.js, line 326

un

Stability: experimental

Unlisten for a certain type of event.

Parameters:
Name Type Argument Description
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 83

unByKey

Stability: experimental

Removes an event listener using the key returned by on() or once().

Parameters:
Name Type Description
key goog.events.Key

Key.

Inherited From:
Source:
  • observable.js, line 93