Skip to content

Commit dcbca75

Browse files
authored
added time parameter to SourceImageWMS (#52)
Some WMS have a time dimension as well. This PR adds this functionality as an optional string prop to the SourceImageWMS component.
1 parent b21607f commit dcbca75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/sources/SourceImageWMS.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default {
3232
...properties,
3333
params: {
3434
'LAYERS': props.layers,
35-
'STYLES': props.styles
35+
'STYLES': props.styles,
36+
'TIME': props.time
3637
},
3738
projection: typeof properties.projection == "string" ? properties.projection : new Projection({
3839
...properties.projection
@@ -106,6 +107,9 @@ export default {
106107
type: [String,Array],
107108
default: ''
108109
},
110+
time: {
111+
type: String
112+
},
109113
ratio: {
110114
type: Number,
111115
default: 1

0 commit comments

Comments
 (0)