Changeset 5485


Ignore:
Timestamp:
14/07/09 17:12:50 (10 years ago)
Author:
sdonegan
Message:

Adjusted to handle problem with definition of bbox for global searches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/models/DiscoveryState.py

    r5314 r5485  
    8686 
    8787        c += 'Bounding box: ' 
    88         if bbox is None or bbox==['90.0','-180.0','180.0','-90.0']: 
     88         
     89        #Need to put workaround for browsers that dont let map window global search = 180 etc.. 
     90        #if bbox is None or bbox==['90.0','-180.0','180.0','-90.0']: 
     91         
     92        if bbox is None or ((float(bbox[0]) >= 89) & (float(bbox[1]) <= -179) & (float(bbox[2]) >= 179) & (float(bbox[3]) <= 89)): 
     93             
    8994            c+='Global' 
     95             
    9096        else: 
    9197            overlaps = self.values['geoSearchType'] or 'overlaps' 
     
    9399                %(overlaps,bbox[3],bbox[0],bbox[1],bbox[2]) 
    94100                 
     101                 
     102           # c+='Global' # fudge sjd 
    95103        if self.values['scope']: 
    96104            if c: 
Note: See TracChangeset for help on using the changeset viewer.