Instance Property


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


@property(nonatomic, assign) BOOL shouldRasterize;


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

- applyStrokePropertiesToContext:atZoomScale:

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

- applyFillPropertiesToContext:atZoomScale:

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

- strokePath:inContext:

Draws a line along the specified path.

- fillPath:inContext:

Fills the area enclosed by the specified path.

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