Class: IWSelectionManager

IWSelectionManager

Manager class to handle basic functionalities to layers and to initialize a IWSelectableMap

new IWSelectionManager()

constructor initialize the manager and loads all available layers. If the layers are loaded, the Event 'oninitialize' is thrown

Methods


createSelectableMap(map, layerId)

initialize a IWSelectableMap. Throws a 'oninitialize'-Event, if the selectableMap is initialized.
Parameters:
Name Type Description
map IWMap the underlying map
layerId String id of the baselayer
Returns:
Type
IWSelectableMap

getLayerItems(layerId, start, limit)

load the items of the specified layer. Throws the event 'onlayeritemsload', if the layer items are loaded
Parameters:
Name Type Description
layerId id id of the baselayer
start int index of the first item
limit int Number of required elements
Returns:
e.g. [{"itemId": "123", "itemName": "abc"}, ...] (Event 'onlayeritemsload')
Type
JsonArray

getLayers()

get the available baselayers
Returns:
Array with objects of baselayers (layerId, layerName)
Type
Array

getVerlagsinfos(werk, input, filter, callback)

load all informations to a publishing company
Parameters:
Name Type Description
werk String "OETB", "TB" or "GS"
input Object query parameters: {"buch":"...","verlag":"...","buchabschnitt":"...","vorwahl":"..."
filter String comma seperated list of attributes, e.g. "buch,verlag". Results are group by this filter attributes
callback function contains success flag and result