arcgis api for js can't connect to wmts sever with secret key
the wmts sever increas Adding Key Verification
before update:
url:"http://t0.tianditu.gov.cn/img_c/wmts"
after update:
url:"http://t0.tianditu.gov.cn/img_c/wmts?tk=your secret key"
my secret key is:
8447f500c6f2b44fe8ddd3acccad4f38
so the new request is:
url:"http://t0.tianditu.gov.cn/img_c/wmts?tk=8447f500c6f2b44fe8ddd3acccad4f38"
my arcgis code is:
var layers=new WMTSLayer({
url:"http://t0.tianditu.gov.cn/img_c/wmts?tk=8447f500c6f2b44fe8ddd3acccad4f38"
});
but the chrome still request:
http://t0.tianditu.gov.cn/img_c/wmts/1.0.0/WMTSCapabilities.xml
without secret key request:
?tk=8447f500c6f2b44fe8ddd3acccad4f38
the right url should be:
http://t0.tianditu.gov.cn/img_c/wmts?tk=8447f500c6f2b44fe8ddd3acccad4f38/1.0.0/WMTSCapabilities.xml
how to write to let api request the url add secret key like:
http://t0.tianditu.gov.cn/img_c/wmts?tk=8447f500c6f2b44fe8ddd3acccad4f38/1.0.0/WMTSCapabilities.xml