Hello team,
I'm trying to load a simple WMTS Layer in my map. The version of the ESRI Android SDK that I use is 100.3 and I have not been able to load the WMTS Layer. I've followed the instructions of the API documentation for version 100.3 (I've downloaded it). Any help would be very appreciated. Below you will find the code:
mapa = getView().findViewById(R.id.mapView);
ArcGISMap map = new ArcGISMap();
mapa.setMap(map);
WmtsLayer wmtsLayer = new WmtsLayer("https://www.ign.es/wmts/mapa-raster", "MTN");
//wmtsLayer.loadAsync();
//final WmtsLayer wmtsLayer = new WmtsLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS?", "WorldTimeZones");
wmtsLayer.addDoneLoadingListener(new Runnable() {
public void run() {
if (wmtsLayer.getLoadStatus() == LoadStatus.LOADED) {
Basemap baseMap = new Basemap(wmtsLayer);
map.setBasemap(baseMap);
Log.d("Capa WMTS: ", map.getLoadStatus().toString());
}
}
});
Thanks in advance.