Class: SingleSearchStyle

alk.style.SingleSearchStyle

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

new alk.style.SingleSearchStyle()

This constructor is the base constructor for creating a style function for Single Search results.

Extends

  • ol.Object

Members

layer{ol.layer.Vector}

Methods

setLayer(layer)

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

Name Type Description
layer ol.layer.Vector

setUpdating(value)

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