SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class which encapsulates a value-key pair of layername and shapefile.
Constructor Summary | |
IWLayer(map, layerTitle, layerName, idfLayerName)
Creates a new layer object. |
Method Summary | |
|
addLayer(node)
undocumented |
void
|
addShape(newShape)
Adds a new shape to the layer. |
String
|
getCurrentShapeName(newZoomLevel)
Returns the name of the shape file which is currently visible on the map. current zoomlevel. |
String
|
getIdfLayerName()
Returns the name of the idflayer. |
String
|
getLayerName()
Returns the name of the layer. |
String
|
getLayerTitle()
Returns the title of the layer. |
IWShape[]
|
getShapes()
Returns all shapes. |
number
|
getUseLabelsOrTilesForDrawing()
Returns IWLayer.DRAW_ON_TILES or IWLayer.DRAW_ON_LABELS
|
boolean
|
isVisible()
Checks if this layer is visible or not. |
boolean
|
removeShape(shapeName)
Removes shape from this layer. |
void
|
setIdfLayerName(idfLayerName)
Sets the name of the idflayer. |
void
|
setLayerName(layerName)
Sets the name of the layer. |
void
|
setLayerTitle(layerTitle)
Sets the title of the layer. |
void
|
setUseLabelsOrTilesForDrawing(labelsOrTiles)
|
void
|
setVisibility(visibility)
Sets the visibilty for the Layer |
String
|
toString()
Returns a string representation of this layer. |
Event Summary | |
void
|
triggerOnRemove()
The onremove is fired when a layer is removed from map. Register an event listener with IWEventManager.addListener(myLayer, 'onremove', yourHandlerMethod()); to receive the event. |
Methods inherited from class IWLayerInterface |
setUseDefaults(useDefaults) |
useDefaults() |
setVisible(visible) |
Methods inherited from class IWNodeElement |
setParent(newParent) |
hasChildren() |
hasChild() |
getChildren() |
getParent() |
add(node) |
remove(node) |
getName() |
setName(name) |
checkIfExistsAsParent(node) |
mark() |
unmark() |
isMarked() |
Constructor Detail |
IWLayer(map, layerTitle, layerName, idfLayerName)
IWMap map
String layerTitle
- title of the layer
String layerName
- the name of the layer
String idfLayerName
- the name of the idflayer
Method Detail |
addLayer(node)
node
void addShape(newShape)
IWShape newShape
- the shape
void
String getCurrentShapeName(newZoomLevel)
number newZoomLevel
- the next zoomlevel
String
shapefile
String getIdfLayerName()
String
String getLayerName()
String
the name
String getLayerTitle()
String
the title
IWShape[] getShapes()
IWShape[]
number getUseLabelsOrTilesForDrawing()
IWLayer.DRAW_ON_TILES
or IWLayer.DRAW_ON_LABELS
number
boolean isVisible()
boolean
true if this layer is visible otherwise false.
boolean removeShape(shapeName)
String shapeName
boolean
void setIdfLayerName(idfLayerName)
String idfLayerName
void
void setLayerName(layerName)
String layerName
void
void setLayerTitle(layerTitle)
String layerTitle
void
void setUseLabelsOrTilesForDrawing(labelsOrTiles)
number labelsOrTiles
- possible values are IWLayer.DRAW_ON_TILES
and IWLayer.DRAW_ON_LABELS
void
void setVisibility(visibility)
boolean visibility
void
String toString()
String
Event Detail |
void triggerOnRemove()
Register an event listener with IWEventManager.addListener(myLayer, 'onremove', yourHandlerMethod()); to receive the event.
void