require(["esri/layers/FeatureLayer", ...], function(FeatureLayer, ...) { var featureLayer = new FeatureLayer("rest/url/of/the/layer",{ mode: FeatureLayer.MODE_SELECTION, outFields: ["*"] }); featureLayer.setDefinitionExpression("STATE_NAME = 'South Carolina'"); ... });
Does anyone one know of a way to set a definition expression on a query? I have about 4,000 records in my service but I want to limit all queries to about 1,000 of those records.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.