---
title: annotationsInMapRect(mapRect)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/map/annotationsinmaprect
---

# annotationsInMapRect(mapRect)

Returns the list of annotation objects within the specified map rectangle.

## Declaration

```data
annotationsInMapRect(mapRect: MapRectData): Annotation[];
```

## Parameters

- `mapRect`: The portion of the map in which to look for annotations.

## Mentioned in

MapKit JS 5

## Return Value

Return Value Returns an array of annotations that fall inside mapRect.

## See Also

### Annotating the map

- [annotations](mapkitjs/map/annotations.md)
- [selectedAnnotation](mapkitjs/map/selectedannotation.md)
- [annotationForCluster](mapkitjs/map/annotationforcluster.md)
- [addAnnotation(annotation)](mapkitjs/map/addannotation.md)
- [addAnnotations(annotations)](mapkitjs/map/addannotations.md)
- [removeAnnotation(annotation)](mapkitjs/map/removeannotation.md)
- [removeAnnotations(annotations)](mapkitjs/map/removeannotations.md)
