Songissimo, try using the selectFeatures function against your Feature Layer that you had previously applied setDefinitionExpression.Code:var select = featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW); select.then(function (features) { console.log("select features result: ", features); }This is what I am using in my application do what you describe you are looking for.
var select = featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW); select.then(function (features) { console.log("select features result: ", features); }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.