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
Uri source

The Uri of a WMTS service.

String layerId

The identifier of the WMTS layer.

Exceptions
Type Condition
ArgumentException

source or layerId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
Uri source

The Uri of a WMTS service.

String layerId

The identifier of the WMTS layer

TileImageFormat preferredImageFormat

The preferred tile image format of the WMTS layer.

Exceptions
Type Condition
ArgumentException

source or layerId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
Uri source

The Uri of a WMTS service.

String layerId

The identifier of the WMTS layer.

String matrixSetId

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

Exceptions
Type Condition
ArgumentException

source, layerId, or matrixSetId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
Uri source

The Uri of a WMTS service.

String layerId

The identifier of the WMTS layer.

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
ArgumentException

source, layerId, or matrixSetId is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
ArgumentException

layerInfo is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
ArgumentException

layerInfo or tileMatrixSet is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
ArgumentException

layerInfo is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14

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
ArgumentException

layerInfo or tileMatrixSet is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.14
UWP100.1 - 100.14
In This Article
Back to top Copyright © 2021 Esri.