---
title: createPath()
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkoverlaypathrenderer/createpath()
---

# createPath()

Creates the path for the overlay.

## Declaration

```swift
func createPath()
```

## Discussion

Discussion The default implementation of this method does nothing. Subclasses can override it and use it to create the CGPath data type the subclass uses for drawing. After creating the path, your implementation needs to assign it to the path property.

## See Also

### Creating and managing the path

- [path](mapkit/mkoverlaypathrenderer/path.md)
- [invalidatePath()](mapkit/mkoverlaypathrenderer/invalidatepath().md)
