JSPolygonStyle

API for creating and modifying polygon style objects.

Create a API with Module.JSPolygonStyle.

JSPolygonStyle allows for the bulk specification of styles for multiple polygon objects.

var objectStyle = new Module.JSPolygonStyle();

Getter / Setter

getFill(), setFill(fill) → boolean

Sets whether the object's fill color is applied.

If not set, it is applied (true).

Name
Type
Description

fill

boolean

Whether to apply the object's fill color. true to apply color. false to not apply.

  • Return

    • true: Fill color applied.

    • false: Fill color not applied.

getFillColor(), setFillColor(color) → JSColor

Sets the fill color of the object's style.

Name
Type
Description

color

The color object to be set.

  • Return

    • JSColor: The color object to be set.

getOutLine(), setOutLine(set) → boolean

Sets whether the object's outline color is applied.

If not set, it is applied (true).

Name
Type
Description

set

boolean

Whether to apply the outline color. true to apply color. false to not apply.

  • Return

    • true: Outline color applied.

    • false: Outline color not applied.

getOutLineColor(), setOutLineColor(color) → JSColor

Sets the outline color of the object's style.

Name
Type
Description

color

The color object to be set.

  • Return

Last updated