Class: POILayerStyle

alk.style.POILayerStyle

This is the base class that provides a styling function for the POILayer.

new alk.style.POILayerStyle()

This constructor creates a Style Function for styling the POI Layer with POI Icons.

Subclasses

Extends

  • ol.Object

Members

layer{ol.layer.Vector}

Methods

setLayer(layer)

This method is called by the POILayer when installed. This method also registers for the 'updating' property change on the layer and calls alk.style.POILayerStyle#setUpdating.

Name Type Description
layer ol.layer.Vector

setUpdating(value)

This method is called when the 'updating' property of alk.layer.POILayer 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>}

This function provides the styleFunction for the Routing Layer.

Name Type Description
feature ol.Feature
resolution number