@gisatcz/deckgl-geolib 1.10.2-dev.7 → 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
@@ -4,7 +4,6 @@ var core = require('@deck.gl/core');
4
4
  var geoLayers = require('@deck.gl/geo-layers');
5
5
  var layers = require('@deck.gl/layers');
6
6
  var extensions = require('@deck.gl/extensions');
7
- var constants$3 = require('@luma.gl/constants');
8
7
  var chroma = require('chroma-js');
9
8
  var schema = require('@loaders.gl/schema');
10
9
  var loaderUtils = require('@loaders.gl/loader-utils');
@@ -15078,7 +15077,9 @@ class GeoImage {
15078
15077
  }) : undefined;
15079
15078
  for (let i = 0; i < arrayLength; i += 4) {
15080
15079
  let pixelColor = options.nullColor;
15081
- 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)) {
15082
15083
  if ((options.clipLow != null && dataArray[pixel] <= options.clipLow)
15083
15084
  || (options.clipHigh != null && dataArray[pixel] >= options.clipHigh)) {
15084
15085
  pixelColor = options.clippedColor;
@@ -15114,10 +15115,6 @@ class GeoImage {
15114
15115
  pixelColor[3] = this.scale(dataArray[pixel], options.colorScaleValueRange[0], options.colorScaleValueRange.slice(-1)[0], 0, 255);
15115
15116
  }
15116
15117
  }
15117
- // If pixel has null value
15118
- }
15119
- else if (Number.isNaN(dataArray[pixel])) {
15120
- pixelColor = [0, 0, 0, 0];
15121
15118
  }
15122
15119
  // FIXME
15123
15120
  // eslint-disable-next-line
@@ -15520,7 +15517,8 @@ class CogBitmapLayer extends core.CompositeLayer {
15520
15517
  var _a, _b, _c, _d, _e, _f, _g;
15521
15518
  const { bbox: { west, south, east, north, }, } = props.tile;
15522
15519
  return new layers.BitmapLayer(props, Object.assign({ data: null, image: props.data, bounds: [west, south, east, north], opacity: 1, textureParameters: {
15523
- [constants$3.GL.TEXTURE_MIN_FILTER]: this.blurredTexture ? constants$3.GL.LINEAR : constants$3.GL.NEAREST,
15520
+ minFilter: this.blurredTexture ? 'linear' : 'nearest',
15521
+ magFilter: this.blurredTexture ? 'linear' : 'nearest',
15524
15522
  }, extensions: ((_b = (_a = this.cogTiles) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.clampToTerrain) ? [new extensions._TerrainExtension()] : [] }, (((_e = (_d = (_c = this.cogTiles) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.clampToTerrain) === null || _e === void 0 ? void 0 : _e.terrainDrawMode)
15525
15523
  ? { terrainDrawMode: (_g = (_f = this.cogTiles) === null || _f === void 0 ? void 0 : _f.options) === null || _g === void 0 ? void 0 : _g.clampToTerrain.terrainDrawMode }
15526
15524
  : {})));