---
title: invalidatePath()
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkoverlaypathrenderer/invalidatepath()
---

# invalidatePath()

Updates the path associated with the overlay renderer.

## Declaration

```swift
func invalidatePath()
```

## Discussion

Discussion Call this method when a change in the path information would require you to recreate the overlay’s path. This method sets the path property to nil and tells the overlay renderer to redisplay its contents.

## See Also

### Creating and managing the path

- [path](mapkit/mkoverlaypathrenderer/path.md)
- [createPath()](mapkit/mkoverlaypathrenderer/createpath().md)
