@deck.gl/carto 9.0.20 → 9.0.23

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "CARTO official integration with Deck.gl. Build geospatial applications using CARTO and Deck.gl.",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "9.0.20",
6
+ "version": "9.0.23",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -47,8 +47,8 @@
47
47
  "@loaders.gl/mvt": "^4.2.0",
48
48
  "@loaders.gl/schema": "^4.2.0",
49
49
  "@loaders.gl/tiles": "^4.2.0",
50
- "@luma.gl/core": "^9.0.14",
51
- "@luma.gl/shadertools": "^9.0.14",
50
+ "@luma.gl/core": "^9.0.15",
51
+ "@luma.gl/shadertools": "^9.0.15",
52
52
  "@math.gl/web-mercator": "^4.0.0",
53
53
  "@types/d3-array": "^3.0.2",
54
54
  "@types/d3-color": "^1.4.2",
@@ -72,5 +72,5 @@
72
72
  "@deck.gl/layers": "^9.0.0",
73
73
  "@loaders.gl/core": "^4.2.0"
74
74
  },
75
- "gitHead": "f3c26e0ba9236ae9a12fc2656ac7c4931d21b138"
75
+ "gitHead": "3574ce735fa6e90e6207bef8edbccac27949d3c1"
76
76
  }
@@ -33,14 +33,14 @@ export class PropertiesReader {
33
33
  // Doubles ========================================
34
34
 
35
35
  interface Doubles {
36
- value: Float32Array;
36
+ value: Float64Array;
37
37
  size: number;
38
38
  }
39
39
 
40
40
  class DoublesReader {
41
41
  static read(pbf, end?: number): Doubles {
42
42
  const {value, size} = pbf.readFields(DoublesReader._readField, {value: [], size: 0}, end);
43
- return {value: new Float32Array(value), size};
43
+ return {value, size};
44
44
  }
45
45
  static _readField(this: void, tag: number, obj, pbf) {
46
46
  if (tag === 1) readPackedTypedArray(Float64Array, pbf, obj);
@@ -6,7 +6,6 @@ export type BoundaryQuerySourceOptions = SourceOptions &
6
6
  FilterOptions & {
7
7
  columns?: string[];
8
8
  tilesetTableName: string;
9
- matchingColumn?: string;
10
9
  propertiesSqlQuery: string;
11
10
  queryParameters?: QueryParameters;
12
11
  };
@@ -14,7 +13,6 @@ type UrlParameters = {
14
13
  columns?: string;
15
14
  filters?: Record<string, unknown>;
16
15
  tilesetTableName: string;
17
- matchingColumn: string;
18
16
  propertiesSqlQuery: string;
19
17
  queryParameters?: Record<string, unknown> | unknown[];
20
18
  };
@@ -22,17 +20,9 @@ type UrlParameters = {
22
20
  export const boundaryQuerySource = async function (
23
21
  options: BoundaryQuerySourceOptions
24
22
  ): Promise<TilejsonResult> {
25
- const {
26
- columns,
27
- filters,
28
- tilesetTableName,
29
- matchingColumn = 'id',
30
- propertiesSqlQuery,
31
- queryParameters
32
- } = options;
23
+ const {columns, filters, tilesetTableName, propertiesSqlQuery, queryParameters} = options;
33
24
  const urlParameters: UrlParameters = {
34
25
  tilesetTableName,
35
- matchingColumn,
36
26
  propertiesSqlQuery
37
27
  };
38
28
 
@@ -5,24 +5,21 @@ export type BoundaryTableSourceOptions = SourceOptions &
5
5
  FilterOptions & {
6
6
  tilesetTableName: string;
7
7
  columns?: string[];
8
- matchingColumn?: string;
9
8
  propertiesTableName: string;
10
9
  };
11
10
  type UrlParameters = {
12
11
  filters?: Record<string, unknown>;
13
12
  tilesetTableName: string;
14
13
  columns?: string;
15
- matchingColumn: string;
16
14
  propertiesTableName: string;
17
15
  };
18
16
 
19
17
  export const boundaryTableSource = async function (
20
18
  options: BoundaryTableSourceOptions
21
19
  ): Promise<TilejsonResult> {
22
- const {filters, tilesetTableName, columns, matchingColumn = 'id', propertiesTableName} = options;
20
+ const {filters, tilesetTableName, columns, propertiesTableName} = options;
23
21
  const urlParameters: UrlParameters = {
24
22
  tilesetTableName,
25
- matchingColumn,
26
23
  propertiesTableName
27
24
  };
28
25