@@ -32,6 +32,9 @@ export function createLayer(layerConfig, map) {
32
32
visible : layerConfig . visible ,
33
33
opacity : layerConfig . opacity ,
34
34
selectable : layerConfig . selectable ,
35
+ groups : layerConfig . groups ,
36
+ extra : layerConfig . extra ,
37
+ order : layerConfig . order ,
35
38
source : new VectorTileSource ( {
36
39
attributions : layerConfig . attributions ,
37
40
format : new MVT ( ) ,
@@ -46,6 +49,9 @@ export function createLayer(layerConfig, map) {
46
49
visible : layerConfig . visible ,
47
50
opacity : layerConfig . opacity ,
48
51
selectable : layerConfig . selectable ,
52
+ groups : layerConfig . groups ,
53
+ extra : layerConfig . extra ,
54
+ order : layerConfig . order ,
49
55
source : new TileWMS ( {
50
56
url : layerConfig . source . url ,
51
57
params : layerConfig . source . params ,
@@ -61,6 +67,9 @@ export function createLayer(layerConfig, map) {
61
67
visible : layerConfig . visible ,
62
68
opacity : layerConfig . opacity ,
63
69
selectable : layerConfig . selectable ,
70
+ groups : layerConfig . groups ,
71
+ extra : layerConfig . extra ,
72
+ order : layerConfig . order ,
64
73
source : new VectorSource ( {
65
74
format : new GeoJSON ( ) ,
66
75
url : layerConfig . source . url ,
@@ -74,6 +83,9 @@ export function createLayer(layerConfig, map) {
74
83
visible : layerConfig . visible ,
75
84
opacity : layerConfig . opacity ,
76
85
selectable : layerConfig . selectable ,
86
+ groups : layerConfig . groups ,
87
+ extra : layerConfig . extra ,
88
+ order : layerConfig . order ,
77
89
source : new XYZ ( {
78
90
url : layerConfig . source . url ,
79
91
} ) ,
@@ -86,6 +98,9 @@ export function createLayer(layerConfig, map) {
86
98
visible : layerConfig . visible ,
87
99
opacity : layerConfig . opacity ,
88
100
selectable : layerConfig . selectable ,
101
+ groups : layerConfig . groups ,
102
+ extra : layerConfig . extra ,
103
+ order : layerConfig . order ,
89
104
source : new VectorSource ( {
90
105
features : new GeoJSON ( ) . readFeatures ( layerConfig . source . data , {
91
106
// Ensure the features are read with the correct projection
@@ -105,6 +120,9 @@ export function createLayer(layerConfig, map) {
105
120
visible : layerConfig . visible ,
106
121
opacity : layerConfig . opacity ,
107
122
selectable : layerConfig . selectable ,
123
+ groups : layerConfig . groups ,
124
+ extra : layerConfig . extra ,
125
+ order : layerConfig . order ,
108
126
source : new GeoTIFF ( {
109
127
sources : [
110
128
{
@@ -131,6 +149,9 @@ export function createLayer(layerConfig, map) {
131
149
visible : layerConfig . visible ,
132
150
opacity : layerConfig . opacity ,
133
151
selectable : layerConfig . selectable ,
152
+ groups : layerConfig . groups ,
153
+ extra : layerConfig . extra ,
154
+ order : layerConfig . order ,
134
155
source : new VectorTileSource ( {
135
156
projection : layerConfig . source ?. projection || 'EPSG:3857' ,
136
157
} ) ,
@@ -148,6 +169,9 @@ export function createLayer(layerConfig, map) {
148
169
visible : layerConfig . visible ,
149
170
opacity : layerConfig . opacity ,
150
171
selectable : layerConfig . selectable ,
172
+ groups : layerConfig . groups ,
173
+ extra : layerConfig . extra ,
174
+ order : layerConfig . order ,
151
175
source : new TileArcGISRest ( {
152
176
url : layerConfig . source ?. url ,
153
177
params : layerConfig . source . params || { } ,
@@ -162,6 +186,9 @@ export function createLayer(layerConfig, map) {
162
186
visible : layerConfig . visible ,
163
187
opacity : layerConfig . opacity ,
164
188
selectable : layerConfig . selectable ,
189
+ groups : layerConfig . groups ,
190
+ extra : layerConfig . extra ,
191
+ order : layerConfig . order ,
165
192
source : new ImageArcGISRest ( {
166
193
url : layerConfig . source ?. url ,
167
194
ratio : layerConfig . source . ratio || 1 ,
@@ -170,6 +197,15 @@ export function createLayer(layerConfig, map) {
170
197
} ) ,
171
198
} ) ;
172
199
200
+ /* History ?
201
+ new ol.layer.Geoportail({
202
+ name: '1970',
203
+ title: '1965-1980',
204
+ key: 'orthohisto',
205
+ layer: 'ORTHOIMAGERY.ORTHOPHOTOS.1965-1980'
206
+ }),
207
+ */
208
+
173
209
default :
174
210
//Error will cause issue within lowcoder. So just use log
175
211
console . error ( `Unsupported layer type: ${ layerConfig . type } ` ) ;
0 commit comments