public void AddSymbolLayerDrawing()
Public Sub AddSymbolLayerDrawing()
public void AddSymbolLayerDrawing()
Public Sub AddSymbolLayerDrawing()
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.InvalidOperationException | SLD cannot be added to this layer |
{
await QueuedTask.Run(() =>
{
//check if it can be added to the layer
if (featureLayer.CanAddSymbolLayerDrawing())
{
featureLayer.AddSymbolLayerDrawing();
}
//ditto for a group layer...must have at least
//one child feature layer that can participate
if (groupLayer.CanAddSymbolLayerDrawing())
{
groupLayer.AddSymbolLayerDrawing();
}
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)