public Layer CreateLayer( Uri dataUri, ILayerContainerEdit mapOrGroupLayer, LayerPosition position, string layerName )
Public Overloads Function CreateLayer( _ ByVal dataUri As Uri, _ ByVal mapOrGroupLayer As ILayerContainerEdit, _ Optional ByVal position As LayerPosition, _ Optional ByVal layerName As String _ ) As Layer
Parameters
- dataUri
- An URI represents the path or url to a dataset or .lyrx or .lpkx file.
- mapOrGroupLayer
- A map or group layer instance to which the Layer will be added
- position
- LayerPosition specifies whether the layer should be auto positioned or be on the top or at the bottom
- layerName
- (optional) When it is not provided, the default display name gets used e.g. the dataset name or alias. (default value = "")