Class: RenderFeature

ol/render/Feature~RenderFeature


Lightweight, read-only, module:ol/Feature~Feature and module:ol/geom/Geometry~Geometry like structure, optimized for vector tile rendering and styling. Geometry access through the API is limited to getting the type and extent of the geometry.

Methods

get(key){*}

render/Feature.js, line 92

Get a feature property by its key.

Name Type Description
key string

Key

Returns:
Value for the requested key.

getExtent(){module:ol/extent~Extent}

render/Feature.js, line 101

Get the extent of this feature's geometry.

Returns:
Extent.

getGeometry(){module:ol/render/Feature~RenderFeature}

render/Feature.js, line 191

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 174

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 219

Get the feature properties.

Returns:
Feature properties.

getType(){module:ol/geom/GeometryType}

render/Feature.js, line 242

Get the type of this feature's geometry.

Returns:
Geometry type.