Class: IWRequestLayer

IWRequestLayer

A class that creates a new request layer.

new IWRequestLayer(layer)

Creates a new request layer. The request layer can be added to the IWLayerInfoManager. Throws 'ondatareceive' IWLayerRequestEvent if data is provided for this layer for added events. Throws 'onremove' event if request layer is removed from infomanager.
Parameters:
Name Type Description
layer IWLayer
Since:
  • 0.69

Methods


getEvents()

Returns all events currently registered for this event
Returns:
events eventnames stored as key, value always true
Type
Object

getLayer()

Returns the layer.
Returns:
layer
Type
IWLayer

getMaximumHits()

Returns maximum hits for given layer. 'null' for no limit.
Returns:
maxHits
Type
Object

registerEvent(eventName)

Adds specific event for this layer.
Parameters:
Name Type Description
eventName String
Returns:
bool true if successfully added, false if already present
Type
boolean

setMaximumHits(newMaxHits)

Defines maximum hits per layer. Set 'null' for no limit. Default is 5.
Parameters:
Name Type Description
newMaxHits Object
Returns:
void

unregisterEvent(eventName)

Removes specific event for this layer.
Parameters:
Name Type Description
eventName String
Returns:
bool true if successfully removed, false if not found
Type
boolean