TypeError: c is undefined

Thanks esri for publishing arcgis api for javascript v4.4, which supports wmts. But there are something wrong, when I try to using wmts services that are not privided by Global Imagery Browse Services (GIBS).

var tdtWMTSLayer=new WMTSLayer({ //Currently active sublayer. Defaults to the first sublayer in sublayers //activeLayer:"", //Use this to append different custom parameters to the WMTS tile requests. The custom layer parameters are applied to GetTile. //customLayerParameters:{}, //Use this to append custom parameters to all WMTS requests

//RESTful | KVP serviceMode:"KVP", //A collection of WMTSSublayer objects. //The URL for the GetCapabilities is created based on the url and serviceMode properties. url:"http://t6.tianditu.com/img_w/wmts", version:"1.0.0"

When I try to add that layer, 2 requests are made to the server hosting the layer information, but neither request succeeds. This may be a problem with how that server is configured or it may be an issue with how the requests are made.

If you have a url for a WMTS layer that works, that could help me narrow this down.

For the layer that failed to load, the spatial reference wkid is 9009l3. This looks to be another wkid for web mercator, so the view must have a spatialReference with wkid 102100 in order to add this layer.

In these situation it's probably best to be explicit, so you should set the view's spatialReference manually: