Optional Parameter | Description |
---|---|
fillColor | specifies a hexadecimal HTML color of the format "#FFFFFF". The Polygon class does not support named colors.Default is '#000000' |
fillOpacity | specifies a numerical value between 0.0 and 1.0 to determine the opacity of the fill's color. The default is 1.0 |
outlineColor | specifies a hexadecimal HTML outline color of the format "#FFFFFF". The Polygon class does not support named colors.Default is '#000000' |
text | Optional formatted. Defaults to " |
textColor | Optional color. Defaults to "#000000". Requires text option. |
textHaloColor | Optional color. Defaults to "rgba(0, 0, 0, 0)". Requires text option. |
textHaloWidth | Optional number greater than or equal to 0. Units in pixels. Defaults to 0. Requires text option. |
textSize | Optional number greater than or equal to 0. Units in pixels. Defaults to 16. Requires text option. |
textOffset | Optional array of numbers. Units in ems. Defaults to [0,0]. Requires text option. |