这个GetCapabilities 请求是直接在wmts服务地址后 加上 ?SERVICE=WMTS&VERSION=version&REQUEST=GetCapabilities
那我应该怎么定义一个function获取响应结果中的layer和tilematrixSet,构成数组? 通过ajax的话会报错误,报错信息如下
" http://127.0.0.1:8090/iserver/services/map-SMCSData/wmts100?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetCapabilities: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Origin 'http://127.0.0.1:8860' is therefore not allowed access.”