<?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 showing in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/wmts-layer-not-showing/m-p/399434#M2697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Android Runtime API 100.2.0,&amp;nbsp;I would like to add a WMTS layer as a basemap. Unfortunately the layer is not showing in the map.&amp;nbsp;The WMTS service url is&amp;nbsp;&lt;A class="link-titled" href="https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities" title="https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities"&gt;https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities&lt;/A&gt;. It seems to be available in Key Value Pairs (KVP) encoding only.&amp;nbsp;One of the layers in this WMTS service is the one I would like to use as a basemap: "&lt;SPAN&gt;top100raster&lt;/SPAN&gt;". The spatial reference is&amp;nbsp;&lt;A class="link-titled" href="http://spatialreference.org/ref/epsg/amersfoort-rd-new/" title="http://spatialreference.org/ref/epsg/amersfoort-rd-new/"&gt;Amersfoort / RD New: EPSG Projection -- Spatial Reference&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;private SpatialReference spatialReference = SpatialReference.create(28992);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;private double[] bbox = new double[]{646.36, 308975.28, 276050.82, 636456.31};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView = (MapView) findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView.setViewpoint(new Viewpoint(new Envelope(bbox[0], bbox[1], bbox[2], bbox[3], spatialReference)));&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;ArcGISMap map = new ArcGISMap(spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView.setMap(map);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;WmtsLayer wmtsLayer = new WmtsLayer("&lt;A class="unlinked"&gt;https://geodata.nationaalgeoregister.nl/tiles/service/wmts?&lt;/A&gt;", "top100raster"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Basemap baseMap = new Basemap(wmtsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;map.setBasemap(baseMap);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no errors in the project, also it compiles and runs without errors. The map however is empty &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 08:53:41 GMT</pubDate>
    <dc:creator>Hermanvan_der_Maas</dc:creator>
    <dc:date>2018-02-09T08:53:41Z</dc:date>
    <item>
      <title>WMTS layer not showing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/wmts-layer-not-showing/m-p/399434#M2697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Android Runtime API 100.2.0,&amp;nbsp;I would like to add a WMTS layer as a basemap. Unfortunately the layer is not showing in the map.&amp;nbsp;The WMTS service url is&amp;nbsp;&lt;A class="link-titled" href="https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities" title="https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities"&gt;https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities&lt;/A&gt;. It seems to be available in Key Value Pairs (KVP) encoding only.&amp;nbsp;One of the layers in this WMTS service is the one I would like to use as a basemap: "&lt;SPAN&gt;top100raster&lt;/SPAN&gt;". The spatial reference is&amp;nbsp;&lt;A class="link-titled" href="http://spatialreference.org/ref/epsg/amersfoort-rd-new/" title="http://spatialreference.org/ref/epsg/amersfoort-rd-new/"&gt;Amersfoort / RD New: EPSG Projection -- Spatial Reference&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;private SpatialReference spatialReference = SpatialReference.create(28992);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;private double[] bbox = new double[]{646.36, 308975.28, 276050.82, 636456.31};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView = (MapView) findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView.setViewpoint(new Viewpoint(new Envelope(bbox[0], bbox[1], bbox[2], bbox[3], spatialReference)));&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;ArcGISMap map = new ArcGISMap(spatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;mapView.setMap(map);&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;WmtsLayer wmtsLayer = new WmtsLayer("&lt;A class="unlinked"&gt;https://geodata.nationaalgeoregister.nl/tiles/service/wmts?&lt;/A&gt;", "top100raster"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Basemap baseMap = new Basemap(wmtsLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;map.setBasemap(baseMap);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no errors in the project, also it compiles and runs without errors. The map however is empty &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;What am I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 08:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/wmts-layer-not-showing/m-p/399434#M2697</guid>
      <dc:creator>Hermanvan_der_Maas</dc:creator>
      <dc:date>2018-02-09T08:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: WMTS layer not showing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/wmts-layer-not-showing/m-p/399435#M2698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved... the modified code below works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;private SpatialReference spatialReference = SpatialReference.create(28992);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;private double[] bbox = new double[]{646.36, 308975.28, 276050.82, 636456.31};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;mapView = (MapView) findViewById(R.id.map);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;ArcGISMap map = new ArcGISMap(spatialReference); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;map.setInitialViewpoint(new Viewpoint(new Envelope(bbox[0], bbox[1], bbox[2], bbox[3], spatialReference))); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;WmtsLayer wmtsLayer = new WmtsLayer("&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgeodata.nationaalgeoregister.nl%2Ftiles%2Fservice%2Fwmts%3Frequest%3DGetCapabilities" rel="nofollow" target="_blank"&gt;https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=GetCapabilities&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="background-color: #ffffff;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;service=WMTS"&lt;/SPAN&gt;, "&lt;SPAN style="background-color: #ffffff;"&gt;top100raster&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;Basemap baseMap = new Basemap(wmtsLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;map.setBasemap(baseMap);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace; color: #000000;"&gt;mapView.setMap(map);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 07:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/wmts-layer-not-showing/m-p/399435#M2698</guid>
      <dc:creator>Hermanvan_der_Maas</dc:creator>
      <dc:date>2018-02-15T07:22:33Z</dc:date>
    </item>
  </channel>
</rss>

