---
title: locations
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkgradientpolylinerenderer/locations-7k6qz
---

# locations

An array of location indexes that correspond to their respective colors.

## Declaration

```swift
var locations: [CGFloat] { get }
```

## See Also

### Accessing the gradient colors

- [setColors(_:locations:)](mapkit/mkgradientpolylinerenderer/setcolors(_:locations:)-3xrou.md)
- [setColors(_:locations:)](mapkit/mkgradientpolylinerenderer/setcolors(_:locations:)-1tuft.md)
- [colors](mapkit/mkgradientpolylinerenderer/colors.md)
