Function

MKRoadWidthAtZoomScale(_:)

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

Declaration

func MKRoadWidthAtZoomScale(_ zoomScale: MKZoomScale) -> CGFloat

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.

See Also

Types

typealias MKZoomScale

A scale factor being used in conjunction with a map.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software