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

Method _unproject

src/common/mapping/WebMapV2.js:2859–2870  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

2857 }
2858
2859 _unproject(point) {
2860 const sourceProjection = this._unprojectProjection || this.baseProjection;
2861 if (sourceProjection === 'EPSG:4326') {
2862 return point;
2863 }
2864 const coor = transformCoodinates({ coordinates: point, sourceProjection, proj4: this.specifiedProj4 });
2865 // const proj = getProjection(sourceProjection, this.specifiedProj4);
2866 // if (isReverse && proj.axis && proj.axis.indexOf('ne') === 0) {
2867 // coor.reverse();
2868 // }
2869 return coor;
2870 }
2871
2872 _getMapCenter(mapInfo) {
2873 // center

Callers 6

_createMapMethod · 0.95
_getSourceBoundsMethod · 0.95
_getMapCenterMethod · 0.95

Calls 1

transformCoodinatesFunction · 0.90

Tested by

no test coverage detected