Contents

Style

A set of observable style properties for overlays, including the color and opacity of strokes and fills, and line styles.

Declaration

class Style

Overview

You can assign a mapkit.Style object to an overlay to customize its appearance, such as changing the opacity of the fill or the thickness of the stroke. Style properties are observable, so MapKit JS automatically reflects any change to a style property on the corresponding overlays.

Topics

Creating a style

Styling fills

Styling lines

Styling strokes

Instance Methods

See Also

Overlays