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 routeIdstring -
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 featureol.Feature resolutionnumber -
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 featureol.Feature This argument is ignored.
resolutionnumber This argument is ignored.
-
setStrokeQueue(strokeQueue)
-
This function sets the stroke style for this QueuedLineRouteStyle.
Name Type Description strokeQueuealk.style.StrokeQueue -
setStrokeStyle(strokeStyle) inherited
-
This function sets the stroke style for this LineRouteStyle.
Name Type Description strokeStyleol.style.Stroke -
setUpdateStrokeStyle(stroke) inherited
-
This function sets the update stroke style.
Name Type Description strokeol.style.Stroke -
setUpdating(value) inherited
-
This method is called when the 'updating' property of
alk.layer.RoutingLayeris changed. This call gives the style the ability to style things differently when being updated.Name Type Description valueboolean -
styleFunction(feature, resolution){Array.<ol.style.Style>} inherited
-
Name Type Description featureol.Feature resolutionnumber