Namespace: LayerUtil

LayerUtil

A utility namespace containing layer related functionality.

Methods

staticLayerUtil.getURL(bounds)

The getURL function passed to a OpenLayers TMS / Grid Layer to generate the tile urls. Can be passed as is, or appended by using 'call'. The 'this' context is set to the context of the OpenLayers layer.
Name Type Description
bounds Object The bounds object for the current tile.

staticLayerUtil.parse(layerData)

Parses a layer or an array of layer data objects, formats meta data min and max and returns either the single layer, or a map of layers keyed by layerId.
Name Type Description
layerData Object | Array layer data object or array of layer data objects.