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); }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.