new IWOverlayManager(map, container)
Creates an overlay manager for the specified map.
Parameters:
Name | Type | Description |
---|---|---|
map |
IWMap | |
container |
HTMLDivElement | the DIV container (divOverlay) on which the overlays are added. |
Methods
-
getAllClusteredOverlays()
-
Returns the overlays of all clustered layers.
Returns:
- Type
- Array.<object>
-
getAllOverlays()
-
Returns the overlays of all (non-clustered) layers.
Returns:
- Type
- Array.<IWOverlay>
-
getClusterLayer(level)
-
Returns the clustered overlay layer for the specified level.
Parameters:
Name Type Description level
number the layer number Returns:
-
getLayer(level)
-
Returns the overlay layer for the specified level.
Parameters:
Name Type Description level
number the layer number Returns:
- Type
- IWOverlayLayer
-
getNextUnusedClusterLayer(level)
-
Returns the next unused overlay layer starting from the specified level. If you specify level 5 but this is already in use, you will get the next free one starting at level 6.
Parameters:
Name Type Description level
number the layer number Returns:
-
getNextUnusedLayer(level)
-
Returns the next unused overlay layer starting from the specified level. If you specify level 5 but this is already in use, you will get the next free one starting at level 6.
Parameters:
Name Type Description level
number the layer number Returns:
- Type
- IWOverlayLayer
-
isVisible()
-
Returns
true
if the overlay layers are visible, otherwise it returnsfalse
.Returns:
- Type
- boolean
-
redraw()
-
Redraws all overlays. Goes through all overlays and calls the
redraw()
method.Returns:
- Type
- void
-
removeAllLayers()
-
Removes all layers from the map.
Returns:
- Type
- void
-
removeLayer(level)
-
Removes the specified layer from the map.
Parameters:
Name Type Description level
number the layer number Returns:
- Type
- void
-
setVisible(visible)
-
Sets the visibility for all overlay layers.
Parameters:
Name Type Description visible
boolean Returns:
- Type
- void
-
toString()
-
Returns a string representation of this overlay manager.
Returns:
- Type
- String