@artstesh/maps 9.1.0-alpha.1 → 9.1.0-alpha.2

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,14 @@ 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;
2886
2894
  /**
2887
2895
  * Creates a copy of the given tile layer settings.
2888
2896
  *
@@ -2895,6 +2903,7 @@ class GeotiffTileLayerSettings {
2895
2903
  result.min = model.min;
2896
2904
  result.zIndex = model.zIndex;
2897
2905
  result.style = model.style;
2906
+ result.blockSize = model.blockSize;
2898
2907
  result.opacity = model.opacity;
2899
2908
  result.url = model.url;
2900
2909
  return result;
@@ -2953,6 +2962,15 @@ class GeotiffTileLayerSettings {
2953
2962
  setOpacity(opacity) {
2954
2963
  return GeotiffTileLayerSettings.copy({ ...this, opacity });
2955
2964
  }
2965
+ /**
2966
+ * Sets the block size for the GeoTIFF tile layer.
2967
+ *
2968
+ * @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.
2969
+ * @return {GeotiffTileLayerSettings} A new instance of `GeotiffTileLayerSettings` with the updated block size.
2970
+ */
2971
+ setBlockSize(blockSize) {
2972
+ return GeotiffTileLayerSettings.copy({ ...this, blockSize });
2973
+ }
2956
2974
  /**
2957
2975
  * Checks if the current instance of GeotiffTileLayerSettings is equal to the given model.
2958
2976
  * @param {GeotiffTileLayerSettings} model - The model to compare against.
@@ -2970,6 +2988,8 @@ class GeotiffTileLayerSettings {
2970
2988
  return false;
2971
2989
  if (this.style !== model.style)
2972
2990
  return false;
2991
+ if (this.blockSize !== model.blockSize)
2992
+ return false;
2973
2993
  if (this.opacity !== model.opacity)
2974
2994
  return false;
2975
2995
  return true;
@@ -2985,7 +3005,7 @@ class GeotiffTileLayerFactory {
2985
3005
  min: settings.min,
2986
3006
  max: settings.max,
2987
3007
  },
2988
- ],
3008
+ ], sourceOptions: { blockSize: settings.blockSize }
2989
3009
  });
2990
3010
  return new TileLayer$1({
2991
3011
  style: settings.style,