As you know there is a limit on the maximum number of features you can show on a map, is there a way to go beyond this limit?
query = new Query(); fl=FeatureLayer.SELECTION_NEW; allCarolinaCounties = new FeatureLayer("http://server.url/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["field1", "field2", "field3"] }); allCarolinaCounties.setDefinitionExpression("field4='value'"); c allCarolinaCounties.setSelectionSymbol(highlightSymbol); map.addLayer(fl); map.addLayer(allCarolinaCounties); // then in another place function showPop(){ var pop=$("#tpop").val(); query.where="field1 = '"+pop+"'"; allCarolinaCounties.clearSelection(); allCarolinaCounties.selectFeatures(query, fl, function(features){ /*do nothing*/ }); } // showPop
Solved! Go to Solution.
Hi Loai,
The maximum number of records returned will be controlled by the service. You can adjust this in the service properties. Ex:
Hi Loai,
The maximum number of records returned will be controlled by the service. You can adjust this in the service properties. Ex:
Thank you very much!
How do you access the <Properties> of a service?
Right-click on the service in the Catalog window > Service Properties.
This is so awesome. More than 1,000 features!!! YES!!!!