@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/fesm2022/maps-components-src-map.mjs +11 -0
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +11 -0
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/src/map/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2895,6 +2895,10 @@ class GeotiffTileLayerSettings {
|
|
|
2895
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
2896
|
*/
|
|
2897
2897
|
normalize = true;
|
|
2898
|
+
/**
|
|
2899
|
+
* 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.
|
|
2900
|
+
*/
|
|
2901
|
+
nodata;
|
|
2898
2902
|
/**
|
|
2899
2903
|
* Creates a copy of the given tile layer settings.
|
|
2900
2904
|
*
|
|
@@ -2911,6 +2915,7 @@ class GeotiffTileLayerSettings {
|
|
|
2911
2915
|
result.opacity = model.opacity;
|
|
2912
2916
|
result.url = model.url;
|
|
2913
2917
|
result.normalize = model.normalize;
|
|
2918
|
+
result.nodata = model.nodata;
|
|
2914
2919
|
return result;
|
|
2915
2920
|
}
|
|
2916
2921
|
/**
|
|
@@ -2922,6 +2927,9 @@ class GeotiffTileLayerSettings {
|
|
|
2922
2927
|
setUrl(url) {
|
|
2923
2928
|
return GeotiffTileLayerSettings.copy({ ...this, url });
|
|
2924
2929
|
}
|
|
2930
|
+
setNodata(nodata) {
|
|
2931
|
+
return GeotiffTileLayerSettings.copy({ ...this, nodata });
|
|
2932
|
+
}
|
|
2925
2933
|
/**
|
|
2926
2934
|
* Sets the normalize property for the GeotiffTileLayerSettings instance.
|
|
2927
2935
|
*
|
|
@@ -3008,6 +3016,8 @@ class GeotiffTileLayerSettings {
|
|
|
3008
3016
|
return false;
|
|
3009
3017
|
if (this.normalize !== model.normalize)
|
|
3010
3018
|
return false;
|
|
3019
|
+
if (this.nodata !== model.nodata)
|
|
3020
|
+
return false;
|
|
3011
3021
|
return true;
|
|
3012
3022
|
}
|
|
3013
3023
|
}
|
|
@@ -3020,6 +3030,7 @@ class GeotiffTileLayerFactory {
|
|
|
3020
3030
|
url: settings.url,
|
|
3021
3031
|
min: settings.min,
|
|
3022
3032
|
max: settings.max,
|
|
3033
|
+
nodata: settings.nodata,
|
|
3023
3034
|
},
|
|
3024
3035
|
],
|
|
3025
3036
|
sourceOptions: { blockSize: settings.blockSize },
|