---
title: MapFeatureAnnotation
framework: mapkitjs
role: symbol
role_heading: Class
path: mapkitjs/mapfeatureannotation
---

# MapFeatureAnnotation

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

## Declaration

```data
class MapFeatureAnnotation extends PlaceAnnotation
```

## Mentioned in

MapKit JS 6 Migrating from Version 5 to Version 6

## Overview

Overview MapKit JS creates a MapFeatureAnnotation when you set selectableMapFeatures, and when a person taps a map feature. The instance is available from the selectedAnnotation property when a person selects a map feature and MapKit JS passes it to the annotationForMapFeature delegate method. MapKit JS removes the annotation as soon as a person deselects the map feature.

## Topics

### Annotation properties

- [title](mapkitjs/mapfeatureannotation/title.md)
- [featureType](mapkitjs/mapfeatureannotation/featuretype.md)
- [pointOfInterestCategory](mapkitjs/mapfeatureannotation/pointofinterestcategory.md)
- [color](mapkitjs/placeannotation/color.md)
- [glyphImage](mapkitjs/placeannotation/glyphimage.md)
- [selectedGlyphImage](mapkitjs/placeannotation/selectedglyphimage.md)

### Deprecated

- [fetchPlace(callback)](mapkitjs/mapfeatureannotation/fetchplace.md)

### Instance Properties

- [accessibilityLabel](mapkitjs/mapfeatureannotation/accessibilitylabel.md)
- [collisionMode](mapkitjs/mapfeatureannotation/collisionmode.md)
- [map](mapkitjs/mapfeatureannotation/map.md)
- [subtitle](mapkitjs/mapfeatureannotation/subtitle.md)
- [subtitleVisibility](mapkitjs/mapfeatureannotation/subtitlevisibility.md)
- [titleVisibility](mapkitjs/mapfeatureannotation/titlevisibility.md)

## Relationships

### Inherits From

- [PlaceAnnotation](mapkitjs/placeannotation.md)

## See Also

### Points of interest

- [filterExcludingAllCategories](mapkitjs/mapkit/filterexcludingallcategories.md)
- [filterIncludingAllCategories](mapkitjs/mapkit/filterincludingallcategories.md)
- [PointOfInterestFilter](mapkitjs/pointofinterestfilter.md)
- [PointsOfInterestSearch](mapkitjs/pointsofinterestsearch.md)
- [MapFeatureAnnotationGlyphImage](mapkitjs/mapfeatureannotationglyphimage.md)
