Changeset 5878


Ignore:
Timestamp:
23/10/09 16:37:59 (10 years ago)
Author:
pnorton
Message:

Made some changes to increase performance. Also increased the default legend size so that boxes can be drawn instead of the continuous bar.

Location:
cowsclient/trunk
Files:
7 edited

Legend:

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

    r5814 r5878  
    424424         
    425425        var layer = new OpenLayers.Layer.WMS("#" + this.idIndex + " " + layerName,  
    426                 url, defaultParams); 
     426                url, defaultParams, {isBaseLayer:false, buffer:0}); 
    427427 
    428428        layer.params['LAYERS'] = layerName; 
  • cowsclient/trunk/cowsclient/public/js/layerDimensions.js

    r5851 r5878  
    6464         
    6565 
    66         var div, i; 
     66        var i; 
    6767        var dims = wmcLayer.getDimensions(); 
    6868        var fs = document.createElement('fieldset'); 
     
    8484            } 
    8585             
    86             fs.appendChild(select.build(div)); 
     86            fs.appendChild(select.build()); 
    8787 
    8888        } 
  • cowsclient/trunk/cowsclient/public/js/mapControl.js

    r5787 r5878  
    5252                controls: [], 
    5353                tileSize: new OpenLayers.Size(320,320) 
    54                             
    5554            } 
    5655        ); 
  • cowsclient/trunk/cowsclient/public/js/outlineControl.js

    r5821 r5878  
    3333                    this.url,  
    3434                    this.params, 
    35                     {isBaseLayer:false, buffer:3}); 
     35                    {isBaseLayer:false, buffer:1}); 
    3636         
    3737            // must set these parameters or the map wil not draw 
  • cowsclient/trunk/cowsclient/public/js/splitAxisSelect.js

    r5851 r5878  
    7070            div.appendChild(sel); 
    7171            div.appendChild(document.createTextNode("\n")); 
     72            container.appendChild(div); 
    7273        } 
    7374     
    74         container.appendChild(div); 
    7575         
    7676        var value = this.data.axisValues[0]; 
  • cowsclient/trunk/cowsclient/public/layout/open_layers_map.css

    r5818 r5878  
    2222DIV#legend { 
    2323  width: 640px; 
    24   height:80px; 
     24  height:120px; 
    2525  margin: 1px; 
    2626} 
  • cowsclient/trunk/displayOptions.ini

    r5842 r5878  
    44[HideOptions:wms] 
    55endpoint=http://ice.badc.rl.ac.uk:5000/[^/]*/wms? 
    6 options=show_grid_lines,intervalColourbar,intervalNames 
     6options=show_grid_lines,intervals,intervalNames,cbar_style,disable_subset 
    77 
    88[DefaultOptions] 
     
    1717endpoint=http://ice.badc.rl.ac.uk:5000/psc[^/]*/wms 
    1818layers=.* 
    19 values=intervalColourbar|true,intervalNames|Land%%2CNo%%2520Data%%2CPicoplankton%%2CNanoplankton%%2CMicroplankton 
     19values=intervals|-0.5%%2C0.5%%2C1.5%%2C2.5%%2C3.5%%2C4.5,intervalNames|Land%%2CNo%%2520Data%%2CPicoplankton%%2CNanoplankton%%2CMicroplankton,cbar_style|legend 
    2020 
    2121# not need to double quote spaces as well as double up % marks,  
Note: See TracChangeset for help on using the changeset viewer.