@gisatcz/deckgl-geolib 1.2.0 → 1.2.1-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.
@@ -1,7 +1,4 @@
1
- /// <reference types="deck.gl" />
2
- /// <reference types="deck.gl" />
3
1
  import { CompositeLayer } from '@deck.gl/core';
4
- import { TileLayer } from '@deck.gl/geo-layers';
5
2
  import { GeoImageOptions } from '../geoimage/geoimage';
6
3
  declare class CogBitmapLayer extends CompositeLayer<any> {
7
4
  static layerName: string;
@@ -11,6 +8,6 @@ declare class CogBitmapLayer extends CompositeLayer<any> {
11
8
  constructor(id: string, url: string, options: GeoImageOptions);
12
9
  initializeState(): void;
13
10
  init(url: string): Promise<void>;
14
- renderLayers(): TileLayer<unknown, import("@deck.gl/geo-layers/tile-layer/tile-layer").TileLayerProps<unknown>>;
11
+ renderLayers(): any;
15
12
  }
16
13
  export default CogBitmapLayer;
@@ -1,7 +1,4 @@
1
- /// <reference types="deck.gl" />
2
- /// <reference types="deck.gl" />
3
1
  import { CompositeLayer } from '@deck.gl/core';
4
- import { TileLayer } from '@deck.gl/geo-layers';
5
2
  import { GeoImageOptions } from '../geoimage/geoimage';
6
3
  declare class CogTerrainLayer extends CompositeLayer<any> {
7
4
  static layerName: string;
@@ -13,6 +10,6 @@ declare class CogTerrainLayer extends CompositeLayer<any> {
13
10
  constructor(id: string, terrainUrl: string, terrainOptions: GeoImageOptions, bitmapUrl?: string, bitmapOptions?: GeoImageOptions);
14
11
  initializeState(): void;
15
12
  init(terrainUrl: string): Promise<void>;
16
- renderLayers(): TileLayer<unknown, import("@deck.gl/geo-layers/tile-layer/tile-layer").TileLayerProps<unknown>>[];
13
+ renderLayers(): any[];
17
14
  }
18
15
  export default CogTerrainLayer;
package/dist/esm/index.js CHANGED
@@ -95739,7 +95739,7 @@ class GeoImage {
95739
95739
  let maxValue = options.maxValue ? options.maxValue : Number.MIN_VALUE;
95740
95740
  let minValue = options.minValue ? options.minValue : Number.MAX_VALUE;
95741
95741
  for (let idx = 0; idx < array.length; idx += 1) {
95742
- if (!options.noDataValue || array[idx] !== options.noDataValue) {
95742
+ if (options.noDataValue === undefined || array[idx] !== options.noDataValue) {
95743
95743
  if (array[idx] > maxValue)
95744
95744
  maxValue = array[idx];
95745
95745
  if (array[idx] < minValue)
@@ -95757,7 +95757,7 @@ class GeoImage {
95757
95757
  const colorValues = options.colorsBasedOnValues ? options.colorsBasedOnValues.map(([, second]) => [...chroma(second).rgb(), 255]) : undefined;
95758
95758
  for (let i = 0; i < arrayLength; i += 4) {
95759
95759
  let pixelColor = options.nullColor;
95760
- if (!options.noDataValue || dataArray[pixel] !== options.noDataValue) {
95760
+ if (options.noDataValue === undefined || dataArray[pixel] !== options.noDataValue) {
95761
95761
  if ((options.clipLow != null && dataArray[pixel] <= options.clipLow)
95762
95762
  || (options.clipHigh != null && dataArray[pixel] >= options.clipHigh)) {
95763
95763
  pixelColor = options.clippedColor;