Class: StyleQueue

alk.style.StyleQueue

An instance of this class holds a rotating queue of styles;

new alk.style.StyleQueue(opt_options)

This constructor creates a Style Queue of fills, and corresponding strokes and of a set width. If the width is set by means of alk.style.StyleQueue#setWidth all strokes contained within will have their width property updated to the specified value. If styles is defined, the colors option is ignored. If the colors option is set, it generates a list of styles with a fill and a stroke with those colors at 0.5 and 0.9 opacity, respectively. If width is set, it sets the width of all strokes. The default width is 3 (pixels).

Name Type Description
options Object

Extends

  • ol.Object

Members

styles{Array.<ol.style.Style>}

Methods

getWidth(){number}

next(){ol.style.Style}

setWidth(width)

Name Type Description
width number