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

Method _isSameOrigin

src/common/mapping/WebMapV2.js:843–846  ·  view source on GitHub ↗
(origin)

Source from the content-addressed store, hash-verified

841 return Math.abs(+num1 - +num2) <= precision;
842 }
843 _isSameOrigin(origin) {
844 const extent = this.map.getCRS().getExtent();
845 return this.numberEqual(origin[0], extent[0]) && this.numberEqual(origin[1], extent[3]);
846 }
847 _isSameResolutions(resolutions, tileSize, mapTileSize = 512) {
848 const mapResolutions = this._getMapResolutions();
849 const conversion = mapTileSize / tileSize;

Callers 1

Calls 3

numberEqualMethod · 0.95
getExtentMethod · 0.45
getCRSMethod · 0.45

Tested by

no test coverage detected