MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getWMTSTileGrid

Method getWMTSTileGrid

src/openlayers/mapping/WebMap.js:1911–1919  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

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

Callers 1

createWMTSSourceMethod · 0.95

Calls 1

Tested by

no test coverage detected