Class: QueuedLineRouteStyle

alk.style.QueuedLineRouteStyle

An instance of this class provides a ol.style.StyleFunction for the alk.layer.MultiRoutingLayer that only draws route lines of a designated stroke style.

new alk.style.QueuedLineRouteStyle(opt_options)

This constructor creates a Style Function for displaying lines in the Routing Layer layers.

It extends the functionality of the LineRouteStyle by installing a StrokeQueue that will round robin a collection of strokes depending on a Feature's 'routeId' attribute.

Name Type Description
options Object

Subclasses

Extends

Members

layer{ol.layer.Vector}

Methods

clearStrokeForRouteId(routeId)

This function clears the assigned, if any, stroke style for the given routeId identifier.

Name Type Description
routeId string

getStrokeQueue(){alk.style.StrokeQueue|undefined}

This function returns the stroke Queue.

getStrokeStyle(feature, resolution){ol.style.Stroke} inherited

This function returns the stroke style for the route.

Name Type Description
feature ol.Feature
resolution number

getUpdateStrokeStyle(feature, resolution){ol.style.Stroke} inherited

This function returns the Update Stroke Style, which is the same for all features and resolutions.

Name Type Description
feature ol.Feature

This argument is ignored.

resolution number

This argument is ignored.

setStrokeQueue(strokeQueue)

This function sets the stroke style for this QueuedLineRouteStyle.

Name Type Description
strokeQueue alk.style.StrokeQueue

setStrokeStyle(strokeStyle) inherited

This function sets the stroke style for this LineRouteStyle.

Name Type Description
strokeStyle ol.style.Stroke

setUpdateStrokeStyle(stroke) inherited

This function sets the update stroke style.

Name Type Description
stroke ol.style.Stroke

setUpdating(value) inherited

This method is called when the 'updating' property of alk.layer.RoutingLayer is changed. This call gives the style the ability to style things differently when being updated.

Name Type Description
value boolean

styleFunction(feature, resolution){Array.<ol.style.Style>} inherited

Name Type Description
feature ol.Feature
resolution number