Ignore:
Timestamp:
29/09/09 11:42:48 (11 years ago)
Author:
pnorton
Message:

Fixed the wcsdownload bounding box selection map so that it works with the new bounds control.

Also modified the templates to look for a custom config file value to set the Openlayers.js path, otherwise the compressed one will be used. Hopefully this will stop me committing the code with the wrong path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk/cowsclient/templates/wmsviz.html

    r5777 r5778  
    77 
    88<?python 
     9 
     10    from pylons import config 
     11    openlayersImportPath = config.get('openlayers_js_path', config['serverurl'] + '/js/OpenLayers.js') 
     12 
    913    def jsonParseIfNotEmpty(var): 
    1014        if var is not None and var != "": 
     
    6872<script type="text/javascript" src="$g.server/js/wmsc.js"></script> 
    6973<script type="text/javascript" src="$g.server/js/prototype.js"></script> 
    70 <script type="text/javascript" src="$g.server/js/OpenLayers.js" /> 
     74<script type="text/javascript" src="${openlayersImportPath}" /> 
    7175<script type="text/javascript" src="$g.server/js/LoadingPanel.js"></script> 
    7276 
Note: See TracChangeset for help on using the changeset viewer.