OpenLayers v4.0.1 API - Class: Feature

# Class: Feature

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.render.Feature

  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(key){*}

src/ol/render/feature.js, line 59

  Get a feature property by its key.

  Name | Type | Description
  --- | --- | ---
  `key` | string | Key

  ##### Returns:

  Value for the requested key.

#### getExtent(){ol.Extent}

src/ol/render/feature.js, line 77

  Get the extent of this feature's geometry.

  ##### Returns:

  Extent.

#### getGeometry(){ol.render.Feature}

src/ol/render/feature.js, line 109

  Get the feature for working with its geometry.

  ##### Returns:

  Feature.

#### getProperties(){Object.<string, *>}

src/ol/render/feature.js, line 119

  Get the feature properties.

  ##### Returns:

  Feature properties.

#### getType(){ol.geom.GeometryType}

src/ol/render/feature.js, line 151

  Get the type of this feature's geometry.

  ##### Returns:

  Geometry type.