| 462 | }, |
| 463 | getDpi, |
| 464 | getProjection(prjCoordSys, extent) { |
| 465 | let projection = get(`EPSG:${prjCoordSys.epsgCode}`); |
| 466 | if (prjCoordSys.type == 'PCS_NON_EARTH') { |
| 467 | projection = new Projection({ |
| 468 | extent, |
| 469 | units: 'm', |
| 470 | code: '0' |
| 471 | }); |
| 472 | } |
| 473 | if (!projection) { |
| 474 | console.error(`The projection of EPSG:${prjCoordSys.epsgCode} is missing, please register the projection of EPSG:${prjCoordSys.epsgCode} first, refer to the documentation: https://iclient.supermap.io/web/introduction/leafletDevelop.html#multiProjection`); |
| 475 | } |
| 476 | return projection; |
| 477 | } |
| 478 | } |
| 479 | |
| 480 | function unsetMask(layers) { |