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/wcsdown.html

    r5759 r5778  
    55 
    66<?python 
    7 def setAtt(dict, name, value): 
    8     if value != None: 
    9         dict[name] = value 
     7 
     8    from pylons import config 
     9    openlayersImportPath = config.get('openlayers_js_path', config['serverurl'] + '/js/OpenLayers.js') 
     10 
     11 
     12    def setAtt(dict, name, value): 
     13        if value != None: 
     14            dict[name] = value 
    1015     
    1116?> 
     
    8590<!-- End of autocomplete imports --> 
    8691 
    87 <script type="text/javascript" src="$g.server/js/openlayers/lib/OpenLayers.js" /> 
     92<script type="text/javascript" src="${openlayersImportPath}" /> 
    8893<script type="text/javascript" src="$g.server/js/openlayers-x.js" /> 
    8994 
Note: See TracChangeset for help on using the changeset viewer.