Hi,
is there any way too get geometries of all features within a feaureLayer.
i already do it for selected features by using myLayer.getSelectedFeatures()
how can I get all of them?
It just return the layer. not features in it.
I finally find a solution.
with using query, we can select all features within a layer
selecteds.queryFeatures(allQuery, function (featureSet){
...
})
Hi Beh,
Could you try the getLayer() method?
Graphic | API Reference | ArcGIS API for JavaScript
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.