style.Label()
¶
-
class
style.
Label
()¶ A symbolizer for labeling features.
Example Use¶
Sample code to create a fill:
>> var Label = require("geoscript/style").Label;
>> var label = Label({
.. expression: "property"
.. });
Config Properties¶
-
expression
-
fontFamily
String
-
fontSize
Number
-
fontStyle
String
-
fontWeight
String
-
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¶
-
Label.
expression
¶
-
Label.
filter
¶ filter.Filter()
Optional filter that determines where this symbolizer applies.
-
Label.
fontFamily
¶ String
-
Label.
fontSize
¶ Number
-
Label.
fontStyle
¶ String
-
Label.
fontWeight
¶ String
Methods¶
-
Label.
and
()¶ - Arguments
symbolizer –
style.Symbolizer()
- Returns
Generate a composite style from this symbolizer and the provided symbolizer.
-
Label.
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.
-
Label.
where
()¶ - Arguments
filter –
filter.Filter()
orString
A filter or CQL string that limits where this symbolizer applies.
- Returns
style.Symbolizer()
This symbolizer.