Show / Hide Table of Contents

Constructor WmtsLayer

WmtsLayer(Uri, String)

Initializes a new instance of the WmtsLayer class with the given service URI and layer ID. PreferredImageFormat and TileMatrixSet will be chosen automatically.

Declaration
public WmtsLayer(Uri source, string layerId)
Parameters
Type Name Description
System.Uri source

The System.Uri of a WMTS service.

System.String layerId

The identifier of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

source or layerId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(Uri, String, TileImageFormat)

Initializes a new instance of the WmtsLayer class with the given service URI, layer ID, and preferred tile image format. TileMatrixSet will be chosen automatically.

Declaration
public WmtsLayer(Uri source, string layerId, TileImageFormat preferredImageFormat)
Parameters
Type Name Description
System.Uri source

The System.Uri of a WMTS service.

System.String layerId

The identifier of the WMTS layer

TileImageFormat preferredImageFormat

The preferred tile image format of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

source or layerId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(Uri, String, String)

Initializes a new instance of the WmtsLayer class with the given service URI, layer ID, and tile matrix set ID. PreferredImageFormat will be chosen automatically.

Declaration
public WmtsLayer(Uri source, string layerId, string matrixSetId)
Parameters
Type Name Description
System.Uri source

The System.Uri of a WMTS service.

System.String layerId

The identifier of the WMTS layer.

System.String matrixSetId

The id of the tile matrix set supported by of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

source, layerId, or matrixSetId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(Uri, String, String, TileImageFormat)

Initializes a new instance of the WmtsLayer class with the given service URI, layer ID, tile matrix set ID, and tile image format.

Declaration
public WmtsLayer(Uri source, string layerId, string matrixSetId, TileImageFormat preferredImageFormat)
Parameters
Type Name Description
System.Uri source

The System.Uri of a WMTS service.

System.String layerId

The identifier of the WMTS layer.

System.String matrixSetId

The id of the tile matrix set supported by of the WMTS layer.

TileImageFormat preferredImageFormat

The preferred image format of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

source, layerId, or matrixSetId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(WmtsLayerInfo)

Initializes a new instance of the WmtsLayer class from the given layer info. PreferredImageFormat and TileMatrixSet will be chosen automatically.

Declaration
public WmtsLayer(WmtsLayerInfo layerInfo)
Parameters
Type Name Description
WmtsLayerInfo layerInfo

Layer metadata obtained from LayerInfos.

Exceptions
Type Condition
System.ArgumentException

layerInfo is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(WmtsLayerInfo, WmtsTileMatrixSet)

Initializes a new instance of the WmtsLayer class from the given layer info and tile matrix set. PreferredImageFormat will be chosen automatically.

Declaration
public WmtsLayer(WmtsLayerInfo layerInfo, WmtsTileMatrixSet tileMatrixSet)
Parameters
Type Name Description
WmtsLayerInfo layerInfo

Layer metadata obtained from LayerInfos.

WmtsTileMatrixSet tileMatrixSet

Tile matrix set.

Exceptions
Type Condition
System.ArgumentException

layerInfo or tileMatrixSet is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(WmtsLayerInfo, TileImageFormat)

Initializes a new instance of the WmtsLayer class for the given layer info and tile image format. TileMatrixSet will be chosen automatically.

Declaration
public WmtsLayer(WmtsLayerInfo layerInfo, TileImageFormat preferredImageFormat)
Parameters
Type Name Description
WmtsLayerInfo layerInfo

Layer metadata obtained from LayerInfos.

TileImageFormat preferredImageFormat

The preferred tile image format of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

layerInfo is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(WmtsLayerInfo, WmtsTileMatrixSet, TileImageFormat)

Initializes a new instance of the WmtsLayer class for the given layer info, tile matrix set, and tile image format.

Declaration
public WmtsLayer(WmtsLayerInfo layerInfo, WmtsTileMatrixSet tileMatrixSet, TileImageFormat preferredImageFormat)
Parameters
Type Name Description
WmtsLayerInfo layerInfo

Layer metadata obtained from LayerInfos.

WmtsTileMatrixSet tileMatrixSet

Tile matrix set.

TileImageFormat preferredImageFormat

The preferred tile image format of the WMTS layer.

Exceptions
Type Condition
System.ArgumentException

layerInfo or tileMatrixSet is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

WmtsLayer(PortalItem)

Initializes a new instance of the WmtsLayer class from the given portal item.

Declaration
public WmtsLayer(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

A WMTS PortalItem.

Remarks

The portal item's type must be WMTS.

See Also
PortalItem
Item

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.7 - 200.8
.NET200.7 - 200.8
.NET Windows200.7 - 200.8
.NET Android200.7 - 200.8
.NET iOS200.7 - 200.8
.NET Framework200.7 - 200.8
UWP200.7 - 200.8
In This Article
Back to top Copyright © 2022 Esri.