SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by IWMap, manages event and data handling for layers.
Author: KUN, JANConstructor Summary | |
IWLayerInfoManager(map)
Can add IWRequestLayer, they will start to throw 'ondatareceive' events. |
Method Summary | |
boolean
|
addRequestLayer(requestLayer)
Adds a requestLayer. |
IWPoint
|
getCaptureOffset()
Returns the capture offset. |
IWSize
|
getCaptureSize()
Returns the capture size. |
Object
|
getMaximumHits()
Returns maximum hits for given layer. |
boolean
|
removeRequestLayer(requestLayer)
Removes a requestLayer |
void
|
setCaptureOffset(offset)
Sets the capture offset. |
void
|
setCaptureSize(newCaptureSize)
Sets the capture size of the GetIdentifyInfo mapserver request. 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. |
|
setMaximumHits(maxHits)
Defines maximum hits per layer. |
String
|
toString()
Returns a string representation of this object. |
Event Summary | |
void
|
triggerOnDataReceive(event)
The onDataReceive event is fired when data is received. Register an event listener with IWEventManager.addListener(map.getLayerInfoManager(), 'ondatareceive', yourHandlerMethod(event)); to receive the event. |
Constructor Detail |
IWLayerInfoManager(map)
IWMap map
Method Detail |
boolean addRequestLayer(requestLayer)
IWRequestLayer requestLayer
boolean
true if succefully added, false if already existing
IWPoint getCaptureOffset()
IWPoint
IWSize getCaptureSize()
IWSize
Object getMaximumHits()
Object
maxHits
boolean removeRequestLayer(requestLayer)
IWRequestLayer requestLayer
boolean
true if succefully removed, false if not found
void setCaptureOffset(offset)
IWPoint offset
void
void setCaptureSize(newCaptureSize)
IWSize newCaptureSize
void
setMaximumHits(maxHits)
Object maxHits
void
String toString()
String
Event Detail |
void triggerOnDataReceive(event)
Register an event listener with IWEventManager.addListener(map.getLayerInfoManager(), 'ondatareceive', yourHandlerMethod(event)); to receive the event.
IWLayerInfoEvent event
- the info event
void