File tree 3 files changed +6
-5
lines changed
modules/map/components/cesium
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ export default {
94
94
}),
95
95
{
96
96
show: this .wmsLayerConfig .visible ,
97
+ alpha: this .opacity ,
97
98
}
98
99
)
99
100
},
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export default {
62
62
}),
63
63
{
64
64
show: this .wmtsLayerConfig .visible ,
65
+ alpha: this .opacity ,
65
66
}
66
67
)
67
68
},
Original file line number Diff line number Diff line change @@ -25,20 +25,19 @@ export class ActiveLayerConfig {
25
25
* @returns {String | string | LayerTimeConfig.currentTimeEntry.timestamp }
26
26
*/
27
27
export function getTimestampFromConfig ( config , previewYear ) {
28
- const isWMTS = config instanceof GeoAdminWMTSLayer
29
28
if ( config . timeConfig ) {
30
29
// if there is a preview year set, we search for the matching timestamp
31
- if ( previewYear && config . timeConfig . years . includes ( previewYear ) && isWMTS ) {
30
+ if ( previewYear && config . timeConfig . years . includes ( previewYear ) ) {
32
31
const matchingTimeEntry = config . timeConfig . getTimeEntryForYear ( previewYear )
33
- if ( matchingTimeEntry || isWMTS ) {
32
+ if ( matchingTimeEntry ) {
34
33
return matchingTimeEntry . timestamp
35
34
}
36
35
}
37
36
// if a time entry is defined, and is different from 'all'
38
37
// (no need to pass 'all' to our WMS, that's the default timestamp used under the hood)
39
- if ( config . timeConfig . currentYear !== YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA && ! isWMTS ) {
38
+ if ( config . timeConfig . currentYear !== YEAR_TO_DESCRIBE_ALL_OR_CURRENT_DATA ) {
40
39
return config . timeConfig . currentTimestamp
41
40
}
42
41
}
43
- return isWMTS ? null : ''
42
+ return config instanceof GeoAdminWMTSLayer ? null : ''
44
43
}
You can’t perform that action at this time.
0 commit comments