Click or drag to resize
WmtsLayer Class
A layer that conforms to the Web Map Tiling Service (WMTS) Open GIS Consortium (OGC) standard. WMTS is a ached service that accesses pre-created tiles from a cache on a server’s hard drive instead of dynamically rendering images.
Inheritance Hierarchy

Namespace: Esri.ArcGISRuntime.Layers
Assembly: Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 10.2.7.0 (10.2.7.1234)
Syntax
public sealed class WmtsLayer : TiledMapServiceLayer

The WmtsLayer type exposes the following members.

Constructors
  NameDescription
Public methodWmtsLayer
Initializes a new instance of the WmtsLayer class.
Public methodWmtsLayer(Uri)
Creates a new instance of the WmtsLayer class.
Top
Methods
  NameDescription
Public methodCheckAccess
Determines whether the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
Public methodClearValue(DependencyProperty)
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Inherited from DependencyObject.)
Public methodCoerceValue
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Inherited from DependencyObject.)
Public methodEquals
Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Inherited from DependencyObject.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Gets a hash code for this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetLocalValueEnumerator
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Inherited from DependencyObject.)
Protected methodGetTileDataAsync
Gets the tile data.
(Inherited from TiledMapServiceLayer.)
Protected methodGetTileUriAsync
Returns the Uri for a tile at a given row, column and level.
(Overrides TiledMapServiceLayerGetTileUriAsync(Int32, Int32, Int32, CancellationToken).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property on this instance of a DependencyObject.
(Inherited from DependencyObject.)
Public methodCode exampleInitializeAsync
Loads the metadata for this layer based on the current configuration.
(Inherited from Layer.)
Protected methodInvalidate
Causes tiled layer to clear tiles.
(Inherited from TiledLayer.)
Public methodInvalidateProperty
Re-evaluates the effective value for the specified dependency property
(Inherited from DependencyObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnInitializeTiledLayerRequestedAsync
Override this method to initialize any properties and settings prior to using the map.
(Overrides TiledLayerOnInitializeTiledLayerRequestedAsync.)
Protected methodOnPropertyChanged(String)
Notifies listeners that a property value has changed.
(Inherited from Layer.)
Protected methodOnPropertyChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data.
(Inherited from DependencyObject.)
Public methodReadLocalValue
Returns the local value of a dependency property, if it exists.
(Inherited from DependencyObject.)
Public methodSetCurrentValue
Sets the value of a dependency property without changing its value source.
(Inherited from DependencyObject.)
Protected methodSetLayerInitializationFailed
status must be failed - if not throw
(Inherited from Layer.)
Protected methodSetLayerStatus
Status cannot be failed or it will throw. To set Status to LayerStatus.Failed, call SetLayerInitializationFailed.
(Inherited from Layer.)
Public methodSetValue(DependencyProperty, Object)
Sets the local value of a dependency property, specified by its dependency property identifier.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Inherited from DependencyObject.)
Protected methodShouldSerializeProperty
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifyAccess
Enforces that the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
Top
Fields
  NameDescription
Public fieldStatic memberServiceModeProperty
Identifies the ServiceMode dependency property.
Public fieldStatic memberServiceUriProperty
Identifies the ServiceUri dependency property.
Top
Properties
  NameDescription
Public propertyBrightness
Gets or sets layer brightness level.
(Inherited from TiledLayer.)
Public propertyContrast
Gets or sets layer contrast level.
(Inherited from TiledLayer.)
Public propertyDefaultSpatialReference
Gets the default spatial reference.
(Inherited from Layer.)
Public propertyDependencyObjectType
Gets the DependencyObjectType that wraps the CLR type of this instance. 
(Inherited from DependencyObject.)
Public propertyDimensionValues
Gets or sets the dimensional value(s) used by the WMTS layer to request the tiles.
Public propertyDispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Public propertyDisplayName
Gets or sets the display name.
(Inherited from Layer.)
Public propertyFullExtent
Gets the full extent of the layer in it's default spatial reference.
(Inherited from Layer.)
Public propertyGamma
Gets or sets layer gamma level.
(Inherited from TiledLayer.)
Public propertyID
Gets or sets an ID associated with this layer.
(Inherited from Layer.)
Public propertyImageFormat
Gets or sets the image format used by the WMTS layer.
Public propertyInitializationException
Gets the initialization exception.
(Inherited from Layer.)
Public propertyIsSealed
Gets a value that indicates whether this instance is currently sealed (read-only).
(Inherited from DependencyObject.)
Public propertyIsVisible
Gets or sets the layer visibility.
(Inherited from Layer.)
Public propertyLayer
Gets or sets the layer identifier displayed by the WMTS service.
Public propertyMaxScale
Gets or sets the maximum scale to display this layer at. A small number allows the map to display the layer when zooming further in.
(Inherited from Layer.)
Public propertyMinScale
Gets or sets the minimum scale to render this layer at. A large number allows the map to display the layer when zooming further out.
(Inherited from Layer.)
Public propertyOpacity
Gets or sets the opacity.
(Inherited from Layer.)
Public propertyResamplingMode
Gets or sets the resampling mode.
(Inherited from TiledLayer.)
Public propertyServiceInfo
Gets the WMTS Service metadata.
Public propertyServiceMode
Gets or sets the service mode i.e. "Kvp" or "Rest". By default, it's "Rest".
Public propertyServiceUri
Gets or sets the endpoint of the map service.
Public propertyShowLegend
Gets or sets a value indicating whether this layer should show in a legend
(Inherited from Layer.)
Public propertyStatus
The Layer's Status, indicating whether it is being/has been initialized, or initialization failed.
(Inherited from Layer.)
Public propertyStyle
Gets or sets the style to apply to the WMTS layer.
Public propertyTileInfo
Gets the tiling scheme.
(Inherited from TiledLayer.)
Public propertyTileMatrixSet
Gets or sets the tile matrix set. It defines the tileMatrixSet the layer will use.
Public propertyVersion
Optional. Gets or sets the WMTS version. The default value is 1.0.0
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from Layer.)
Top
Remarks

The full WMTS standard can be found on the OpenGIS Web Map Tile Service Implementation Standard web page. As of ArcGIS Server version 10.1 serving WMTS layers as a native REST service is supported.

Examples

Demonstrates adding a WMTS layer to the Map in XAML.

Code example using the WMTSLayer Class.

XAML
<Window x:Class="WMTSLayerWindow.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
        Height="600" Width="800"
        Tag="WMTSLayerWindow" >

    <!-- Demonstrates adding a WMTS layer to the Map in XAML. -->

    <Grid>

        <!-- Add a MapView Control. -->
        <esri:MapView x:Name="MapView1" WrapAround="True">

            <!-- Add a Map. -->
            <esri:Map x:Name="MyMap">

                <!-- Add a WmtsLayer. -->
                <esri:WmtsLayer ServiceMode="Rest" 
                      ServiceUri="http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS" />

            </esri:Map>
        </esri:MapView>

    </Grid>

</Window>

SPECIAL NOTE: The XAML displayed above comes from a C# project. If you are a VB.NET developer, you will need to modify the text for the x:Class namespace from "WMTSLayerWindow.MainWindow" to be just "MainWindow".

See Also
Supported Platforms
This type is supported on the following ArcGIS Runtime .NET SDK platforms:
Windows Desktop
Windows Phone
Windows Store
Additional Examples
Hyperlink to ExampleDescription
WMTSLayerWindowDemonstrates adding a WMTS layer to the Map in XAML.