(mapInfo)
| 238 | } |
| 239 | |
| 240 | _setExpectLayerLen(mapInfo) { |
| 241 | if (this._shouldLoadBaseLayer(mapInfo, this.layerFilter)) { |
| 242 | this.expectLayerLen++; |
| 243 | } |
| 244 | let overLayers = mapInfo.layers; |
| 245 | if (overLayers && overLayers.length > 0) { |
| 246 | if (typeof this.layerFilter === 'function') { |
| 247 | overLayers = overLayers.filter(this.layerFilter); |
| 248 | } |
| 249 | this.expectLayerLen += overLayers.length; |
| 250 | } |
| 251 | if (mapInfo.grid && mapInfo.grid.graticule) { |
| 252 | this.expectLayerLen++; |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | _shouldLoadBaseLayer(mapInfo, layerFilter) { |
| 257 | const baseLayer = mapInfo.baseLayer; |
no test coverage detected