# Class: FeatureItem

## FeatureItem

#### new vcs.vcm.widgets.search.FeatureItem(options)

  Name | Type | Description
  --- | --- | ---
  `options` | vcs.vcm.widgets.search.FeatureItem.Options |

### Extends

- vcs.vcm.widgets.search.ResultItem

### Members

#### className{string}

#### icon{string}

  The icon to display in the ui

#### pointWGS84{ol.Coordinate} {null}

  The center coordinates in WGS84 of this feature.

### Methods

#### destroy()

  Destroys the resultItem. The feature will also be removed from the layer

#### getClassName(){string} inherited

  Gets the className

  Deprecated
    - Yes

#### getCoords(){ol.Coordinate|null}

  Get the ol.Coordinates of this feature

  Deprecated
    - 3.5

#### getFeature(){ol.Feature|null}

  Gets the ol.Feature for this item. If the item was not yet added to its layer, it will return a new ol.Feature.

#### handleClickEvent()

  Executed when clicking on the feature item in the result container. Adds the feature to the layer, sets it as the currently selected item and zooms to its location. If clearLayerOnClick is true, it will also clear the previous features from the layer.

#### isInitialized(){boolean} inherited

  Checks whether an Item was correctly created. If not, its funcitonality cannot be used

  Deprecated
    - Yes