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

Method _getSourceBounds

src/common/mapping/WebMapV2.js:825–832  ·  view source on GitHub ↗
(mapBounds)

Source from the content-addressed store, hash-verified

823 addedCallback && addedCallback();
824 }
825 _getSourceBounds(mapBounds) {
826 if(!mapBounds) {
827 return;
828 }
829 const lb = this._unproject([mapBounds[0], mapBounds[1]]);
830 const rt = this._unproject([mapBounds[2], mapBounds[3]]);
831 return [...lb, ...rt];
832 }
833 _isSupportZXYTileLayer({ resolutions, tileSize, origin }) {
834 const isOldWebMecartor = origin === undefined && resolutions === undefined;
835 if (isOldWebMecartor) {

Callers 1

_createZXYLayerMethod · 0.95

Calls 1

_unprojectMethod · 0.95

Tested by

no test coverage detected