new ol.style.Fill(opt_options)
src/ol/style/fill.js, line 15
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||
Methods
-
Clones the style. The color is not cloned if it is an
ol.ColorLike.Returns:
The cloned style.
-
Get the fill color.
Returns:
Color.
-
setColor(color)
src/ol/style/fill.js, line 62 -
Set the color.
Name Type Description colorol.Color | ol.ColorLike Color.
OpenLayers