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

Method _registerMapCRS

src/common/mapping/MapStyle.js:73–82  ·  view source on GitHub ↗
(mapOptions)

Source from the content-addressed store, hash-verified

71 }
72
73 _registerMapCRS(mapOptions) {
74 const { crs } = mapOptions;
75 let epsgCode = crs;
76 if (typeof crs === 'object' && crs.epsgCode) {
77 const { epsgCode: name, WKT: wkt, extent, unit } = crs;
78 crsManager.registerCRS({ name, wkt, extent, unit });
79 epsgCode = name;
80 }
81 return epsgCode;
82 }
83
84 _addLayersToMap() {
85 const { sources, layers, layerIdMapList } = this._setUniqueId(this.mapOptions.style);

Callers 1

initializeMapMethod · 0.95

Calls 1

registerCRSMethod · 0.45

Tested by

no test coverage detected