AnsweredAssumed Answered

not all features shown after layer query

Question asked by conabio_sig on Nov 18, 2015

Dear all,

 

We´re preparing a storymap with demographic data:

http://speck.conabio.gob.mx/cruzada/GRR/As/index.html

 

Since we have more than 7000 entries for small settlements (>2500 inhabitants), we try to apply a filter (query) defining different ranges of visibility (to avoid visual overload of the map).

 

Although the filters seems to apply fine, we noticed that just a part (about 2000 points) of a total of 7000 shows up in the map (see figure below).

 

In technical terms:

 

1.) We define a selection mode by:

 

var pobTot2500_mex = new esri.layers.FeatureLayer (http://services3.arcgis.com/lJPpeQVgQ9Gdmm11/arcgis/rest/services/urbrloc10gw/FeatureServer/0,{

                                      mode: esri.layers.FeatureLayer.MODE_SELECTION,

                                                                            outFields: ["*"]

                                         });

 

2.) We create the query:

function queryMapLayer(levelChange , layerQuery , num){
                                      query = new esri.tasks.Query();                                      
                                      if (num == 1){ query.where = "ENTIDAD = " + configOptions.entidad + "";    }
                                      if (num == 2){ query.where = "CVE_EDO = " + configOptions.entidad + " AND POBTOT10_E = '>10,000'";       }       
                                      if (num == 3){ query.where = "CVE_EDO = " + configOptions.entidad + " AND POBTOT10_E = '5,001 - 10,000'";}
                                      if (num == 4){ query.where = "CVE_EDO = " + configOptions.entidad + " AND POBTOT10_E = '2,500 - 5,000'";}
                                      if (num == 5){ query.where = "CVE_EDO = " + configOptions.entidad + " AND POBTOT10_E = '1 - 2,499'";     } 
                                      
                                       layerQuery.selectFeatures(query,esri.layers.FeatureLayer.SELECTION_NEW,function(shapefile){});
                                      mapAddLayer(layerQuery)
                               }

 

3) However, for  the last query (if (num == 5){  query.where = "CVE_EDO = " + configOptions.entidad + " AND POBTOT10_E = '1 - 2,499'";     }

) just a part of the points in the feature layer show (see below).

 

The part of points shown in the map seems to follow an alphabetic order. It seems that the counties are sorted alphabetically, and than point of the first counties are shown, until the list stops at some point.

 

 

Is there any limitation in this regard?

 

Any hints?

 

thank you and best regards,

 

Flo

 

FloCaptura_de_pantalla_111815_045532_PM.jpg

Outcomes