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