We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc375a commit 0bfe216Copy full SHA for 0bfe216
src/common/mapping/utils/SourceListModelV3.js
@@ -190,6 +190,9 @@ export class SourceListModelV3 extends AppreciableLayerBase {
190
_generateBaseLayerInfo(layerCatalog, layers) {
191
const nextLayerCatalog = layerCatalog.slice();
192
const originBaseLayerCatalog = nextLayerCatalog.pop();
193
+ if (!originBaseLayerCatalog) {
194
+ return;
195
+ }
196
const renderLayers = this._getBaseLayerRenderLayers(originBaseLayerCatalog, layers);
197
const baseLayersOnMap = renderLayers.map((layer) => {
198
const nextLayer = { ...layer };
0 commit comments