You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/componentsguide/sources/imagewms/index.md
+42-49Lines changed: 42 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,74 +54,67 @@ const center = ref([-10997148, 4569099]);
54
54
55
55
## Properties
56
56
57
-
### attributions
57
+
### Props from OpenLayers
58
58
59
-
-**Type**: `string`
60
-
61
-
Attributions
62
-
63
-
### crossOrigin
64
-
65
-
-**Type**: `string`
66
-
-**Default**: `ol-layer`
67
-
68
-
The crossOrigin attribute for loaded images. Note that you must provide a crossOrigin value if you want to access pixel data with the Canvas renderer.
69
-
70
-
### hidpi
71
-
72
-
-**Type**: `Boolean`
73
-
-**Default**: `true`
74
-
75
-
### serverType
76
-
77
-
-**Type**: `string`
59
+
Properties are passed-trough from OpenLayers directly.
60
+
Their types and default values can be checked-out [in the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html).
61
+
Only some properties deviate caused by reserved keywords from Vue / HTML.
62
+
This deviating props are described in the section below.
78
63
79
-
The type of the remote WMS server: mapserver, geoserver or qgis. Only needed if hidpi is true.
64
+
### Deviating Properties
80
65
81
-
### imageLoadFunction
66
+
The following additional properties are available for setting specific `params`.
82
67
83
-
-**Type**: `Function`
68
+
#### layers
84
69
85
-
Optional function to load an image given a URL
70
+
Sets / overrides the `params.LAYERS` property.
86
71
87
-
### imageSmoothing
72
+
-**Type**: `string` | `unknown[]`
88
73
89
-
-**Type**: `Boolean`
90
-
-**Default**: `true`
74
+
#### styles
91
75
92
-
Enable image smoothing.
76
+
Sets / overrides the `params.STYLES` property.
93
77
94
-
### layers
78
+
-**Type**: `string` | `unknown[]`
95
79
96
-
-**Type**: `[String,Array]`
80
+
#### time
97
81
98
-
### styles
82
+
Sets / overrides the `params.TIME` property.
99
83
100
-
-**Type**: `[String,Array]`
101
-
102
-
### ratio
103
-
104
-
-**Type**: `number`
105
-
-**Default**: `1.5`
84
+
-**Type**: `string`
106
85
107
-
Ratio. 1 means image requests are the size of the map viewport, 2 means twice the width and height of the map viewport, and so on. Must be 1 or higher.
86
+
## Events
108
87
109
-
### resolutions
88
+
You have access to all Events from the underlying source.
89
+
Check out [the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html) to see the available events tht will be fired.
Resolutions. If specified, requests will be made for these resolutions only.
95
+
## Methods
114
96
115
-
### url
97
+
You have access to all Methods from the underlying source.
98
+
Check out [the official OpenLayers docs](https://openlayers.org/en/latest/apidoc/module-ol_source_ImageWMS-ImageWMS.html) to see the available methods.
116
99
117
-
-**Type**: `string`
100
+
To access the source, you can use a `ref()` as shown below:
0 commit comments