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

Method _isWebMapV3

src/common/mapping/WebMapBase.js:639–648  ·  view source on GitHub ↗
(styleInfo)

Source from the content-addressed store, hash-verified

637 }
638
639 _isWebMapV3(styleInfo) {
640 if (!styleInfo.version) {
641 return false;
642 }
643 const subVersions = `${styleInfo.version}`.split('.')
644 if (subVersions.length <= 1) {
645 return false;
646 }
647 return +subVersions[0] >= 3;
648 }
649
650 _getMapInfo(mapInfo) {
651 const type = this._isWebMapV3(mapInfo) ? 'WebMap3' : 'WebMap2';

Callers 2

setStyleMethod · 0.95
_getMapInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected