new NoticeBoardControl(config)
Displays the notice board
Parameters:
Name |
Type |
Description |
config |
Object
|
Configuration for this object. The config supplied directly extends the control |
Members
binder
Properties:
Name |
Type |
Description |
binder |
Cadcorp.Binder
|
The template binder to use |
collapsibleNotices
Properties:
Name |
Type |
Description |
collapsibleNotices |
boolean
|
True if the notices should be collapsible, otherwise false |
currentLocation
Properties:
epsgCode
Properties:
Name |
Type |
Description |
epsgCode |
number
|
The epsg code to transform coordinates to. |
errorText
Properties:
Name |
Type |
Description |
errorText |
string
|
The error text to display in the event of an error performing a query |
id
Properties:
Name |
Type |
Description |
id |
string
|
The id for this control |
loadingLayersText
Properties:
Name |
Type |
Description |
loadingLayersText |
string
|
The text to display while loading the layers |
localKnowledgeID
Properties:
Name |
Type |
Description |
localKnowledgeID |
number
|
The ID of the local knowledge used by the current noticeboard |
m_notices
Properties:
m_noticesUI
Properties:
m_projection
Properties:
Name |
Type |
Description |
m_projection |
object
|
Proj4js projection object from the epsgcode. |
noticeBoardID
Properties:
Name |
Type |
Description |
noticeBoardID |
number
|
The ID of the current noticeboard |
noticeBoardName
Properties:
Name |
Type |
Description |
noticeBoardName |
string
|
The name of the current noticeboard |
notices
Properties:
Name |
Type |
Description |
notices |
Object
|
Hash table, keyed on notice id, that has an array of layer names for each notice |
prefix
Properties:
Name |
Type |
Description |
prefix |
string
|
The asp.net client id |
queryingLayersText
Properties:
Name |
Type |
Description |
queryingLayersText |
string
|
The text to display while querying the layers |
webServiceUrl
Properties:
Name |
Type |
Description |
webServiceUrl |
string
|
The base url to the web service |
Methods
setLocation(x, y, epsgCode, text)
Sets a new location. Causes the local knowledge query for each layer to be executed again
Parameters:
Name |
Type |
Description |
x |
number
|
The x coordinate this noticeboard will use for the query |
y |
number
|
The y coordinate this noticeboard will use for the query |
epsgCode |
number
|
The epsgCode of the coordinates this noticeboard will use for the query |
text |
number
|
The text part of a location |
showClosedNotices()
Shows all the notices that have been hidden by the user