<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKOverlayPathRenderer/createPath()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKOverlayPathRenderer(im)createPath"
  },
  "title" : "createPath()"
}
-->

# createPath()

Creates the path for the overlay.

```
func createPath()
```

## Discussion

The default implementation of this method does nothing. Subclasses can override it and use it to create the <doc://com.apple.documentation/documentation/CoreGraphics/CGPath> data type the subclass uses for drawing. After creating the path, your implementation needs to assign it to the [`path`](/documentation/MapKit/MKOverlayPathRenderer/path) property.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)