|
Community Map Builder 21 Aug 2007 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Listener
|
+--ModelBase
|
+--Context
Defined in Context.js
Author: Cameron Shorter
| Field Summary | |
Object |
namespace
|
| Fields inherited from class ModelBase |
async, contentType, modelNode, id, title, url, template, config, parentModel
|
| Fields inherited from class Listener |
listeners, values
|
| Constructor Summary | |
Context
(modelNode, parent)
Stores a Web Map Context (WMC) document as defined by the Open GIS Consortium http://opengis.org and extensions the the WMC. |
|
| Method Summary | |
void
|
addLayer(objRef, layerNode)
Method to add a Layer to the LayerList |
void
|
addSLD(objRef,sldNode)
Method to add a Sld tag to the StyleList |
void
|
deleteLayer(objRef, layerName)
Method to remove a Layer from the LayerList |
Object
|
getAllLayers()
Method to get a list of all layers in the context doc TBD: merge this with above, passing queryable as an optional boolean param? |
Object
|
getBoundingBox()
Get the BoundingBox value from the Context document. |
Object
|
getCurrentTimestamp( layerName )
Returns the current timestamp value. |
Object
|
getExtension()
Returns the contents of the extension element |
Object
|
getFeatureNode(featureName)
Returns the Layer node with the specified name from the list of nodes selected by the nodeSelectXpath from the capabilities doc. |
Object
|
getHidden(layerName)
Get the layer's visiblity attribute value. |
Object
|
getLayer(layerName)
Method to get a layer with the specified name in the context doc |
Object
|
getMethod(feature)
Get HTTP method for the specified feature |
Object
|
getOpacity(layerName)
Get the layer's opacity attribute value. |
Object
|
getQueryableLayers()
Method to get a list of queryable layers |
Object
|
getServerUrl(requestName, method, feature)
Returns the serverUrl for the layer passed in as the feature argument. |
Object
|
getSRS()
Get the Spatial Reference System from the context document. |
Object
|
getVersion(feature)
Returns the WMS version for the layer passed in as the feature argument |
Object
|
getWindowHeight()
Get the Window height. |
Object
|
getWindowSize()
Returns the width/height of the map window as an array |
Object
|
getWindowWidth()
Get the Window width. |
void
|
initAoi(objRef)
Set the aoi param and call the refresh listeners |
void
|
initBbox(objRef)
Set the BoundingBox element and call the refresh listeners |
Object
|
initProj(objRef)
Get the Projection object from the context document. |
void
|
initTimeExtent( objRef )
Parses a Dimension element from the Context document as a loadModel listener. |
void
|
moveLayerDown(objRef, layerName)
Method to move a Layer in the LayerList down |
void
|
moveLayerUp(objRef, layerName)
Method to move a Layer in the LayerList up |
void
|
setBoundingBox(boundingBox)
Set the BoundingBox element and call the refresh listeners |
Object
|
setExtension(extensionNode)
Adds a node to the Context document extension element. |
void
|
setHidden(layerName, hidden)
Change a Layer's visibility. |
void
|
setOpacity(layerName, Opacity)
Change a Layer's opacity |
void
|
setSRS(srs)
Set the Spatial Reference System for the context document. |
void
|
setWindowHeight(height)
Set the Window height. |
void
|
setWindowSize(size)
Set the Window width and height in one function call to avoid a resize event in between setting width and height, because that causes checkBbox to be triggered, which adjusts the bbox then when it should not yet be adjusted. |
void
|
setWindowWidth(width)
Set the Window width. |
| Methods inherited from class ModelBase |
getXpathValue, setXpathValue, loadModelDoc, setModel, finishLoading, newRequest, deleteTemplates, saveModel, createObject, loadObjects, parseConfig, refresh, init, clearModel
|
| Methods inherited from class Listener |
addListener, addFirstListener, removeListener, callListeners, setParam, getParam
|
| Field Detail |
Object namespace
| Constructor Detail |
Context(modelNode, parent)
modelNode - Pointer to the xml node for this model from the config file.
parent - The parent model for the object.
| Method Detail |
void addLayer(objRef, layerNode)
layerNode - the Layer node from another context doc or capabiltiies doc
void addSLD(objRef,sldNode)
layerName - the Layer name from another context doc or capabiltiies doc
void deleteLayer(objRef, layerName)
layerName - the Layer to be deleted
Object getAllLayers()
Object getBoundingBox()
Object getCurrentTimestamp( layerName )
layerName - the name of the Layer from which the timestamp list was generated
Object getExtension()
Object getFeatureNode(featureName)
featureName - name of the featureType to look up
Object getHidden(layerName)
layerName - The name of the layer that is to be changed
Object getLayer(layerName)
layerName - the layer to be returned
Object getMethod(feature)
feature - the Layer node from the context doc
Object getOpacity(layerName)
layerName - The name of the layer that is to be changed
Object getQueryableLayers()
Object getServerUrl(requestName, method, feature)
requestName - ignored for context docs (only GetMap supported)
method - ignored for context docs (only GET supported)
feature - the Layer node from the context doc
Object getSRS()
Object getVersion(feature)
feature - the Layer node from the context doc
Object getWindowHeight()
Object getWindowSize()
Object getWindowWidth()
void initAoi(objRef)
boundingBox - array in the sequence (xmin, ymin, xmax, ymax).
void initBbox(objRef)
boundingBox - array in the sequence (xmin, ymin, xmax, ymax).
Object initProj(objRef)
void initTimeExtent( objRef )
objRef - a pointer to this object
void moveLayerDown(objRef, layerName)
layerName - the layer to be moved
void moveLayerUp(objRef, layerName)
layerName - the layer to be moved
void setBoundingBox(boundingBox)
boundingBox - array in the sequence (xmin, ymin, xmax, ymax).
Object setExtension(extensionNode)
extensionNode - the node to be appended in the extension element.
void setHidden(layerName, hidden)
layerName - The name of the layer that is to be changed
hidden - String with the value to be set; 1=hidden, 0=visible.
void setOpacity(layerName, Opacity)
layerName - The name of the layer that is to be changed
Opacity - Value of the opacity
void setSRS(srs)
srs - The Spatial Reference System.
void setWindowHeight(height)
height - The height of map window to set in the context document
void setWindowSize(size)
size - Size of the map window as (width, height) array
void setWindowWidth(width)
width - The width of map window to set in the context document
|
Community Map Builder 21 Aug 2007 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||