Changeset 6019 for cowsclient


Ignore:
Timestamp:
18/11/09 09:35:04 (10 years ago)
Author:
pnorton
Message:

Moved the path of the transparent background gif to the wmsviz template so that it can use the server path.

Location:
cowsclient/trunk/cowsclient
Files:
2 edited

Legend:

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

    r5878 r6019  
    2929     */ 
    3030    initialize: function (div, numZoomLevels, mapWidth, showCoast,  
    31                          initialBounds, eventsManager)  
     31                         initialBounds, eventsManager, bgImagePath)  
    3232    { 
    3333        this.figureCounter = 1; 
    3434        this.showCoast = showCoast; 
    3535 
    36         this.eventsManager = eventsManager;         
     36        this.eventsManager = eventsManager;    
     37        this.bgImagePath = bgImagePath; 
    3738         
    3839        // NB, can't override both numZoomLevels and minResolution with 
     
    7172        this.baseLayer =  new OpenLayers.Layer.Image( 
    7273                "None", 
    73                 '../layout/images/clear.gif', 
     74                this.bgImagePath, 
    7475                new OpenLayers.Bounds(-180, -90, 180, 90), 
    7576                new OpenLayers.Size(8, 8), 
  • cowsclient/trunk/cowsclient/templates/wmsviz.html

    r6013 r6019  
    175175 
    176176    var makeFigureURL = "$g.server/wmsviz/get_figure"; 
     177    var bgImagePath = '$g.server/layout/images/clear.gif'; 
    177178     
    178179    var allEvents = []; 
     
    205206    var boundsControl  = new WMSC.BoundsControl('dims', initialBounds, eventsManager); 
    206207    var layerControl   = new WMSC.VisAppLayers('layerTree', 'layerLeaves',wmcRetriever, 'new_endpoint', 'add_new_endpoint', initialStatus.DefaultLayerParms, eventsManager, furtherInfoLinks);   
    207     app = new WMSC.VisApp('map', 10, 640, true, initialBounds, eventsManager); 
     208    app = new WMSC.VisApp('map', 10, 640, true, initialBounds, eventsManager, bgImagePath); 
    208209 
    209210    var initialEndpoints = JSON.parse(initialSetupJSON); 
Note: See TracChangeset for help on using the changeset viewer.