Changeset 729


Ignore:
Timestamp:
22-06-11 13:37:14 (11 months ago)
Author:
rbraam
Message:

If extent coordinates are NaN then don't add them as Envelope in WFS getFeature request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • flamingo/branches/release 3.3/fmc/LocationFinder.as

    r706 r729  
    292292    highlightlayer="highlightlayer" highlightwmsurl="http://afnemers.ruimtelijkeplannen.nl/afnemers/services?service=WMS" highlightsldservleturl="http://support.idgis.eu/sldtest"   
    293293    highlightfeaturetypename="app:Bestemmingsplangebied" highlightpropertyname="app:identificatie" 
    294     highlightmaxscale="10" matchcase="false"/> 
     294    highlightmaxscale="10" matchcase="false"> 
    295295    <string id="output" nl="[app:naamOverheid]: [app:naam]" /> 
    296296    <string id="label" nl="Zoek op RO-online naam overheid" /> 
     
    622622                                if(extent instanceof Geometry){ 
    623623                                        conn.performGetFeature(serviceLayer, Geometry(extent), whereClauses, null, false, this, reqprops); 
    624                                 } else { 
    625                                         var env:Envelope = new Envelope(extent.minx, extent.miny, extent.maxx, extent.maxy) ; 
    626                         conn.performGetFeature(serviceLayer, env, whereClauses, null, false, this, reqprops); 
    627                                 } 
    628                          
     624                                } else if (!isNaN(extent.minx) && !isNaN(extent.maxx) && !isNaN(extent.miny) && !isNaN(extent.maxy)){ 
     625                                        env = new Envelope(extent.minx, extent.miny, extent.maxx, extent.maxy) ; 
     626                        conn.performGetFeature(serviceLayer, env, whereClauses, null, false, this, reqprops, contextObject); 
     627                                } else{ 
     628                                        conn.performGetFeature(serviceLayer, null, whereClauses, null, false, this, reqprops); 
     629                                } 
    629630                        } else if (serviceFeatures != null) { 
    630631                                foundlocations = new Array(); 
     
    13851386//public function onData(locationfinder:MovieClip):Void { 
    13861387// 
    1387  
Note: See TracChangeset for help on using the changeset viewer.