@@ -31,6 +31,7 @@ export function createLayer(layerConfig) {
31
31
maxZoom : layerConfig . maxZoom ,
32
32
visible : layerConfig . visible ,
33
33
opacity : layerConfig . opacity ,
34
+ selectable : layerConfig . selectable ,
34
35
source : new VectorTileSource ( {
35
36
attributions : layerConfig . attributions ,
36
37
format : new MVT ( ) ,
@@ -44,6 +45,7 @@ export function createLayer(layerConfig) {
44
45
maxZoom : layerConfig . maxZoom ,
45
46
visible : layerConfig . visible ,
46
47
opacity : layerConfig . opacity ,
48
+ selectable : layerConfig . selectable ,
47
49
source : new TileWMS ( {
48
50
url : layerConfig . source . url ,
49
51
params : layerConfig . source . params ,
@@ -58,6 +60,7 @@ export function createLayer(layerConfig) {
58
60
maxZoom : layerConfig . maxZoom ,
59
61
visible : layerConfig . visible ,
60
62
opacity : layerConfig . opacity ,
63
+ selectable : layerConfig . selectable ,
61
64
source : new VectorSource ( {
62
65
format : new GeoJSON ( ) ,
63
66
url : layerConfig . source . url ,
@@ -70,6 +73,7 @@ export function createLayer(layerConfig) {
70
73
maxZoom : layerConfig . maxZoom ,
71
74
visible : layerConfig . visible ,
72
75
opacity : layerConfig . opacity ,
76
+ selectable : layerConfig . selectable ,
73
77
source : new XYZ ( {
74
78
url : layerConfig . source . url ,
75
79
} ) ,
@@ -81,6 +85,7 @@ export function createLayer(layerConfig) {
81
85
maxZoom : layerConfig . maxZoom ,
82
86
visible : layerConfig . visible ,
83
87
opacity : layerConfig . opacity ,
88
+ selectable : layerConfig . selectable ,
84
89
source : new VectorSource ( {
85
90
features : new GeoJSON ( ) . readFeatures ( layerConfig . source . data , {
86
91
// Ensure the features are read with the correct projection
@@ -99,6 +104,7 @@ export function createLayer(layerConfig) {
99
104
maxZoom : layerConfig . maxZoom ,
100
105
visible : layerConfig . visible ,
101
106
opacity : layerConfig . opacity ,
107
+ selectable : layerConfig . selectable ,
102
108
source : new GeoTIFF ( {
103
109
sources : [
104
110
{
@@ -124,6 +130,7 @@ export function createLayer(layerConfig) {
124
130
maxZoom : layerConfig . maxZoom ,
125
131
visible : layerConfig . visible ,
126
132
opacity : layerConfig . opacity ,
133
+ selectable : layerConfig . selectable ,
127
134
source : new VectorTileSource ( {
128
135
projection : layerConfig . source ?. projection ,
129
136
} ) ,
0 commit comments