@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.
@@ -1,7 +1,7 @@
1
1
  import { TileReader } from "./carto-raster-tile.js";
2
2
  import { parsePbf } from "./tile-loader-utils.js";
3
3
  import { getWorkerUrl } from "../../utils.js";
4
- const VERSION = typeof "9.0.20" !== 'undefined' ? "9.0.20" : 'latest';
4
+ const VERSION = typeof "9.0.23" !== 'undefined' ? "9.0.23" : 'latest';
5
5
  const id = 'cartoRasterTile';
6
6
  const DEFAULT_OPTIONS = {
7
7
  cartoRasterTile: {
@@ -2,7 +2,7 @@ import { TileReader } from "./carto-spatial-tile.js";
2
2
  import { parsePbf } from "./tile-loader-utils.js";
3
3
  import { getWorkerUrl } from "../../utils.js";
4
4
  import { binaryToSpatialjson } from "./spatialjson-utils.js";
5
- const VERSION = typeof "9.0.20" !== 'undefined' ? "9.0.20" : 'latest';
5
+ const VERSION = typeof "9.0.23" !== 'undefined' ? "9.0.23" : 'latest';
6
6
  const id = 'cartoSpatialTile';
7
7
  const DEFAULT_OPTIONS = {
8
8
  cartoSpatialTile: {
@@ -3,7 +3,7 @@ export declare class PropertiesReader {
3
3
  static _readField(this: void, tag: number, obj: Record<string, string>, pbf: any): void;
4
4
  }
5
5
  interface Doubles {
6
- value: Float32Array;
6
+ value: Float64Array;
7
7
  size: number;
8
8
  }
9
9
  interface Ints {
@@ -25,7 +25,7 @@ export class PropertiesReader {
25
25
  class DoublesReader {
26
26
  static read(pbf, end) {
27
27
  const { value, size } = pbf.readFields(DoublesReader._readField, { value: [], size: 0 }, end);
28
- return { value: new Float32Array(value), size };
28
+ return { value, size };
29
29
  }
30
30
  static _readField(tag, obj, pbf) {
31
31
  if (tag === 1)
@@ -2,7 +2,7 @@ import earcut from 'earcut';
2
2
  import { TileReader } from "./carto-tile.js";
3
3
  import { parsePbf } from "./tile-loader-utils.js";
4
4
  import { getWorkerUrl } from "../../utils.js";
5
- const VERSION = typeof "9.0.20" !== 'undefined' ? "9.0.20" : 'latest';
5
+ const VERSION = typeof "9.0.23" !== 'undefined' ? "9.0.23" : 'latest';
6
6
  const id = 'cartoVectorTile';
7
7
  const DEFAULT_OPTIONS = {
8
8
  cartoVectorTile: {
@@ -3,7 +3,6 @@ import type { FilterOptions, SourceOptions, TilejsonResult } from "./types.js";
3
3
  export type BoundaryQuerySourceOptions = SourceOptions & FilterOptions & {
4
4
  columns?: string[];
5
5
  tilesetTableName: string;
6
- matchingColumn?: string;
7
6
  propertiesSqlQuery: string;
8
7
  queryParameters?: QueryParameters;
9
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"boundary-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-query-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,wBAAqB;AAE7C,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAUJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAyBxB,CAAC"}
1
+ {"version":3,"file":"boundary-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-query-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,wBAAqB;AAE7C,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AASJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAiBxB,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { baseSource } from "./base-source.js";
2
2
  export const boundaryQuerySource = async function (options) {
3
- const { columns, filters, tilesetTableName, matchingColumn = 'id', propertiesSqlQuery, queryParameters } = options;
3
+ const { columns, filters, tilesetTableName, propertiesSqlQuery, queryParameters } = options;
4
4
  const urlParameters = {
5
5
  tilesetTableName,
6
- matchingColumn,
7
6
  propertiesSqlQuery
8
7
  };
9
8
  if (columns) {
@@ -2,7 +2,6 @@ import type { FilterOptions, SourceOptions, TilejsonResult } from "./types.js";
2
2
  export type BoundaryTableSourceOptions = SourceOptions & FilterOptions & {
3
3
  tilesetTableName: string;
4
4
  columns?: string[];
5
- matchingColumn?: string;
6
5
  propertiesTableName: string;
7
6
  };
8
7
  export declare const boundaryTableSource: (options: BoundaryTableSourceOptions) => Promise<TilejsonResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"boundary-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-table-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AASJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAexB,CAAC"}
1
+ {"version":3,"file":"boundary-table-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-table-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAC,mBAAgB;AAE1E,MAAM,MAAM,0BAA0B,GAAG,aAAa,GACpD,aAAa,GAAG;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAQJ,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAcxB,CAAC"}
@@ -1,9 +1,8 @@
1
1
  import { baseSource } from "./base-source.js";
2
2
  export const boundaryTableSource = async function (options) {
3
- const { filters, tilesetTableName, columns, matchingColumn = 'id', propertiesTableName } = options;
3
+ const { filters, tilesetTableName, columns, propertiesTableName } = options;
4
4
  const urlParameters = {
5
5
  tilesetTableName,
6
- matchingColumn,
7
6
  propertiesTableName
8
7
  };
9
8
  if (columns) {