---
title: locations
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkgradientpolylinerenderer/locations-50knt
---

# locations

An array of location indices corresponding to their respective colors.

## Declaration

```occ
@property (nonatomic, copy, readonly) NSArray<NSNumber *> * locations;
```

## See Also

### Accessing the gradient colors

- [setColors:atLocations:](mapkit/mkgradientpolylinerenderer/setcolors:atlocations:.md)
- [colors](mapkit/mkgradientpolylinerenderer/colors.md)
