<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WMTS Layer not visible in WPF-Application with ArcgisRuntime 100.11 in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/wmts-layer-not-visible-in-wpf-application-with/m-p/1062739#M10134</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a problem to show any layer from&amp;nbsp;&lt;A href="http://geo.admin.ch" target="_self"&gt;geo.admin.ch&lt;/A&gt;. I've tried several things but i get it not to work. I have added a base layer from ArcGIS-Online for orientation. For testing i have created an empty WPF-Project.&lt;/P&gt;&lt;P&gt;Here is a small sample code (only xaml) how i test it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Window x:Class="GIS_WMTS.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
        xmlns:local="clr-namespace:GIS_WMTS"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800"&amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;esri:MapView x:Name="mapView" Loaded="MapView_Loaded"&amp;gt;

            &amp;lt;esri:Map x:Name="map"&amp;gt;

                &amp;lt;esri:Map.Basemap&amp;gt;
                    &amp;lt;esri:Basemap&amp;gt;
                        &amp;lt;esri:ArcGISTiledLayer Source="https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" /&amp;gt;
                    &amp;lt;/esri:Basemap&amp;gt;
                &amp;lt;/esri:Map.Basemap&amp;gt;
                &amp;lt;esri:WmtsLayer Source="https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml" 
                                LayerId="ch.astra.ivs-gelaendekarte"&amp;gt;&amp;lt;/esri:WmtsLayer&amp;gt;

            &amp;lt;/esri:Map&amp;gt;

        &amp;lt;/esri:MapView&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried also from code behind:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Map map = new Map();
			ArcGISTiledLayer tl = new ArcGISTiledLayer(new Uri("https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"));
			map.Basemap = new Basemap(tl);

			WmtsService wmts = new WmtsService(new Uri("https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml"));
			await wmts.LoadAsync();

			var firstLayerInfo = wmts.ServiceInfo.LayerInfos.FirstOrDefault(x =&amp;gt; x.Id == "ch.astra.ivs-gelaendekarte");
			WmtsLayer wmtsLayer = new WmtsLayer(firstLayerInfo);

			map.OperationalLayers.Add(wmtsLayer);

			this.mapView.Map = map;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know whats going wrong. I hope someone can give me a hint. Maybe it is not possible to use layers from this site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Heiko Steinfeld&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 12:08:16 GMT</pubDate>
    <dc:creator>ERDMANN-Softwaregesellschaft</dc:creator>
    <dc:date>2021-06-01T12:08:16Z</dc:date>
    <item>
      <title>WMTS Layer not visible in WPF-Application with ArcgisRuntime 100.11</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/wmts-layer-not-visible-in-wpf-application-with/m-p/1062739#M10134</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a problem to show any layer from&amp;nbsp;&lt;A href="http://geo.admin.ch" target="_self"&gt;geo.admin.ch&lt;/A&gt;. I've tried several things but i get it not to work. I have added a base layer from ArcGIS-Online for orientation. For testing i have created an empty WPF-Project.&lt;/P&gt;&lt;P&gt;Here is a small sample code (only xaml) how i test it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Window x:Class="GIS_WMTS.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013"
        xmlns:local="clr-namespace:GIS_WMTS"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800"&amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;esri:MapView x:Name="mapView" Loaded="MapView_Loaded"&amp;gt;

            &amp;lt;esri:Map x:Name="map"&amp;gt;

                &amp;lt;esri:Map.Basemap&amp;gt;
                    &amp;lt;esri:Basemap&amp;gt;
                        &amp;lt;esri:ArcGISTiledLayer Source="https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" /&amp;gt;
                    &amp;lt;/esri:Basemap&amp;gt;
                &amp;lt;/esri:Map.Basemap&amp;gt;
                &amp;lt;esri:WmtsLayer Source="https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml" 
                                LayerId="ch.astra.ivs-gelaendekarte"&amp;gt;&amp;lt;/esri:WmtsLayer&amp;gt;

            &amp;lt;/esri:Map&amp;gt;

        &amp;lt;/esri:MapView&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried also from code behind:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Map map = new Map();
			ArcGISTiledLayer tl = new ArcGISTiledLayer(new Uri("https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"));
			map.Basemap = new Basemap(tl);

			WmtsService wmts = new WmtsService(new Uri("https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml"));
			await wmts.LoadAsync();

			var firstLayerInfo = wmts.ServiceInfo.LayerInfos.FirstOrDefault(x =&amp;gt; x.Id == "ch.astra.ivs-gelaendekarte");
			WmtsLayer wmtsLayer = new WmtsLayer(firstLayerInfo);

			map.OperationalLayers.Add(wmtsLayer);

			this.mapView.Map = map;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know whats going wrong. I hope someone can give me a hint. Maybe it is not possible to use layers from this site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Heiko Steinfeld&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 12:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/wmts-layer-not-visible-in-wpf-application-with/m-p/1062739#M10134</guid>
      <dc:creator>ERDMANN-Softwaregesellschaft</dc:creator>
      <dc:date>2021-06-01T12:08:16Z</dc:date>
    </item>
  </channel>
</rss>

