Class: IWRequestFormatter

IWRequestFormatter

A utility class for formatting request parameters

new IWRequestFormatter()

This class contains some useful methodes to format url parameters.

Methods


getLayerParameter(zoomLevel, array, lablesOrTiles)

Returns a formatted string with all visible layers. e.g. &layerL1=shape1&layerL2=shape2
Parameters:
Name Type Description
zoomLevel number
array Array IWLayer or IWLayerGroup
lablesOrTiles number use IWLayer.DRAW_ON_TILES or IWLayer.DRAW_ON_LABLES
Returns:
formattedString
Type
String