---
title: "MTMapViewDelegate | Mobile sdk | Mobile sdk ios | Ios"
description: "Delegate responsible for map event propagation"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# MTMapViewDelegate

```
@MainActor
public protocol MTMapViewDelegate : AnyObject
```

Delegate responsible for map event propagation

-   `[mapViewDidInitialize(_:)](#/s:11MapTilerSDK17MTMapViewDelegateP03mapE13DidInitializeyyAA0dE0CF)`
    
    Triggers when map is fully initialized.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func mapViewDidInitialize(_ mapView: MTMapView)
    ```
    
-   `[mapView(_:didTriggerEvent:with:)](#/s:11MapTilerSDK17MTMapViewDelegateP03mapE0_15didTriggerEvent4withyAA0dE0C_AA7MTEventOAA6MTDataVSgtF)`
    
    Triggers when event ocurrs.
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func mapView(_ mapView: MTMapView, didTriggerEvent event: MTEvent, with data: MTData?)
    ```
    
-   `[mapView(_:didUpdateLocation:)](#/s:11MapTilerSDK17MTMapViewDelegateP03mapE0_17didUpdateLocationyAA0dE0C_So10CLLocationCtF)` Default implementation
    
    Triggers when location is updated.
    
    #### Default Implementation
    
    #### Declaration
    
    Swift
    
    ```
    @MainActor
    func mapView(_ mapView: MTMapView, didUpdateLocation location: CLLocation)
    ```
