@deck.gl/carto 9.0.16 → 9.0.17
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/api/carto-api-error.d.ts +3 -1
- package/dist/api/carto-api-error.d.ts.map +1 -1
- package/dist/api/carto-api-error.js +2 -1
- package/dist/api/common.d.ts +0 -8
- package/dist/api/common.d.ts.map +1 -1
- package/dist/api/common.js +0 -9
- package/dist/api/request-with-parameters.d.ts +1 -1
- package/dist/api/request-with-parameters.d.ts.map +1 -1
- package/dist/api/request-with-parameters.js +48 -15
- package/dist/api/types.d.ts +5 -5
- package/dist/api/types.d.ts.map +1 -1
- package/dist/cartoRasterTile-worker.js +1 -1
- package/dist/cartoSpatialTile-worker.js +1 -1
- package/dist/cartoVectorTile-worker.js +1 -1
- package/dist/dist.dev.js +55 -30
- package/dist/index.cjs +48 -31
- package/dist/index.cjs.map +2 -2
- package/dist/layers/quadbin-heatmap-tile-layer.d.ts.map +1 -1
- package/dist/layers/quadbin-heatmap-tile-layer.js +4 -4
- package/dist/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist/sources/raster-source.d.ts +2 -2
- package/dist/sources/raster-source.d.ts.map +1 -1
- package/dist/sources/raster-source.js +4 -1
- package/dist.min.js +10 -10
- package/package.json +2 -2
- package/src/api/carto-api-error.ts +10 -1
- package/src/api/common.ts +0 -12
- package/src/api/request-with-parameters.ts +55 -19
- package/src/api/types.ts +5 -5
- package/src/layers/quadbin-heatmap-tile-layer.ts +13 -3
- package/src/sources/raster-source.ts +10 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-heatmap-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-heatmap-tile-layer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAE,mBAAmB,EAAE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AI,6BAA6B,CAAC,KAAK,CAAC,GAC9F,mBAAmB,GAAG;IACpB,IAAI,EAAE,IAAI,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvD,CAAC;AAEJ,mDAAmD;AACnD,KAAK,6BAA6B,CAAC,KAAK,IAAI,qBAAqB,CAAC,KAAK,CAAC,GACtE,YAAY,GAAG;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC;AAEJ,cAAM,uBAAuB,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,cAAc,CAC3F,UAAU,GAAG,QAAQ,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC,CAC5D;IACC,MAAM,CAAC,SAAS,SAA6B;IAC7C,MAAM,CAAC,YAAY,sDAAgB;IAEnC,YAAY,IAAI,KAAK;CAmDtB;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -49,7 +49,7 @@ class QuadbinHeatmapTileLayer extends CompositeLayer {
|
|
|
49
49
|
static { this.layerName = 'QuadbinHeatmapTileLayer'; }
|
|
50
50
|
static { this.defaultProps = defaultProps; }
|
|
51
51
|
renderLayers() {
|
|
52
|
-
const { getWeight, colorDomain, colorRange, radiusPixels, _subLayerProps } = this.props;
|
|
52
|
+
const { data, getWeight, colorDomain, colorRange, radiusPixels, _subLayerProps, updateTriggers, ...tileLayerProps } = this.props;
|
|
53
53
|
// Inject modified polygon layer as sublayer into TileLayer
|
|
54
54
|
const subLayerProps = {
|
|
55
55
|
..._subLayerProps,
|
|
@@ -67,16 +67,16 @@ class QuadbinHeatmapTileLayer extends CompositeLayer {
|
|
|
67
67
|
const getFillColor = typeof getWeight === 'function'
|
|
68
68
|
? (d, info) => encodeWeight(getWeight(d, info))
|
|
69
69
|
: encodeWeight(getWeight);
|
|
70
|
-
return new PostProcessQuadbinTileLayer(this.getSubLayerProps({
|
|
70
|
+
return new PostProcessQuadbinTileLayer(tileLayerProps, this.getSubLayerProps({
|
|
71
71
|
id: 'heatmap',
|
|
72
|
-
data
|
|
72
|
+
data,
|
|
73
73
|
getFillColor,
|
|
74
74
|
colorDomain,
|
|
75
75
|
colorRange,
|
|
76
76
|
radiusPixels,
|
|
77
77
|
_subLayerProps: subLayerProps,
|
|
78
78
|
updateTriggers: {
|
|
79
|
-
getPosition:
|
|
79
|
+
getPosition: updateTriggers.getWeight
|
|
80
80
|
}
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
@@ -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.
|
|
4
|
+
const VERSION = typeof "9.0.17" !== 'undefined' ? "9.0.17" : '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.
|
|
5
|
+
const VERSION = typeof "9.0.17" !== 'undefined' ? "9.0.17" : 'latest';
|
|
6
6
|
const id = 'cartoSpatialTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoSpatialTile: {
|
|
@@ -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.
|
|
5
|
+
const VERSION = typeof "9.0.17" !== 'undefined' ? "9.0.17" : 'latest';
|
|
6
6
|
const id = 'cartoVectorTile';
|
|
7
7
|
const DEFAULT_OPTIONS = {
|
|
8
8
|
cartoVectorTile: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult, TilesetSourceOptions } from "./types.js";
|
|
2
|
-
export type RasterSourceOptions = SourceOptions & TilesetSourceOptions;
|
|
1
|
+
import type { FilterOptions, SourceOptions, TilejsonResult, TilesetSourceOptions } from "./types.js";
|
|
2
|
+
export type RasterSourceOptions = SourceOptions & TilesetSourceOptions & FilterOptions;
|
|
3
3
|
export declare const rasterSource: (options: RasterSourceOptions) => Promise<TilejsonResult>;
|
|
4
4
|
//# sourceMappingURL=raster-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raster-source.d.ts","sourceRoot":"","sources":["../../src/sources/raster-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,mBAAgB;
|
|
1
|
+
{"version":3,"file":"raster-source.d.ts","sourceRoot":"","sources":["../../src/sources/raster-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,mBAAgB;AAEhG,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,oBAAoB,GAAG,aAAa,CAAC;AAMvF,eAAO,MAAM,YAAY,YAA4B,mBAAmB,KAAG,QAAQ,cAAc,CAOhG,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { baseSource } from "./base-source.js";
|
|
2
2
|
export const rasterSource = async function (options) {
|
|
3
|
-
const { tableName } = options;
|
|
3
|
+
const { tableName, filters } = options;
|
|
4
4
|
const urlParameters = { name: tableName };
|
|
5
|
+
if (filters) {
|
|
6
|
+
urlParameters.filters = filters;
|
|
7
|
+
}
|
|
5
8
|
return baseSource('raster', options, urlParameters);
|
|
6
9
|
};
|