I'm using ArcGIS Javascript API for a web application. I have a WMTS – OGC Web Service URL "https://svc.pictometry.com/Image/**********/wmts" which has multiple layers, so I have to add a layer from this service as a basemap to the map.
Referred the sample code from the ArcGIS API for javascript sample=layers-wmts
var customBasemapLayer = new this.esri.WMTSLayer({
url: "https://svc.pictometry.com/Image/**********/wmts",
activeLayer: {
id: "******"
}
});
this.map.add(customBasemapLayer);
the above code does not work for me. is there an alternate solution for this?