@evergis/react 2.0.148 → 2.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3367,8 +3367,9 @@ function useFeatureLayer(_ref) {
|
|
|
3367
3367
|
}),
|
|
3368
3368
|
destructor: layer => map.indexOf(layer) !== -1 && map.removeLayer(layer),
|
|
3369
3369
|
update: (layer, _ref2) => {
|
|
3370
|
-
let [features] = _ref2;
|
|
3370
|
+
let [features, opacity] = _ref2;
|
|
3371
3371
|
layer.features = features;
|
|
3372
|
+
layer.opacity = opacity != null ? opacity : 1;
|
|
3372
3373
|
}
|
|
3373
3374
|
}, [features, opacity]);
|
|
3374
3375
|
useLayerOrder(layer, zIndex);
|