style.Stroke()

class style.Stroke()

A symbolizer for stroking geometries.

Config Properties

brush

style.Brush() The brush used to create this stroke. This will typically be a Color() and can be given by the string hex value.

opacity

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

width

Number The pixel width of the stroke. Default is 1.

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

Stroke.brush

style.Brush() The brush used to create this stroke.

Stroke.filter

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

Stroke.opacity

Number The opacity value.

Stroke.width

Number The pixel width of the stroke.

Methods

Stroke.and()
Arguments
Returns

style.Style()

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

Stroke.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.

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

Returns

style.Symbolizer() This symbolizer.