@evergis/react 2.0.147 → 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,12 +3367,14 @@ 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);
3375
3376
  useLayerVisibility(layer, isDisplayed);
3377
+ useLayerOpacity(layer, opacity);
3376
3378
  return layer;
3377
3379
  }
3378
3380