Class IWLayer

Extends IWLayerInterface.

A class which encapsulates a value-key pair of layername and shapefile.

Author: JAN, KUN

Constructor Summary
IWLayer(map, layerTitle, layerName, idfLayerName)
            Creates a new layer object.
 
Method Summary
 void add(node)
           Overwrites function to prevent layer from adding children
 void addLayer(node)
           Delegates to add() and throws exception.
 void addShape(newShape)
           Adds a new shape to the layer.
 void collapse(node)
           Overwrites function to prevent layer collapse
 void expand(node)
           Overwrites function to prevent layer expand
 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.
 int 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(newIdfLayerName)
           Sets the name of the idflayer.
 void setLayerName(newLayerName)
           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()
remove(node)
getName()
setName(newName)
checkIfExistsAsParent(node)
mark()
unmark()
isMarked()
isCollapsed()


Constructor Detail

IWLayer

IWLayer(map, layerTitle, layerName, idfLayerName)

Method Detail

add

void add(node)

addLayer

void addLayer(node)

addShape

void addShape(newShape)

collapse

void collapse(node)

expand

void expand(node)

getCurrentShapeName

String getCurrentShapeName(newZoomLevel)

getIdfLayerName

String getIdfLayerName()

getLayerName

String getLayerName()

getLayerTitle

String getLayerTitle()

getShapes

IWShape[] getShapes()

getUseLabelsOrTilesForDrawing

int getUseLabelsOrTilesForDrawing()

isVisible

boolean isVisible()

removeShape

boolean removeShape(shapeName)

setIdfLayerName

void setIdfLayerName(newIdfLayerName)

setLayerName

void setLayerName(newLayerName)

setLayerTitle

void setLayerTitle(layerTitle)

setUseLabelsOrTilesForDrawing

void setUseLabelsOrTilesForDrawing(labelsOrTiles)

setVisibility

void setVisibility(visibility)

toString

String toString()

Event Detail

triggerOnRemove

void triggerOnRemove()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:50 GMT+0100 (MEZ)