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
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.