* @private * @function WebMap.prototype.getWMTSUrl * @description 获取wmts请求文档的url * @param {string} url - 图层信息。 * @param {boolean} isKvp - 是否为kvp模式 * @param {boolean} proxy - 是否带上代理地址
(url, isKvp, proxy)
| 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(' '); |
no test coverage detected