new OverlayBase(config)
Base class for overlays served from the GeognoSIS http interface
Parameters:
Name |
Type |
Description |
config |
Object
|
Configuration for this object. The config supplied directly extends the control |
Members
events
Properties:
id
Properties:
Name |
Type |
Description |
id |
string
|
A unique ID generated during object instantiation. |
isInGroup
Properties:
Name |
Type |
Description |
isInGroup |
boolean
|
True if this layer is in a group otherwise false |
layer
Properties:
Name |
Type |
Description |
layer |
OpenLayers.Layer
|
The Open Layers layer this overlay belongs to |
name
Properties:
Name |
Type |
Description |
name |
string
|
The name of this overlay |
visibility
Properties:
Name |
Type |
Description |
visibility |
boolean
|
The visibility of this overlay, true if this overlay is visible otherwise false |
Methods
createId() → {string}
Create a unique ID value for the layer. If the property CLASS_NAME is defined it will be used as a prefix to the ID, otherwise it will default to 'Cadcorp.GeognoSIS.OverlayBase'.
Returns:
The unique ID.
-
Type
-
string
destroy()
Destroy this object
redraw(force)
Redraw the layer
Parameters:
Name |
Type |
Description |
force |
boolean
|
Force redraw by adding random parameter. |
setVisibility(visibility)
Set the visibility flag for the layer and hide/show & redraw accordingly.
Parameters:
Name |
Type |
Description |
visibility |
visibility
|
True to show the overlay otherwsie false |
setVisibilityFromLayers()
Sets the visibility of the group.