Class: IWLayerInfoManager

IWLayerInfoManager

Implemented by IWMap, manages event and data handling for layers.

new IWLayerInfoManager(map)

Can add IWRequestLayer, they will start to throw 'ondatareceive' events.
Parameters:
Name Type Description
map IWMap
Since:
  • 0.69

Methods


addRequestLayer(requestLayer)

Adds a requestLayer.
Parameters:
Name Type Description
requestLayer IWRequestLayer
Returns:
true if successfully added, false if already existing
Type
boolean

getCaptureOffset()

Returns the capture offset.
Returns:
Type
IWPoint

getCaptureSize()

Returns the capture size.
Returns:
Type
IWSize

getMaximumHits()

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

removeRequestLayer(requestLayer)

Removes a requestLayer
Parameters:
Name Type Description
requestLayer IWRequestLayer
Returns:
true if succefully removed, false if not found
Type
boolean

setCaptureOffset(offset)

Sets the capture offset.
Parameters:
Name Type Description
offset IWPoint
Returns:
Type
void

setCaptureSize(newCaptureSize)

Sets the capture size of the GetIdentifyInfo mapserver request. The default value is set to a quadrat of 35 x 35 pixel. The capture size must be set equal or greater than the largest image size which will be drawn on the map. If the largest image has a dimension of 30 x of 30 pixels, then also the capture size must be adjusted to this size.
Parameters:
Name Type Description
newCaptureSize IWSize
Returns:
Type
void

setMaximumHits(newMaxHits)

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

toString()

Returns a string representation of this object.
Returns:
Type
String