@artstesh/maps 9.1.0 → 9.1.1

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.
package/dist/index.d.ts CHANGED
@@ -1120,6 +1120,10 @@ declare class GeotiffTileLayerSettings {
1120
1120
  * 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.
1121
1121
  */
1122
1122
  normalize?: boolean;
1123
+ /**
1124
+ * Values to discard (overriding any nodata values in the metadata). When provided, an additional alpha band will be added to the data. Often the GeoTIFF metadata will include information about nodata values, so you should only need to set this property if you find that it is not already extracted from the metadata.
1125
+ */
1126
+ nodata?: number;
1123
1127
  /**
1124
1128
  * Creates a copy of the given tile layer settings.
1125
1129
  *
@@ -1134,6 +1138,7 @@ declare class GeotiffTileLayerSettings {
1134
1138
  * @return {GeotiffTileLayerSettings} - The updated GeotiffTileLayerSettings object.
1135
1139
  */
1136
1140
  setUrl(url: string): GeotiffTileLayerSettings;
1141
+ setNodata(nodata: number | undefined): GeotiffTileLayerSettings;
1137
1142
  /**
1138
1143
  * Sets the normalize property for the GeotiffTileLayerSettings instance.
1139
1144
  *
@@ -1120,6 +1120,10 @@ declare class GeotiffTileLayerSettings {
1120
1120
  * 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.
1121
1121
  */
1122
1122
  normalize?: boolean;
1123
+ /**
1124
+ * Values to discard (overriding any nodata values in the metadata). When provided, an additional alpha band will be added to the data. Often the GeoTIFF metadata will include information about nodata values, so you should only need to set this property if you find that it is not already extracted from the metadata.
1125
+ */
1126
+ nodata?: number;
1123
1127
  /**
1124
1128
  * Creates a copy of the given tile layer settings.
1125
1129
  *
@@ -1134,6 +1138,7 @@ declare class GeotiffTileLayerSettings {
1134
1138
  * @return {GeotiffTileLayerSettings} - The updated GeotiffTileLayerSettings object.
1135
1139
  */
1136
1140
  setUrl(url: string): GeotiffTileLayerSettings;
1141
+ setNodata(nodata: number | undefined): GeotiffTileLayerSettings;
1137
1142
  /**
1138
1143
  * Sets the normalize property for the GeotiffTileLayerSettings instance.
1139
1144
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artstesh/maps",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "author": "artstesh",
5
5
  "license": "MIT",
6
6
  "description": "Let's draw a map ;)",