---
title: "MKRoadWidthAtZoomScale(_:)"
framework: mapkit
role: symbol
role_heading: Function
path: "mapkit/mkroadwidthatzoomscale(_:)"
---

# MKRoadWidthAtZoomScale(_:)

Returns the width (in screen points) of roads on a map at the specified zoom level.

## Declaration

```swift
func MKRoadWidthAtZoomScale(_ zoomScale: MKZoomScale) -> CGFloat
```

## Parameters

- `zoomScale`: The scale factor currently applied to the map view.

## Return Value

Return Value The width of roads, measured in screen points. You can use the returned value to set the width of lines in drawing code that traces the path of a road.

## See Also

### Types

- [MKZoomScale](mapkit/mkzoomscale.md)
