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

Function getProjection

src/openlayers/core/Util.js:464–477  ·  view source on GitHub ↗
(prjCoordSys, extent)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

getFunction · 0.50

Tested by

no test coverage detected