File tree 2 files changed +9
-1
lines changed
docs/componentsguide/layers/vectorlayer
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,17 @@ A CSS class name to set to the layer element.
55
55
56
56
### opacity
57
57
58
- - ** Type** : ` number `
58
+ - ** Type** : ` number `
59
59
- ** Default** : ` 1 `
60
60
61
61
Opacity (0, 1).
62
62
63
+ ### background
64
+
65
+ - ** Type** : ` BackgroundColor `
66
+
67
+ A css color, or a function called with a view resolution returning a css color.
68
+
63
69
### visible
64
70
65
71
- ** Type** : ` boolean `
Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ import {
16
16
import type { StyleLike } from " ol/style/Style" ;
17
17
import type { FlatStyleLike } from " ol/style/flat" ;
18
18
import type LayerGroup from " ol/layer/Group" ;
19
+ import type { BackgroundColor } from " ol/layer/Base" ;
19
20
20
21
const props = withDefaults (
21
22
defineProps <
22
23
LayersCommonProps & {
24
+ background?: BackgroundColor ;
23
25
renderBuffer ?: number ;
24
26
updateWhileAnimating ?: boolean ;
25
27
styles ?: StyleLike | FlatStyleLike | null ;
You can’t perform that action at this time.
0 commit comments