@artstesh/maps 9.1.0-alpha.2 → 9.1.0

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.
@@ -2891,6 +2891,10 @@ class GeotiffTileLayerSettings {
2891
2891
  * @type {number|undefined}
2892
2892
  */
2893
2893
  blockSize = undefined;
2894
+ /**
2895
+ * By default, the source data is normalized to values between 0 and 1 with scaling factors based on the raster statistics or min and max properties of each source. If instead you want to work with the raw values in a style expression, set this to false. Setting this option to false will make it so any min and max properties on sources are ignored.
2896
+ */
2897
+ normalize = true;
2894
2898
  /**
2895
2899
  * Creates a copy of the given tile layer settings.
2896
2900
  *
@@ -2906,6 +2910,7 @@ class GeotiffTileLayerSettings {
2906
2910
  result.blockSize = model.blockSize;
2907
2911
  result.opacity = model.opacity;
2908
2912
  result.url = model.url;
2913
+ result.normalize = model.normalize;
2909
2914
  return result;
2910
2915
  }
2911
2916
  /**
@@ -2917,6 +2922,15 @@ class GeotiffTileLayerSettings {
2917
2922
  setUrl(url) {
2918
2923
  return GeotiffTileLayerSettings.copy({ ...this, url });
2919
2924
  }
2925
+ /**
2926
+ * Sets the normalize property for the GeotiffTileLayerSettings instance.
2927
+ *
2928
+ * @param {boolean} normalize - Indicates whether the normalization setting should be enabled or disabled.
2929
+ * @return {GeotiffTileLayerSettings} A new instance of GeotiffTileLayerSettings with the updated normalize property.
2930
+ */
2931
+ setNormalize(normalize) {
2932
+ return GeotiffTileLayerSettings.copy({ ...this, normalize });
2933
+ }
2920
2934
  /**
2921
2935
  * Updates the style settings for the GeotiffTileLayerSettings and returns a new instance with the updated style.
2922
2936
  *
@@ -2992,6 +3006,8 @@ class GeotiffTileLayerSettings {
2992
3006
  return false;
2993
3007
  if (this.opacity !== model.opacity)
2994
3008
  return false;
3009
+ if (this.normalize !== model.normalize)
3010
+ return false;
2995
3011
  return true;
2996
3012
  }
2997
3013
  }
@@ -3005,7 +3021,9 @@ class GeotiffTileLayerFactory {
3005
3021
  min: settings.min,
3006
3022
  max: settings.max,
3007
3023
  },
3008
- ], sourceOptions: { blockSize: settings.blockSize }
3024
+ ],
3025
+ sourceOptions: { blockSize: settings.blockSize },
3026
+ normalize: settings.normalize,
3009
3027
  });
3010
3028
  return new TileLayer$1({
3011
3029
  style: settings.style,