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

Function defineCRSByWKT

src/maplibregl/mapping/InitMap.js:95–99  ·  view source on GitHub ↗

* @private * @function defineCRSByWKT * @description 定义crs。 * @param {string} crsName - 投影名称。 * @param {string} wkt - wkt。 * @param {Object} extent - 坐标系范围。 * @returns {string}

(crsName, wkt, extent)

Source from the content-addressed store, hash-verified

93 * @returns {string}
94 */
95function defineCRSByWKT(crsName, wkt, extent) {
96 const crsExtent = getCRSExtent(extent);
97 const defineCRS = new maplibregl.CRS(crsName, wkt, crsExtent);
98 return defineCRS;
99}
100
101/**
102 * @private

Callers 1

createMapOptionsFunction · 0.70

Calls 1

getCRSExtentFunction · 0.70

Tested by

no test coverage detected