Lightweight, read-only, ol.Feature
and ol.geom.Geometry
like
structure, optimized for rendering and styling. Geometry access through the
API is limited to getting the type and extent of the geometry.
Methods
-
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.
-
Get the feature for working with its geometry.
Returns:
Feature.
-
Get the feature properties.
Returns:
Feature properties.
-
Get the type of this feature's geometry.
Returns:
Geometry type.