Class: StrokeQueue

alk.style.StrokeQueue

An instance of this class holds a rotating queue of strokes.

new alk.style.StrokeQueue(opt_options)

This constructor creates a Queue of styles of differing colors and a set width. If the width is set by means of alk.style.StrokeQueue#setWidth all strokes contained within will have their width property updated to the specified value. If strokes is defined, the colors option is ignored. If the colors option is set, it generates a list of strokes with those colors. If width is set, it sets the width of all strokes. The default width is 9 (pixels).

Name Type Description
options Object

Extends

  • ol.Object

Members

strokes{Array.<ol.style.Stroke>}

The stroke the predetermined strokes.

Methods

getWidth(){number}

next(){ol.style.Stroke}

setWidth(width)

Name Type Description
width number