@gisatcz/deckgl-geolib 1.11.0-dev.0 → 1.11.0-dev.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/cjs/index.js CHANGED
@@ -15077,7 +15077,9 @@ class GeoImage {
15077
15077
  }) : undefined;
15078
15078
  for (let i = 0; i < arrayLength; i += 4) {
15079
15079
  let pixelColor = options.nullColor;
15080
- if (options.noDataValue === undefined || dataArray[pixel] !== options.noDataValue) {
15080
+ // FIXME
15081
+ // eslint-disable-next-line max-len
15082
+ if ((!Number.isNaN(dataArray[pixel])) && (options.noDataValue === undefined || dataArray[pixel] !== options.noDataValue)) {
15081
15083
  if ((options.clipLow != null && dataArray[pixel] <= options.clipLow)
15082
15084
  || (options.clipHigh != null && dataArray[pixel] >= options.clipHigh)) {
15083
15085
  pixelColor = options.clippedColor;
@@ -15113,10 +15115,6 @@ class GeoImage {
15113
15115
  pixelColor[3] = this.scale(dataArray[pixel], options.colorScaleValueRange[0], options.colorScaleValueRange.slice(-1)[0], 0, 255);
15114
15116
  }
15115
15117
  }
15116
- // If pixel has null value
15117
- }
15118
- else if (Number.isNaN(dataArray[pixel])) {
15119
- pixelColor = [0, 0, 0, 0];
15120
15118
  }
15121
15119
  // FIXME
15122
15120
  // eslint-disable-next-line