new Theme(config)
Represents a theme for a layer served from the GeognoSIS http interface
Parameters:
Name |
Type |
Description |
config |
Object
|
Configuration for this object. The config supplied directly extends the control |
Members
components
Properties:
Name |
Type |
Description |
components |
Array.<Cadcorp.GeognoSIS.ThemeComponent>
|
null
|
The components that make up this theme |
disabled
Properties:
Name |
Type |
Description |
disabled |
boolean
|
Is this theme disabled, retrieved from the _bDisabled& property |
events
Properties:
layer
Properties:
layerIndex
Properties:
Name |
Type |
Description |
layerIndex |
number
|
The index of the layer this column belongs to |
name
Properties:
Name |
Type |
Description |
name |
string
|
The name of this theme, retrieved from the _title$ property |
photometricInterpretation
Properties:
Name |
Type |
Description |
photometricInterpretation |
string
|
How the legend image is to be rendered |
- Default Value:
properties
Properties:
Name |
Type |
Description |
properties |
object
|
The complete property map for the theme |
sessionID
Properties:
Name |
Type |
Description |
sessionID |
string
|
The GeognoSIS session ID |
themeIndex
Properties:
Name |
Type |
Description |
themeIndex |
number
|
The index of this theme |
themeType
Properties:
Name |
Type |
Description |
themeType |
string
|
The type of the theme, retrieved from the Type property |
url
Properties:
Name |
Type |
Description |
url |
string
|
The base url to GeognoSIS |
Methods
getLegendUrl() → {string}
Get the url for the legend.
Returns:
The url
-
Type
-
string
isLabel() → {boolean}
Is this theme a label theme
Returns:
True if this theme is a label theme, otherwise false
-
Type
-
boolean
isProcess() → {boolean}
Is this theme a process theme
Returns:
True if this theme is a process theme, otherwise false
-
Type
-
boolean
Events
themeloaded
Theme loaded event
Type:
Properties: