@foodmarketmaker/mapag 0.0.17 → 0.0.19

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.
@@ -14705,6 +14705,11 @@ class CroplandDataLayerMapper {
14705
14705
  map.setLayoutProperty(this.LAYER_ID, 'visibility', 'none');
14706
14706
  this.legends = undefined;
14707
14707
  }
14708
+ map.setPaintProperty(this.LAYER_ID, 'raster-opacity', settings.opacity);
14709
+ map.setPaintProperty(this.LAYER_ID, 'raster-brightness-min', settings.brightnessMin);
14710
+ map.setPaintProperty(this.LAYER_ID, 'raster-brightness-max', settings.brightnessMax);
14711
+ map.setPaintProperty(this.LAYER_ID, 'raster-contrast', settings.contrast);
14712
+ map.setPaintProperty(this.LAYER_ID, 'raster-saturation', settings.saturation);
14708
14713
  }
14709
14714
  create() {
14710
14715
  if (!this.map) {
@@ -14800,6 +14805,11 @@ class CroplandDataLayerMapper {
14800
14805
  }
14801
14806
  class CroplandDataLayerSettings {
14802
14807
  visible = true;
14808
+ opacity = 1.0;
14809
+ brightnessMin = 0;
14810
+ brightnessMax = 1;
14811
+ contrast = 0;
14812
+ saturation = 0;
14803
14813
  }
14804
14814
  // Method 1: Using toString(16) and padStart
14805
14815
  const rgbToHex = (r, g, b) => {