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 of 0.

Properties

Icon.filter

filter.Filter() Optional filter that determines where this symbolizer applies.

Icon.opacity

Number The opacity value (0 - 1). Default is 1.

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
Returns

style.Style()

Generate a composite style from this symbolizer and the provided symbolizer.

Icon.range()
Arguments
  • configObject An object with optional min and max properties specifying the minimum and maximum scale denominators for applying this symbolizer.

Returns

style.Symbolizer() This symbolizer.

Icon.where()
Arguments
  • filterfilter.Filter() or String A filter or CQL string that limits where this symbolizer applies.

Returns

style.Symbolizer() This symbolizer.