@artstesh/maps 9.1.0-alpha.1 → 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.
@@ -2883,6 +2883,18 @@ class GeotiffTileLayerSettings {
2883
2883
  * The priority of showing - layers with higher zIndex cover others in case of collisions
2884
2884
  */
2885
2885
  zIndex = 1;
2886
+ /**
2887
+ * Represents the size of a block in a specific context, typically used to define dimensions or capacity.
2888
+ *
2889
+ * Optional property that, if defined, specifies the numerical value for the block size.
2890
+ *
2891
+ * @type {number|undefined}
2892
+ */
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;
2886
2898
  /**
2887
2899
  * Creates a copy of the given tile layer settings.
2888
2900
  *
@@ -2895,8 +2907,10 @@ class GeotiffTileLayerSettings {
2895
2907
  result.min = model.min;
2896
2908
  result.zIndex = model.zIndex;
2897
2909
  result.style = model.style;
2910
+ result.blockSize = model.blockSize;
2898
2911
  result.opacity = model.opacity;
2899
2912
  result.url = model.url;
2913
+ result.normalize = model.normalize;
2900
2914
  return result;
2901
2915
  }
2902
2916
  /**
@@ -2908,6 +2922,15 @@ class GeotiffTileLayerSettings {
2908
2922
  setUrl(url) {
2909
2923
  return GeotiffTileLayerSettings.copy({ ...this, url });
2910
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
+ }
2911
2934
  /**
2912
2935
  * Updates the style settings for the GeotiffTileLayerSettings and returns a new instance with the updated style.
2913
2936
  *
@@ -2953,6 +2976,15 @@ class GeotiffTileLayerSettings {
2953
2976
  setOpacity(opacity) {
2954
2977
  return GeotiffTileLayerSettings.copy({ ...this, opacity });
2955
2978
  }
2979
+ /**
2980
+ * Sets the block size for the GeoTIFF tile layer.
2981
+ *
2982
+ * @param {number} blockSize - The size of the block to be set. This value typically defines the number of pixels for determining how data is grouped in tiles.
2983
+ * @return {GeotiffTileLayerSettings} A new instance of `GeotiffTileLayerSettings` with the updated block size.
2984
+ */
2985
+ setBlockSize(blockSize) {
2986
+ return GeotiffTileLayerSettings.copy({ ...this, blockSize });
2987
+ }
2956
2988
  /**
2957
2989
  * Checks if the current instance of GeotiffTileLayerSettings is equal to the given model.
2958
2990
  * @param {GeotiffTileLayerSettings} model - The model to compare against.
@@ -2970,8 +3002,12 @@ class GeotiffTileLayerSettings {
2970
3002
  return false;
2971
3003
  if (this.style !== model.style)
2972
3004
  return false;
3005
+ if (this.blockSize !== model.blockSize)
3006
+ return false;
2973
3007
  if (this.opacity !== model.opacity)
2974
3008
  return false;
3009
+ if (this.normalize !== model.normalize)
3010
+ return false;
2975
3011
  return true;
2976
3012
  }
2977
3013
  }
@@ -2986,6 +3022,8 @@ class GeotiffTileLayerFactory {
2986
3022
  max: settings.max,
2987
3023
  },
2988
3024
  ],
3025
+ sourceOptions: { blockSize: settings.blockSize },
3026
+ normalize: settings.normalize,
2989
3027
  });
2990
3028
  return new TileLayer$1({
2991
3029
  style: settings.style,