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

Method getTileGrid

src/openlayers/mapping/Tianditu.js:102–107  ·  view source on GitHub ↗

* @function Tianditu.getTileGrid * @description 获取瓦片网格。 * @param {string} projection - 投影参考对象。 * @returns {ol.tilegrid.WMTS} 返回瓦片网格对象。

(projection)

Source from the content-addressed store, hash-verified

100 * @returns {ol.tilegrid.WMTS} 返回瓦片网格对象。
101 */
102 static getTileGrid(projection) {
103 if (projection === "EPSG:4326" || projection === "EPSG:4490") {
104 return Tianditu.default4326TileGrid();
105 }
106 return Tianditu.default3857TileGrid();
107 }
108
109 /**
110 * @function Tianditu.default4326TileGrid

Callers 8

RFunction · 0.80
constructorMethod · 0.80
addMVTMapLayerMethod · 0.80
ol.jsFile · 0.80
eFunction · 0.80
jTFunction · 0.80

Calls 2

default4326TileGridMethod · 0.80
default3857TileGridMethod · 0.80

Tested by

no test coverage detected