Changeset 5575


Ignore:
Timestamp:
06/08/09 13:37:37 (10 years ago)
Author:
pnorton
Message:

Fixed a minor bug with the display options that caused some options not to be displayed. Also added the abstract to the layer information.

Location:
cowsclient/branches/qesdi/cowsclient/public/js
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/branches/qesdi/cowsclient/public/js/capabilities.js

    r5551 r5575  
    194194       
    195195    }, 
    196      
     196         
    197197    getLegendURL: function(style) { 
    198198        if (style == null || style == "") { 
  • cowsclient/branches/qesdi/cowsclient/public/js/layerDisplayOptions.js

    r5534 r5575  
    131131            // also add the style specific options 
    132132            var currentStyle = this._getCurrentLayerProperty('styles'); 
     133             
    133134            if (currentStyle != null) { 
    134135                if (displayOptions[currentStyle] != undefined) { 
     
    233234            if (this.currentOLLayer != null) { 
    234235                val = this.currentOLLayer.params[id.toUpperCase()]; 
     236                 
     237                if (val == "" && id.toUpperCase() == 'STYLES') { 
     238                     
     239                    //assume that the first sytle is the default one 
     240                    var styles = this.currentWMCLayer.getStyles(); 
     241                     
     242                    if (styles.length > 0) { 
     243                        val = styles[0].name; 
     244                    } 
     245                     
     246                } 
    235247            } 
    236248             
  • cowsclient/branches/qesdi/cowsclient/public/js/layerInformation.js

    r5505 r5575  
    7272            fs.appendChild(this._buildInfoItem('URL', olLayer.url)); 
    7373            fs.appendChild(this._buildInfoItem('Layer Name', this._getLayerProperty(olLayer, 'layers'))); 
     74            fs.appendChild(this._buildInfoItem('Layer Abstract', wmcLayer.getAbstract())); 
     75             
     76             
    7477             
    7578            var styles = wmcLayer.getStyles(); 
Note: See TracChangeset for help on using the changeset viewer.