---
title: createPath
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkoverlaypathview/createpath
---

# createPath

Creates the path for the overlay.

## Declaration

```occ
- (void) createPath;
```

## Discussion

Discussion The default implementation of this method does nothing. Subclasses should override it and use it to create the CGPath data type to be used for drawing. After creating the path, your implementation should then assign it to the path property.

## See Also

### Creating and managing the path

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