Changeset 5331 for cowsclient


Ignore:
Timestamp:
22/05/09 13:38:07 (10 years ago)
Author:
domlowe
Message:

Modified gui so dimension control keeps up with drag and drop layer list

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

Legend:

Unmodified
Added
Removed
  • cowsclient/cowsclient/public/js/dimensionControl.js

    r5266 r5331  
    190190        this.currentDims = dims; 
    191191        this._selectedDims={}; //added by domlowe - this clears out any dims left over from previous layers 
     192        this.wmsParams={}; //and same for wms params 
    192193                var dimId, dimText, div, i; 
    193194 
  • cowsclient/cowsclient/public/js/dragAndDrop.js

    r5266 r5331  
    106106        // Now update the displayed layers 
    107107                app.updateVisLayer(); 
     108                // and update the dimension control 
     109                //console.log('updating dimension control to:'); 
     110                //console.log(srcEl.dimensions); 
     111                app.dimControl.updateDomainDiv(srcEl.dimensions); 
    108112    }, 
    109113 
    110114    onDragDrop: function(e, id)  
    111     { 
    112  
     115    {            
    113116        // If there is one drop interaction, the li was dropped either on the list, 
    114117        // or it was dropped on the current location of the source element. 
     
    136139    onDrag: function(e)  
    137140    { 
    138  
    139141        // Keep track of the direction of the drag for use during onDragOver 
    140142        var y = Event.getPageY(e); 
  • cowsclient/cowsclient/public/js/layerControl.js

    r5266 r5331  
    462462            layer.setAttribute("layerName", node.data.layer); 
    463463            layer.setAttribute("wmcURL", node.data.wmcEndpoint); 
     464                layer.dimensions=node.data.layerData.getDimensions();  
    464465                layer.innerHTML =  
    465466                        '<table><tr><td class="layerTitle">' + node.data.label + 
Note: See TracChangeset for help on using the changeset viewer.