Changeset 5567


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

Forgot to include this file with the last commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/branches/qesdi/cowsclient/templates/wmsviz.html

    r5557 r5567  
    9696{ 
    9797 
     98        var initialSetupJSON = "${c.initialSetupJSON}"; 
     99        var baseLayerJSON = "${c.baseLayerJSON}"; 
     100 
     101        var baseLayerData = JSON.parse(baseLayerJSON); 
     102         
     103        WMSC.log("baseLayerData.url = " + baseLayerData.url); 
     104        WMSC.log("baseLayerData.params = " + baseLayerData.params); 
     105         
     106         
    98107    var wmcRetriever = new WMCRetriever(); 
    99108         
    100         layerList = new LayerList('layer_list'); 
    101          
     109        layerList = new LayerList('layer_list');         
    102110    layerParameters = new LayerParameters('layer_properties', 'selection_form', wmcRetriever); 
    103111     
     
    113121 
    114122 
    115     figBuilder.addLayerOrderChangedHandlers(layerList.events); 
    116      
     123    figBuilder.addLayerOrderChangedHandlers(layerList.events);     
    117124    layerList.addSelectorHandlers(layerControl.events); 
    118125    layerParameters.addLayerListHandlers(layerList.events); 
    119126    legendContainer.addLayerParametersHandlers(layerParameters.events); 
    120127     
    121     app = new WMSC.VisApp('map', 10, 640, true); 
     128    app = new WMSC.VisApp('map', 10, 640, true, baseLayerData.url, baseLayerData.params); 
    122129 
    123130    boundsControl.addMapSelectionChanged(app.events) 
     
    129136 
    130137    if (document.getElementById('wcsdownload') == null) { 
    131         createDownloadButton(wcsdownloadDiv);     
     138        createDownloadButton(document.getElementById('wcsdownloadDiv'));     
    132139    } 
    133  
    134     var initialSetupJSON = "${c.initialSetupJSON}"; 
     140     
     141     
     142     
    135143 
    136144    var initialEndpoints = JSON.parse(initialSetupJSON); 
     
    281289                                    <ul class="draglist" id="layer_list"> 
    282290                                    </ul> 
    283                                     <input type="button" value="Remove Selected" id="btn_remove_selected_layer" /> 
    284291                                </div> 
     292                            <input type="button" value="Remove Selected" id="btn_remove_selected_layer" /> 
    285293                            </div> 
    286294                        </td> 
Note: See TracChangeset for help on using the changeset viewer.