---
title: "mapViewWillStartLocatingUser(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapviewdelegate/mapviewwillstartlocatinguser(_:)"
---

# mapViewWillStartLocatingUser(_:)

Tells the delegate that the map view is about to start tracking the user’s location.

## Declaration

```swift
optional func mapViewWillStartLocatingUser(_ mapView: MKMapView)
```

## Parameters

- `mapView`: The map view that’s tracking the user’s location.

## Discussion

Discussion The map view calls this method when the value of the showsUserLocation property changes to true.

## See Also

### Tracking the user’s location

- [mapViewDidStopLocatingUser(_:)](mapkit/mkmapviewdelegate/mapviewdidstoplocatinguser(_:).md)
- [mapView(_:didUpdate:)](mapkit/mkmapviewdelegate/mapview(_:didupdate:).md)
- [mapView(_:didFailToLocateUserWithError:)](mapkit/mkmapviewdelegate/mapview(_:didfailtolocateuserwitherror:).md)
- [mapView(_:didChange:animated:)](mapkit/mkmapviewdelegate/mapview(_:didchange:animated:).md)
