---
title: MKPolygonRenderer
framework: mapkit
role: symbol
role_heading: Class
path: mapkit/mkpolygonrenderer
---

# MKPolygonRenderer

The visual representation of a single polygon overlay.

## Declaration

```swift
class MKPolygonRenderer
```

## Overview

Overview This renderer creates the polygon overlay by first filling the shape and then representing its outline with strokes. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the parent class.

## Topics

### Creating a polygon renderer

- [init(polygon:)](mapkit/mkpolygonrenderer/init(polygon:).md)

### Accessing the polygon overlay object

- [polygon](mapkit/mkpolygonrenderer/polygon.md)

### Accessing the stroke

- [strokeStart](mapkit/mkpolygonrenderer/strokestart.md)
- [strokeEnd](mapkit/mkpolygonrenderer/strokeend.md)

## Relationships

### Inherits From

- [MKOverlayPathRenderer](mapkit/mkoverlaypathrenderer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom shape overlays

- [MKPolygon](mapkit/mkpolygon.md)
- [MKMultiPolygon](mapkit/mkmultipolygon.md)
- [MKMultiPolygonRenderer](mapkit/mkmultipolygonrenderer.md)
- [MKOverlayPathRenderer](mapkit/mkoverlaypathrenderer.md)
