You can access the featureLayer that the feature has come from by using the layer property: result.feature.layer
AGSFeatureLayer *featureLayer = (AGSFeatureLayer *)result.feature.layer;
you can just cast it AGSFeatureLayer *featureLayer = (AGSFeatureLayer *)result.feature.layer;
for (AGSIdentifyResult* result in results) { ... // Retrieve attachment int objectId = -99; for (AGSFeatureLayer* currentFeatureLayer in self.featureLayerArray) { objectId = [currentFeatureLayer objectIdForFeature:result.feature]; NSLog(@objectID : %d, objectId); }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.