Returns the width (in screen points) of roads on a map at the specified zoom level.
SDKs
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.2+
Framework
- Map
Kit
Declaration
CGFloat MKRoadWidthAtZoomScale(MKZoom Scale zoomScale);
Parameters
zoomScale
The scale factor currently applied to the map view.
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.