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.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.