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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.