Changeset 5754 for cowsclient


Ignore:
Timestamp:
23/09/09 09:31:12 (10 years ago)
Author:
pnorton
Message:

Added a warning message if a openlayers layer isn't found in the associated capabilities document.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/public/js/layerParameters.js

    r5719 r5754  
    118118        //find the dimensions for the layer 
    119119        var wmcLayer = this.searchSubLayers(wmc.getSubLayers()); 
     120         
     121        if (wmcLayer === null) { 
     122            WMSC.log("WARNING: layer " + this.currentOLLayer.params.LAYERS + " not found in capabilities document."); 
     123        } 
     124         
    120125        this.currentWMCLayer = wmcLayer; 
    121126        this.events.triggerEvent('CURRENT_WMCLAYER_CHANGED', {wmc: wmc, 
Note: See TracChangeset for help on using the changeset viewer.