public enum MapMemberPosition : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum MapMemberPosition Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum MapMemberPosition : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum MapMemberPosition Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
AddToBottom | Specifies the layer or standalone table be added to the bottom of the container. |
AddToTop | Specifies the layer or standalone table be added to the top of the container. |
AutoArrange | Specifies the layer or standalone table be added at a position best suited to its type. |
Index | Specifies the layer or standalone table be added based on the MapMemberIndex property. |
var serverConnection = new CIMInternetServerConnection { URL = "https://spritle.esri.com/arcgis/services/sanfrancisco_sld/MapServer/WMSServer" }; var connection = new CIMWMSServiceConnection { ServerConnection = serverConnection }; LayerCreationParams parameters = new LayerCreationParams(connection); parameters.MapMemberPosition = MapMemberPosition.AddToBottom; await QueuedTask.Run(() => { var compositeLyr = LayerFactory.Instance.CreateLayer<WMSLayer>(parameters, MapView.Active.Map); //wms layer in ArcGIS Pro always has a composite layer inside it var wmsLayers = compositeLyr.Layers[0] as ServiceCompositeSubLayer; //each wms sublayer belongs in that composite layer var highwayLayerWMSSub = wmsLayers.Layers[1] as WMSSubLayer; //toggling a sublayer's visibility if ((highwayLayerWMSSub != null)) { bool visibility = highwayLayerWMSSub.IsVisible; highwayLayerWMSSub.SetVisibility(!visibility); } //applying an existing style to a wms sub layer var pizzaLayerWMSSub = wmsLayers.Layers[0] as WMSSubLayer; var currentStyles = pizzaLayerWMSSub.GetStyleNames(); pizzaLayerWMSSub.SetStyleName(currentStyles[1]); });
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Mapping.MapMemberPosition
Target Platforms: Windows 11, Windows 10