Methods
-
get(key){*}
render/Feature.js, line 91 -
Get a feature property by its key.
Name Type Description key
string Key
Returns:
Value for the requested key.
-
Get the extent of this feature's geometry.
Returns:
Extent.
-
For API compatibility with
module:ol/Feature~Feature
, this method is useful when determining the geometry type in style function (see#getType
).Returns:
Feature.
-
getId(){number|string|undefined}
render/Feature.js, line 173 -
Get the feature identifier. This is a stable identifier for the feature and is set when reading data from a remote source.
Returns:
Id.
-
getProperties(){Object.<string, *>}
render/Feature.js, line 207 -
Get the feature properties.
Returns:
Feature properties.
-
Get the type of this feature's geometry.
Returns:
Geometry type.