Ignore:
Timestamp:
07/08/07 14:26:24 (12 years ago)
Author:
domlowe
Message:

fixed back button and refined search so selection is retained

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/discovery.py

    r2771 r2773  
    7979            # ------------- Handle Location Bounding -------- 
    8080            # default form has a global bounding box 
    81             bbox=[self.inputs['bboxN'],self.inputs['bboxS'],self.inputs['bboxW'],self.inputs['bboxE']] 
     81            bbox=[self.inputs['bboxN'],self.inputs['bboxW'],self.inputs['bboxE'],self.inputs['bboxS']] 
    8282             
    8383            self.__checkbox(bbox) 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/js/OLMapBox.js

    r2768 r2773  
    3434        this.subselControl = new SubSelectionMouseToolbar(new OpenLayers.Pixel(mapWidth-40,10), 
    3535                                                   'vertical', this.boxesLayer); 
    36         this.map.events.register('moveend', this, this.updateSelectionForm); 
    37         this.map.events.register('zoomend', this, this.updateSelectionForm); 
    3836 
    3937 
     
    5553        this.map.addLayer(this.boxesLayer); 
    5654 
     55        // We must do a zoom before registering the update events. 
     56        this.map.zoomToExtent(this.globalBounds);        
     57        this.map.events.register('moveend', this, this.updateSelectionForm); 
     58        this.map.events.register('zoomend', this, this.updateSelectionForm); 
     59 
    5760        // Set the selection box if the form bounds aren't global. 
    5861        var bounds = this.getSelectionFormBounds(); 
    59         if (bounds.equals(this.globalBounds)) { 
    60             this.map.zoomToExtent(this.globalBounds);    
    61         } 
    62         else { 
     62        if (!bounds.equals(this.globalBounds)) { 
    6363            this.updateSelectionBox(null, bounds); 
    6464        } 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/advanced.kid

    r2759 r2773  
    9292                        </td></tr> 
    9393                        <tr><td colspan="3">(Units: degrees, north and east positive)</td></tr> 
    94                     <tr><td colspan="2"><input type="button" value="Clear selection" onclick="app.clearSubsel()"/></td></tr> 
    9594                    </table> 
    9695                </div> <!-- end right div --> 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ndgPage.kid

    r2760 r2773  
    1818          var app = null; 
    1919          function initOLMapBox() { 
    20             app = new OLMapBoxApp('map','discoForm'); 
     20            app = new OLMapBoxApp('map','discoForm', 440, 10); 
    2121          } 
    2222        </script> 
Note: See TracChangeset for help on using the changeset viewer.