MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / getWMTSUrl

Method getWMTSUrl

src/openlayers/mapping/WebMap.js:1638–1649  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getWMTSUrl * @description 获取wmts请求文档的url * @param {string} url - 图层信息。 * @param {boolean} isKvp - 是否为kvp模式 * @param {boolean} proxy - 是否带上代理地址

(url, isKvp, proxy)

Source from the content-addressed store, hash-verified

1636 * @param {boolean} proxy - 是否带上代理地址
1637 */
1638 getWMTSUrl(url, isKvp, proxy) {
1639 let splitStr = '?';
1640 if (url.indexOf('?') > -1) {
1641 splitStr = '&';
1642 }
1643 if (isKvp) {
1644 url += splitStr + 'SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetCapabilities';
1645 } else {
1646 url += splitStr + '/1.0.0/WMTSCapabilities.xml';
1647 }
1648 return this.getRequestUrl(url, proxy);
1649 }
1650 getBoundsFromConrner(lower, upper) {
1651 const bottomLeft = lower.split(' '),
1652 topRight = upper.split(' ');

Callers 1

getWmtsInfoMethod · 0.80

Calls 2

getRequestUrlMethod · 0.95
indexOfMethod · 0.80

Tested by

no test coverage detected