|
Community Map Builder 27 Apr 2008 | ||||||||
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, debug, url, method, namespace, template, nodeSelectXpath, 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 Geospatial Consortium (http://www.opengeospatial.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
|
clearTimeExtent( objRef )
clear the time extent created by initTimeExtent |
void
|
deleteLayer(objRef, layerId)
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( layerId )
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(layerId)
Get the layer's visiblity attribute value. |
Object
|
getLayer(layerId)
Method to get a layer with the specified name in the context doc |
Object
|
getLayerIdByName(layerName)
Method to get a layer id with the specified id/name in the context doc |
Object
|
getMethod(feature)
Get HTTP method for the specified feature |
Object
|
getOpacity(layerId)
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, layerId)
Method to move a Layer in the LayerList down |
void
|
moveLayerUp(objRef, layerId)
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(layerId, hidden)
Change a Layer's visibility. |
void
|
setOpacity(layerId, 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 |
getProperty, 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 clearTimeExtent( objRef )
objRef
- reference to this model
void deleteLayer(objRef, layerId)
layerId
- the Layer to be deleted
Object getAllLayers()
Object getBoundingBox()
Object getCurrentTimestamp( layerId )
layerId
- 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(layerId)
layerId
- The name of the layer that is to be changed
Object getLayer(layerId)
layerId
- the id of the layer to be returned
Object getLayerIdByName(layerName)
layerName
- the name of the layer of which the id is to be returned
Object getMethod(feature)
feature
- the Layer node from the context doc
Object getOpacity(layerId)
layerId
- 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, layerId)
layerId
- the layer to be moved
void moveLayerUp(objRef, layerId)
layerId
- 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(layerId, hidden)
layerId
- The name of the layer that is to be changed
hidden
- String with the value to be set; 1=hidden, 0=visible.
void setOpacity(layerId, Opacity)
layerId
- 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 27 Apr 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |