---
title: addOverlay(overlay)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/map/addoverlay
---

# addOverlay(overlay)

Adds an overlay to the map.

## Declaration

```data
addOverlay(overlay: Overlay): Overlay | null;
```

## Parameters

- `overlay`: The overlay to add.

## Return Value

Return Value Returns the overlay.

## Discussion

Discussion MapKit JS adds the overlay to the end of the map’s overlays array.

## See Also

### Adding and removing overlays

- [overlays](mapkitjs/map/overlays.md)
- [selectedOverlay](mapkitjs/map/selectedoverlay.md)
- [overlaysAtPoint(point)](mapkitjs/map/overlaysatpoint.md)
- [addOverlays(overlays)](mapkitjs/map/addoverlays.md)
- [removeOverlay(overlay)](mapkitjs/map/removeoverlay.md)
- [removeOverlays(overlays)](mapkitjs/map/removeoverlays.md)
- [topOverlayAtPoint(point)](mapkitjs/map/topoverlayatpoint.md)
