Class: IconPOILayerStyle

alk.style.IconPOILayerStyle

An instance of this class provides a ol.style.StyleFunction for the alk.layer.POILayer that only draws icons from a set of icons organized by POI Category.

new alk.style.IconPOILayerStyle(opt_options)

This constructor creates a Style Function to style the POI Layer.

Name Type Description
options Object

Extends

Members

layer{ol.layer.Vector}

Methods

setLayer(layer) inherited

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) inherited

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>}

Name Type Description
feature ol.Feature
resolution number