---
title: "mapView(_:didAddOverlayViews:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapviewdelegate/mapview(_:didaddoverlayviews:)"
---

# mapView(_:didAddOverlayViews:)

Tells the delegate when the map adds one or more overlay views to the map.

## Declaration

```swift
optional func mapView(_ mapView: MKMapView, didAddOverlayViews overlayViews: [Any])
```

## Parameters

- `mapView`: The map view that adds the overlay views.
- `overlayViews`: An array of doc://com.apple.mapkit/documentation/MapKit/MKOverlayView objects representing the views that the map view adds.

## Discussion

Discussion By the time the map view calls this method, MapKit has added the specified views to the map.

## See Also

### Methods

- [view(for:)](mapkit/mkmapview/view(for:)-38z60.md)
- [mapView(_:viewFor:)](mapkit/mkmapviewdelegate/mapview(_:viewfor:)-6j267.md)
