* @private * @function defineCRSByWKT * @description 定义crs。 * @param {string} crsName - 投影名称。 * @param {string} wkt - wkt。 * @param {Object} extent - 坐标系范围。 * @returns {string}
(crsName, wkt, extent)
| 93 | * @returns {string} |
| 94 | */ |
| 95 | function 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 |
no test coverage detected