style.Fill()
¶
-
class
style.
Fill
()¶ A symbolizer for filling polygon geometries.
Example Use¶
Sample code to create a fill:
>> var Fill = require("geoscript/style").Fill;
>> var fill = Fill({
.. brush: "red",
.. opacity: 0.5
.. });
Config Properties¶
-
brush
style.Brush()
The brush used to create this fill. This will typically be aColor()
and can be given by the string hex value.
-
opacity
Number
The opacity value (0
-1
). Default is1
.
-
zIndex
Number
The zIndex determines draw order of symbolizers. Symbolizers with higher zIndex values will be drawn over symbolizers with lower values. By default, symbolizers have a zIndex of0
.
Properties¶
-
Fill.
brush
¶ style.Brush()
The brush used to create this fill.
-
Fill.
filter
¶ filter.Filter()
Optional filter that determines where this symbolizer applies.
-
Fill.
opacity
¶ Number
The opacity value.
Methods¶
-
Fill.
and
()¶ - Arguments
symbolizer –
style.Symbolizer()
- Returns
Generate a composite style from this symbolizer and the provided symbolizer.
-
Fill.
range
()¶ - Arguments
config –
Object
An object with optionalmin
andmax
properties specifying the minimum and maximum scale denominators for applying this symbolizer.
- Returns
style.Symbolizer()
This symbolizer.
-
Fill.
where
()¶ - Arguments
filter –
filter.Filter()
orString
A filter or CQL string that limits where this symbolizer applies.
- Returns
style.Symbolizer()
This symbolizer.