Instance Property

shouldRasterize

A Boolean that determines if the overlay is rendered as a bitmap before compositing.

Declaration

var shouldRasterize: Bool { get set }

Discussion

The default value is false.

Whenever possible, MapKit vectorizes overlay shapes by default so that they scale along with the map and remain sharp. In some case, you may wish to force an overlay to be rasterized and not vectorized. Set this variable to true to force the overlay to be rendered as a bitmap.

See Also

Drawing the Path

func applyStrokeProperties(to: CGContext, atZoomScale: MKZoomScale)

Applies the receiver’s current stroke-related drawing properties to the specified graphics context.

func applyFillProperties(to: CGContext, atZoomScale: MKZoomScale)

Applies the receiver’s current fill-related drawing properties to the specified graphics context.

func strokePath(CGPath, in: CGContext)

Draws a line along the specified path.

func fillPath(CGPath, in: CGContext)

Fills the area enclosed by the specified path.