Skip to content

Commit

Permalink
fix: regression
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Jan 5, 2024
1 parent 3d3f385 commit 4cb7bea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/components/IndicatorGlobe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ export default {
...mapState('config', ['appConfig', 'baseConfig']),
baseLayers() {
// expects an array of objects
return this.mergedConfigsData[0].baseLayers || this.baseConfig.baseLayersMap;
return this.baseConfig.baseLayersMap;
},
overlayLayers() {
return this.mergedConfigsData[0].overlayLayers || this.baseConfig.overlayLayersMap;
return this.baseConfig.overlayLayersMap;
},
attributions() {
return [
Expand Down Expand Up @@ -263,7 +263,7 @@ export default {
minimumLevel: config.minZoom ? config.minZoom : 1,
maximumLevel: config.maxZoom ? config.maxZoom : 10,
customTags: {
time: () => config.dateFormatFunction(this.dataLayerTime.value),
time: () => config.dateFormatFunction ? config.dateFormatFunction(this.dataLayerTime.value) : this.dataLayerTime.value,
},
});
break;
Expand All @@ -276,7 +276,7 @@ export default {
parameters: {
format: 'image/png',
transparent: 'true',
time: config.dateFormatFunction(this.dataLayerTime.value),
time: config.dateFormatFunction ? config.dateFormatFunction(this.dataLayerTime.value) : this.dataLayerTime.value,
},
tileWidth: config.tileSize,
tileHeight: config.tileSize,
Expand Down

0 comments on commit 4cb7bea

Please sign in to comment.