-
Name Type Description options
Options.
Name Type Description color
module:ol/color~Color | module:ol/colorlike~ColorLike | null (defaults to null) A color, gradient or pattern. See
module:ol/color~Color
andmodule:ol/colorlike~ColorLike
for possible formats. Default null; if null, the Canvas/renderer default black will be used.
Methods
-
Clones the style. The color is not cloned if it is an
module:ol/colorlike~ColorLike
.Returns:
The cloned style.
-
Get the fill color.
Returns:
Color.
-
Set the color.
Name Type Description color
module:ol/color~Color | module:ol/colorlike~ColorLike | null Color.