style.Icon()
¶
-
class
style.
Icon
()¶ A symbolizer that renders points using a graphic image.
Config Properties¶
-
rotation
Number
Rotation angle in degrees clockwise about the center point of the shape.
-
size
Number
The shape pixel size. Default is 6.
-
url
String
The icon url.
-
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¶
-
Icon.
filter
¶ filter.Filter()
Optional filter that determines where this symbolizer applies.
-
Icon.
opacity
¶ Number
The opacity value (0 - 1). Default is1
.
-
Icon.
rotation
¶ Number
Rotation angle in degrees clockwise about the center point of the shape.
-
Icon.
size
¶ filter.Expression()
The shape pixel size.
-
Icon.
url
¶ String
The icon url.
Methods¶
-
Icon.
and
()¶ - Arguments
symbolizer –
style.Symbolizer()
- Returns
Generate a composite style from this symbolizer and the provided symbolizer.
-
Icon.
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.
-
Icon.
where
()¶ - Arguments
filter –
filter.Filter()
orString
A filter or CQL string that limits where this symbolizer applies.
- Returns
style.Symbolizer()
This symbolizer.