| 
Community Map Builder 21 Aug 2007 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
   |
   +--Listener
         |
         +--ModelBase
               |
               +--OwsContext
   Author: Mike Adair  
Defined in OwsContext.js
Requires:
| 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 | |
      
	 
	    OwsContext 
	 
	 (modelNode, parent)
      
      Stores an OWS Context document as defined by the OGC interoperability experiment.  | 
|
| Method Summary | |
	 
	     void
	 
       | 
      
	 
	    
	       addLayer(objRef, layerNode)
	 
	 Method to add a Layer to the LayerList  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       addSLD(objRef,sldNode)
	 
	 Method to add a Sld 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
	 
       | 
      
	 
	    
	       getBaseLayerService()
	 
	 Return the service type of the bottom layer in the layer list.  | 
   
	 
	     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 a node that has the specified feature name in the context 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()
	 
	  | 
   
	 
	     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
	 
       | 
      
	 
	    
	       loadFeatures(objRef)
	 
	 listener method which loads WFS features from the context doc, after WMS layers are loaded.  | 
   
	 
	     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
	 
       | 
      
	 
	    
	       setRequestParameters(featureName, requestStylesheet)
	 
	 Listener function which sets stylesheet params for WebServiceRequests  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       setSRS(srs)
	 
	 Set the Spatial Reference System for the context document.  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       setWindowHeight(height)
	 
	 Set the Window height.  | 
   
	 
	     void
	 
       | 
      
	 
	    
	       setWindowSize(size)
	 
	  | 
   
	 
	     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 | 
OwsContext(modelNode, parent)
| 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 getBaseLayerService()
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 element value to return  
      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 node for the feature from the context doc  
      Object getSRS()
Object getVersion(feature)
feature -  the node for the feature 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 loadFeatures(objRef)
objRef -  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 setRequestParameters(featureName, requestStylesheet)
objRef -  pointer to this object  
      featureNodeId -  the id of the node in the doc to be processed by the stylesheet      
      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)
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 | ||||||||