Class: Fill

ol.style.Fill

Set fill style for vector features.

new ol.style.Fill(opt_options) experimental

src/ol/style/fillstyle.js, line 17
Name Type Description
options

Options.

Name Type Description
color ol.Color | string | undefined experimental

Color. See ol.color for possible formats. Default null; if null, the Canvas/renderer default black will be used.

Extends

Methods

getColor(){ol.Color|string} experimental

src/ol/style/fillstyle.js, line 40

Get the fill color.

Returns:
Color.

setColor(color) experimental

src/ol/style/fillstyle.js, line 51

Set the color.

Name Type Description
color ol.Color | string

Color.