Changeset 5787 for cowsclient


Ignore:
Timestamp:
01/10/09 15:58:04 (10 years ago)
Author:
pnorton
Message:

Removed some unused parameters form the map control.

Location:
cowsclient/trunk/cowsclient
Files:
2 edited

Legend:

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

    r5776 r5787  
    2929     */ 
    3030    initialize: function (div, numZoomLevels, mapWidth, showCoast,  
    31                          baseLayerURL, baseLayerParams, initialBounds, 
    32                          eventsManager)  
     31                         initialBounds, eventsManager)  
    3332    { 
    3433        this.figureCounter = 1; 
     
    7069        this.map.addControl(new OpenLayers.Control.MousePosition()); 
    7170 
    72         //Force no transparency 
    73         baseLayerParams.transparent = false; 
    74          
    75         this.baseLayer = new OpenLayers.Layer.WMS( 
    76                 'BaseLayer', 
    77                 baseLayerURL, 
    78                 baseLayerParams); 
    79           
    80         // {'maxResolution':'auto'} 
    81          
    82         var lyrBaseClear = new OpenLayers.Layer.Image( 
     71         
     72        this.baseLayer =  new OpenLayers.Layer.Image( 
    8373                "None", 
    8474                '../layout/images/clear.gif', 
     
    8878                 resolutions: resolutions} 
    8979            ); 
    90          
    91         this.baseLayer = lyrBaseClear; 
    92          
     80                 
    9381        this.map.addLayer(this.baseLayer); 
    9482        this.map.setLayerIndex(this.baseLayer, 0); 
  • cowsclient/trunk/cowsclient/templates/wmsviz.html

    r5778 r5787  
    168168    var boundsControl = new WMSC.BoundsControl('dims', initialBounds, eventsManager); 
    169169    var layerControl = new WMSC.VisAppLayers('layerTree', 'layerLeaves',wmcRetriever, 'new_endpoint', 'add_new_endpoint', defaultOptions, eventsManager);   
    170     app = new WMSC.VisApp('map', 10, 640, true, baseLayerData.url, baseLayerData.params, initialBounds, eventsManager); 
     170    app = new WMSC.VisApp('map', 10, 640, true, initialBounds, eventsManager); 
    171171 
    172172    var initialEndpoints = JSON.parse(initialSetupJSON); 
Note: See TracChangeset for help on using the changeset viewer.