I'm using the method new FeatureLayerCreationParams(new Uri(xyz)) to add layers from SDE to the map. How can I set the added layers as read-only and uneditable?
Hi,
Here is a code snippet that sets a FeatureLayer to be uneditable.
QueuedTask.Run(() => { var cimFeatureLayer = layer.GetDefinition() as CIMFeatureLayer; var featureTable = cimFeatureLayer.FeatureTable; featureTable.Editable = false; cimFeatureLayer.FeatureTable = featureTable; layer.SetDefinition(cimFeatureLayer); });
Thank you so much.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.