<!--
{
  "availability" : [
    "MapKit JS: 5.74.1 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/MapFeatureAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.MapFeatureAnnotation"
  },
  "title" : "MapFeatureAnnotation"
}
-->

# MapFeatureAnnotation

An object that represents a map feature that the user selects.

```
class MapFeatureAnnotation extends PlaceAnnotation
```

## Overview

MapKit JS creates a `MapFeatureAnnotation` when you set [`selectableMapFeatures`](/documentation/MapKitJS/Map/selectableMapFeatures), and when a person taps a map feature. The instance is available from the [`selectedAnnotation`](/documentation/MapKitJS/Map/selectedAnnotation) property when a person selects a map feature and MapKit JS passes it to the [`annotationForMapFeature`](/documentation/MapKitJS/Map/annotationForMapFeature) delegate method.

MapKit JS removes the annotation as soon as a person deselects the map feature.

## Topics

### Annotation properties

[`title`](/documentation/MapKitJS/MapFeatureAnnotation/title)

The title of the feature.

[`featureType`](/documentation/MapKitJS/MapFeatureAnnotation/featureType)

A value that describes the type of place the feature represents.

[`pointOfInterestCategory`](/documentation/MapKitJS/MapFeatureAnnotation/pointOfInterestCategory)

The point-of-interest category of the feature.

[`color`](/documentation/MapKitJS/PlaceAnnotation/color)

The color of the place.

[`glyphImage`](/documentation/MapKitJS/PlaceAnnotation/glyphImage)

The glyph image for the place.

[`selectedGlyphImage`](/documentation/MapKitJS/PlaceAnnotation/selectedGlyphImage)

The selected glyph image for the place.

### Deprecated

[`fetchPlace(callback)`](/documentation/MapKitJS/MapFeatureAnnotation/fetchPlace)

Fetches the place object associated with the map feature.

## Relationships

### Inherits From

[`PlaceAnnotation`](/documentation/MapKitJS/PlaceAnnotation)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)