At 10, support for query based on objectIds was added.
At 10, query operation returns additional fields array (JSON and AMF only) that contains array of field information for returned values. This array contains only fields specified in outFields parameter.
function initQueryIDCalls(){ var mapService931URL = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3"; var mapService10URL = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0"; featurelayer931 = new esri.layers.FeatureLayer(mapService931URL, {mode: esri.layers.FeatureLayer.MODE_SNAPSHOT}); featurelayer10 = new esri.layers.FeatureLayer(mapService10URL, {mode: esri.layers.FeatureLayer.MODE_SNAPSHOT}); var query = new esri.tasks.Query(); query.where = "1=1"; featurelayer931.queryIds(query); featurelayer10.queryIds(query); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.