(styleInfo)
| 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'; |
no outgoing calls
no test coverage detected