1. Any way for web map to treat my shapefile as a Feature Layer?
2. Is it necessary for web map to be based on a Feature Layer from a Feature Server for AGSPopupInfo and AGSPopupFieldInfo to be configured properly?
for (AGSWebMapLayerInfo *li in webMap.operationalLayers) { NSLog(@title %@; layerId %@; layerType %@; mode %d; layers count %d", li.title, li.layerId, li.layerType, li.mode, [li.layers count]); if(li.featureCollection) { AGSWebMapFeatureCollection *wmfc = li.featureCollection; for (AGSWebMapLayerInfo *fcli in wmfc.layers) { AGSPopupInfo *pi = fcli.popupInfo; NSLog(@title %@; description %@; allowEdit %@", pi.title, pi.description, pi.allowEdit); for (AGSPopupFieldInfo *fi in pi.fieldInfos) { NSLog(@fieldName %@", fi.fieldName); } } } }
AGSPopupInfo *popupInfo = [self.webMap popupInfoForFeatureLayer:(AGSFeatureLayer *)graphic.layer];
Thanks for your reply. I'm now able to edit the feature attribute values on the client side. You're right that the edits remain locally and are not updated to the web map hosted on ArcGIS.com. Is there a way to overcome this? Such as to save the web map from the client side after updating like what's done at ArcGIS.com. I've created the web map based on credentials as those to sign-in to ArcGIS.com.
Does it mean that edits can only be updated for features hosted on a Feature Server?
Unfortunately, there is not way to over come this. The feature collections can be edited only on arcgis.com. Yes!Regards,Nimesh
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.