* @private * @function WebMap.prototype.getWMTSTileGrid * @description 获取wmts的瓦片。 * @param {Object} extent - 图层范围。 * @param {number} scales - 图层比例尺 * @param {string} unit - 单位 * @param {number} dpi - dpi * @param {Array} origin 瓦片的原点 * @returns {ol.tilegrid.WMTS} wmts的瓦片
(extent, scales, unit, dpi, origin, matrixIds)
| 1909 | * @returns {ol.tilegrid.WMTS} wmts的瓦片 |
| 1910 | */ |
| 1911 | getWMTSTileGrid(extent, scales, unit, dpi, origin, matrixIds) { |
| 1912 | let resolutionsInfo = this.getReslutionsFromScales(scales, dpi || dpiConfig.iServerWMTS, unit); |
| 1913 | return new WMTSTileGrid({ |
| 1914 | origin, |
| 1915 | extent: extent, |
| 1916 | resolutions: resolutionsInfo.res, |
| 1917 | matrixIds: matrixIds || resolutionsInfo.matrixIds |
| 1918 | }); |
| 1919 | } |
| 1920 | |
| 1921 | /** |
| 1922 | * @private |
no test coverage detected