* @private * @function setProj * @description 注册4214 4610 4490等投影。 * @param {string} epsgCodeStr - epsgCode。 * @param {string} initMapService - InitMapServiceBase 实例。
(epsgCodeStr, initMapService)
| 157 | * @param {string} initMapService - InitMapServiceBase 实例。 |
| 158 | */ |
| 159 | async function setProj(epsgCodeStr, initMapService) { |
| 160 | if (!hasRegisterProj(epsgCodeStr, false)) { |
| 161 | const def = await initMapService.getWKT(); |
| 162 | def && proj4.defs(epsgCodeStr, def); |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * @private |
no test coverage detected