@deck.gl/carto 9.0.0-alpha.4 → 9.0.0-alpha.6
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/LICENSE +19 -0
- 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 +11 -24
- package/dist/es5/index.js +0 -7
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/es5/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist/es5/sources/boundary-query-source.js +4 -4
- package/dist/es5/sources/boundary-query-source.js.map +1 -1
- package/dist/es5/sources/boundary-table-source.js +4 -4
- package/dist/es5/sources/boundary-table-source.js.map +1 -1
- package/dist/es5/sources/index.js +0 -8
- package/dist/es5/sources/index.js.map +1 -1
- package/dist/esm/index.js +2 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/esm/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist/esm/sources/boundary-query-source.js +4 -4
- package/dist/esm/sources/boundary-query-source.js.map +1 -1
- package/dist/esm/sources/boundary-table-source.js +4 -4
- package/dist/esm/sources/boundary-table-source.js.map +1 -1
- package/dist/esm/sources/index.js +0 -1
- package/dist/esm/sources/index.js.map +1 -1
- package/dist.min.js +39 -39
- package/package.json +8 -7
- package/src/index.ts +0 -4
- package/src/sources/boundary-query-source.ts +7 -7
- package/src/sources/boundary-table-source.ts +7 -7
- package/src/sources/index.ts +0 -3
- package/typed/api/layer-map.d.ts +1 -1
- package/typed/index.d.ts +3 -4
- package/typed/index.d.ts.map +1 -1
- package/typed/layers/h3-tile-layer.d.ts +2 -2
- package/typed/layers/h3-tileset-2d.d.ts +1 -1
- package/typed/layers/point-label-layer.d.ts +2 -2
- package/typed/layers/quadbin-layer.d.ts +2 -2
- package/typed/layers/quadbin-tile-layer.d.ts +1 -1
- package/typed/layers/quadbin-tileset-2d.d.ts +1 -1
- package/typed/layers/raster-layer.d.ts +2 -2
- package/typed/layers/raster-tile-layer.d.ts +1 -1
- package/typed/layers/spatial-index-tile-layer.d.ts +3 -3
- package/typed/layers/vector-tile-layer.d.ts +3 -3
- package/typed/sources/boundary-query-source.d.ts +2 -2
- package/typed/sources/boundary-query-source.d.ts.map +1 -1
- package/typed/sources/boundary-table-source.d.ts +2 -2
- package/typed/sources/boundary-table-source.d.ts.map +1 -1
- package/typed/sources/index.d.ts +0 -2
- package/typed/sources/index.d.ts.map +1 -1
- package/typed/style/color-bins-style.d.ts +1 -1
- package/typed/style/color-categories-style.d.ts +1 -1
- package/typed/style/color-continuous-style.d.ts +1 -1
- package/dist/es5/sources/boundary-tileset-source.js +0 -43
- package/dist/es5/sources/boundary-tileset-source.js.map +0 -1
- package/dist/esm/sources/boundary-tileset-source.js +0 -11
- package/dist/esm/sources/boundary-tileset-source.js.map +0 -1
- package/src/sources/boundary-tileset-source.ts +0 -14
- package/typed/package.json +0 -6
- package/typed/sources/boundary-tileset-source.d.ts +0 -6
- package/typed/sources/boundary-tileset-source.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@deck.gl/carto",
|
|
3
3
|
"description": "CARTO official integration with Deck.gl. Build geospatial applications using CARTO and Deck.gl.",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "9.0.0-alpha.
|
|
5
|
+
"version": "9.0.0-alpha.6",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"main": "dist/es5/index.js",
|
|
22
22
|
"module": "dist/esm/index.js",
|
|
23
|
+
"types": "typed/index.d.ts",
|
|
23
24
|
"files": [
|
|
24
25
|
"dist",
|
|
25
26
|
"src",
|
|
@@ -59,12 +60,12 @@
|
|
|
59
60
|
"@types/d3-scale": "^3.0.0"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
|
-
"@deck.gl/aggregation-layers": "^
|
|
63
|
-
"@deck.gl/core": "^
|
|
64
|
-
"@deck.gl/extensions": "^
|
|
65
|
-
"@deck.gl/geo-layers": "^
|
|
66
|
-
"@deck.gl/layers": "^
|
|
63
|
+
"@deck.gl/aggregation-layers": "^9.0.0-alpha",
|
|
64
|
+
"@deck.gl/core": "^9.0.0-alpha",
|
|
65
|
+
"@deck.gl/extensions": "^9.0.0-alpha",
|
|
66
|
+
"@deck.gl/geo-layers": "^9.0.0-alpha",
|
|
67
|
+
"@deck.gl/layers": "^9.0.0-alpha",
|
|
67
68
|
"@loaders.gl/core": "4.0.3"
|
|
68
69
|
},
|
|
69
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "dcb297a8b2b0fcfb3194f16f8df759afcd0e6cac"
|
|
70
71
|
}
|
package/src/index.ts
CHANGED
|
@@ -37,7 +37,6 @@ export type {
|
|
|
37
37
|
import {
|
|
38
38
|
boundaryQuerySource,
|
|
39
39
|
boundaryTableSource,
|
|
40
|
-
boundaryTilesetSource,
|
|
41
40
|
h3QuerySource,
|
|
42
41
|
h3TableSource,
|
|
43
42
|
h3TilesetSource,
|
|
@@ -54,7 +53,6 @@ import {
|
|
|
54
53
|
const CARTO_SOURCES = {
|
|
55
54
|
boundaryQuerySource,
|
|
56
55
|
boundaryTableSource,
|
|
57
|
-
boundaryTilesetSource,
|
|
58
56
|
h3QuerySource,
|
|
59
57
|
h3TableSource,
|
|
60
58
|
h3TilesetSource,
|
|
@@ -70,7 +68,6 @@ const CARTO_SOURCES = {
|
|
|
70
68
|
export {
|
|
71
69
|
boundaryQuerySource,
|
|
72
70
|
boundaryTableSource,
|
|
73
|
-
boundaryTilesetSource,
|
|
74
71
|
h3QuerySource,
|
|
75
72
|
h3TableSource,
|
|
76
73
|
h3TilesetSource,
|
|
@@ -89,7 +86,6 @@ export type {
|
|
|
89
86
|
TilejsonResult,
|
|
90
87
|
BoundaryQuerySourceOptions,
|
|
91
88
|
BoundaryTableSourceOptions,
|
|
92
|
-
BoundaryTilesetSourceOptions,
|
|
93
89
|
H3QuerySourceOptions,
|
|
94
90
|
H3TableSourceOptions,
|
|
95
91
|
H3TilesetSourceOptions,
|
|
@@ -3,26 +3,26 @@ import {baseSource} from './base-source';
|
|
|
3
3
|
import type {SourceOptions, TilejsonResult} from './types';
|
|
4
4
|
|
|
5
5
|
export type BoundaryQuerySourceOptions = SourceOptions & {
|
|
6
|
-
|
|
6
|
+
tilesetTableName: string;
|
|
7
7
|
matchingColumn?: string;
|
|
8
|
-
|
|
8
|
+
propertiesSqlQuery: string;
|
|
9
9
|
queryParameters?: QueryParameters;
|
|
10
10
|
};
|
|
11
11
|
type UrlParameters = {
|
|
12
|
-
|
|
12
|
+
tilesetTableName: string;
|
|
13
13
|
matchingColumn: string;
|
|
14
|
-
|
|
14
|
+
propertiesSqlQuery: string;
|
|
15
15
|
queryParameters?: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const boundaryQuerySource = async function (
|
|
19
19
|
options: BoundaryQuerySourceOptions
|
|
20
20
|
): Promise<TilejsonResult> {
|
|
21
|
-
const {
|
|
21
|
+
const {tilesetTableName, matchingColumn = 'id', propertiesSqlQuery, queryParameters} = options;
|
|
22
22
|
const urlParameters: UrlParameters = {
|
|
23
|
-
|
|
23
|
+
tilesetTableName,
|
|
24
24
|
matchingColumn,
|
|
25
|
-
|
|
25
|
+
propertiesSqlQuery
|
|
26
26
|
};
|
|
27
27
|
if (queryParameters) {
|
|
28
28
|
urlParameters.queryParameters = JSON.stringify(queryParameters);
|
|
@@ -2,26 +2,26 @@ import {baseSource} from './base-source';
|
|
|
2
2
|
import type {SourceOptions, TilejsonResult} from './types';
|
|
3
3
|
|
|
4
4
|
export type BoundaryTableSourceOptions = SourceOptions & {
|
|
5
|
-
|
|
5
|
+
tilesetTableName: string;
|
|
6
6
|
columns?: string[];
|
|
7
7
|
matchingColumn?: string;
|
|
8
|
-
|
|
8
|
+
propertiesTableName: string;
|
|
9
9
|
};
|
|
10
10
|
type UrlParameters = {
|
|
11
|
-
|
|
11
|
+
tilesetTableName: string;
|
|
12
12
|
columns?: string;
|
|
13
13
|
matchingColumn: string;
|
|
14
|
-
|
|
14
|
+
propertiesTableName: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const boundaryTableSource = async function (
|
|
18
18
|
options: BoundaryTableSourceOptions
|
|
19
19
|
): Promise<TilejsonResult> {
|
|
20
|
-
const {
|
|
20
|
+
const {tilesetTableName, columns, matchingColumn = 'id', propertiesTableName} = options;
|
|
21
21
|
const urlParameters: UrlParameters = {
|
|
22
|
-
|
|
22
|
+
tilesetTableName,
|
|
23
23
|
matchingColumn,
|
|
24
|
-
|
|
24
|
+
propertiesTableName
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
if (columns) {
|
package/src/sources/index.ts
CHANGED
|
@@ -7,9 +7,6 @@ export type {BoundaryQuerySourceOptions} from './boundary-query-source';
|
|
|
7
7
|
export {boundaryTableSource} from './boundary-table-source';
|
|
8
8
|
export type {BoundaryTableSourceOptions} from './boundary-table-source';
|
|
9
9
|
|
|
10
|
-
export {boundaryTilesetSource} from './boundary-tileset-source';
|
|
11
|
-
export type {BoundaryTilesetSourceOptions} from './boundary-tileset-source';
|
|
12
|
-
|
|
13
10
|
export {h3QuerySource} from './h3-query-source';
|
|
14
11
|
export type {H3QuerySourceOptions} from './h3-query-source';
|
|
15
12
|
|
package/typed/api/layer-map.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { scaleLinear, scaleOrdinal, scaleLog, scalePoint, scaleQuantile, scaleQuantize, scaleSqrt, scaleThreshold } from 'd3-scale';
|
|
2
|
-
import { Accessor, Layer, _ConstructorOf as ConstructorOf } from '@deck.gl/core
|
|
2
|
+
import { Accessor, Layer, _ConstructorOf as ConstructorOf } from '@deck.gl/core';
|
|
3
3
|
import H3TileLayer from '../layers/h3-tile-layer';
|
|
4
4
|
import QuadbinTileLayer from '../layers/quadbin-tile-layer';
|
|
5
5
|
import VectorTileLayer from '../layers/vector-tile-layer';
|
package/typed/index.d.ts
CHANGED
|
@@ -17,11 +17,10 @@ export { default as colorCategories } from './style/color-categories-style';
|
|
|
17
17
|
export { default as colorContinuous } from './style/color-continuous-style';
|
|
18
18
|
export { CartoAPIError, fetchMap, query } from './api';
|
|
19
19
|
export type { APIErrorContext, FetchMapOptions, Format, MapType, RequestType, QueryParameters, QueryOptions } from './api';
|
|
20
|
-
import { boundaryQuerySource, boundaryTableSource,
|
|
20
|
+
import { boundaryQuerySource, boundaryTableSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, SOURCE_DEFAULTS } from './sources';
|
|
21
21
|
declare const CARTO_SOURCES: {
|
|
22
22
|
boundaryQuerySource: (options: import("./sources").BoundaryQuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
23
23
|
boundaryTableSource: (options: import("./sources").BoundaryTableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
24
|
-
boundaryTilesetSource: (options: import("./sources").BoundaryTilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
25
24
|
h3QuerySource: (options: import("./sources").H3QuerySourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
26
25
|
h3TableSource: (options: import("./sources").H3TableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
27
26
|
h3TilesetSource: (options: import("./sources").H3TilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
@@ -33,6 +32,6 @@ declare const CARTO_SOURCES: {
|
|
|
33
32
|
vectorTableSource: (options: import("./sources").VectorTableSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
34
33
|
vectorTilesetSource: (options: import("./sources").VectorTilesetSourceOptions) => Promise<import("./sources").TilejsonResult>;
|
|
35
34
|
};
|
|
36
|
-
export { boundaryQuerySource, boundaryTableSource,
|
|
37
|
-
export type { TilejsonResult, BoundaryQuerySourceOptions, BoundaryTableSourceOptions,
|
|
35
|
+
export { boundaryQuerySource, boundaryTableSource, h3QuerySource, h3TableSource, h3TilesetSource, rasterSource, quadbinQuerySource, quadbinTableSource, quadbinTilesetSource, vectorQuerySource, vectorTableSource, vectorTilesetSource, CARTO_SOURCES, SOURCE_DEFAULTS };
|
|
36
|
+
export type { TilejsonResult, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, H3QuerySourceOptions, H3TableSourceOptions, H3TilesetSourceOptions, RasterSourceOptions, QuadbinQuerySourceOptions, QuadbinTableSourceOptions, QuadbinTilesetSourceOptions, VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, GeojsonResult, JsonResult } from './sources';
|
|
38
37
|
//# sourceMappingURL=index.d.ts.map
|
package/typed/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,4BAA4B,CAAC;AACtE,QAAA,MAAM,YAAY;;;;;;CAMjB,CAAC;AACF,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,CAAC;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,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,OAAO,CAAC;AACrD,YAAY,EACV,eAAe,EACf,eAAe,EACf,MAAM,EACN,OAAO,EACP,WAAW,EACX,eAAe,EACf,YAAY,EACb,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EAChB,MAAM,WAAW,CAAC;AAEnB,QAAA,MAAM,aAAa;;;;;;;;;;;;;CAalB,CAAC;AAEF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,eAAe,EAChB,CAAC;AAEF,YAAY,EACV,cAAc,EACd,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACb,UAAU,EACX,MAAM,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core
|
|
2
|
-
import { H3HexagonLayer, H3HexagonLayerProps } from '@deck.gl/geo-layers
|
|
1
|
+
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core';
|
|
2
|
+
import { H3HexagonLayer, H3HexagonLayerProps } from '@deck.gl/geo-layers';
|
|
3
3
|
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
4
|
import type { TilejsonResult } from '../sources/types';
|
|
5
5
|
export declare const renderSubLayers: (props: any) => H3HexagonLayer<any, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Accessor, Color, CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core
|
|
2
|
-
import { TextLayer, TextLayerProps } from '@deck.gl/layers
|
|
1
|
+
import { Accessor, Color, CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core';
|
|
2
|
+
import { TextLayer, TextLayerProps } from '@deck.gl/layers';
|
|
3
3
|
declare class EnhancedTextLayer extends TextLayer {
|
|
4
4
|
static layerName: string;
|
|
5
5
|
filterSubLayer({ layer, renderPass }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AccessorFunction, DefaultProps } from '@deck.gl/core
|
|
2
|
-
import { _GeoCellLayer as GeoCellLayer, _GeoCellLayerProps as GeoCellLayerProps } from '@deck.gl/geo-layers
|
|
1
|
+
import { AccessorFunction, DefaultProps } from '@deck.gl/core';
|
|
2
|
+
import { _GeoCellLayer as GeoCellLayer, _GeoCellLayerProps as GeoCellLayerProps } from '@deck.gl/geo-layers';
|
|
3
3
|
/** All properties supported by QuadbinLayer. */
|
|
4
4
|
export declare type QuadbinLayerProps<DataT = unknown> = _QuadbinLayerProps<DataT> & GeoCellLayerProps<DataT>;
|
|
5
5
|
/** Properties added by QuadbinLayer. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core
|
|
1
|
+
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core';
|
|
2
2
|
import QuadbinLayer, { QuadbinLayerProps } from './quadbin-layer';
|
|
3
3
|
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
4
|
import type { TilejsonResult } from '../sources/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Accessor, CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core
|
|
2
|
-
import { ColumnLayerProps } from '@deck.gl/layers
|
|
1
|
+
import { Accessor, CompositeLayer, CompositeLayerProps, Layer, LayersList, DefaultProps } from '@deck.gl/core';
|
|
2
|
+
import { ColumnLayerProps } from '@deck.gl/layers';
|
|
3
3
|
/** All properties supported by RasterLayer. */
|
|
4
4
|
export declare type RasterLayerProps<DataT = unknown> = _RasterLayerProps & ColumnLayerProps<DataT> & CompositeLayerProps;
|
|
5
5
|
/** Properties added by RasterLayer. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core
|
|
1
|
+
import { CompositeLayer, CompositeLayerProps, DefaultProps, Layer, LayersList } from '@deck.gl/core';
|
|
2
2
|
import RasterLayer, { RasterLayerProps } from './raster-layer';
|
|
3
3
|
import { SpatialIndexTileLayerProps } from './spatial-index-tile-layer';
|
|
4
4
|
import type { TilejsonResult } from '../sources/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultProps } from '@deck.gl/core
|
|
2
|
-
import { PickingInfo } from '@deck.gl/core
|
|
3
|
-
import { TileLayer, _Tile2DHeader as Tile2DHeader, TileLayerProps } from '@deck.gl/geo-layers
|
|
1
|
+
import { DefaultProps } from '@deck.gl/core';
|
|
2
|
+
import { PickingInfo } from '@deck.gl/core';
|
|
3
|
+
import { TileLayer, _Tile2DHeader as Tile2DHeader, TileLayerProps } from '@deck.gl/geo-layers';
|
|
4
4
|
/** All properties supported by SpatialIndexTileLayer. */
|
|
5
5
|
export declare type SpatialIndexTileLayerProps<DataT = unknown> = _SpatialIndexTileLayerProps & TileLayerProps<DataT>;
|
|
6
6
|
/** Properties added by SpatialIndexTileLayer. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultProps } from '@deck.gl/core
|
|
2
|
-
import { MVTLayer, MVTLayerProps, TileLayer, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers
|
|
3
|
-
import { GeoJsonLayer } from '@deck.gl/layers
|
|
1
|
+
import { DefaultProps } from '@deck.gl/core';
|
|
2
|
+
import { MVTLayer, MVTLayerProps, TileLayer, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers';
|
|
3
|
+
import { GeoJsonLayer } from '@deck.gl/layers';
|
|
4
4
|
import type { TilejsonResult } from '../sources/types';
|
|
5
5
|
/** All properties supported by VectorTileLayer. */
|
|
6
6
|
export declare type VectorTileLayerProps = _VectorTileLayerProps & Omit<MVTLayerProps, 'data'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { QueryParameters } from '../api';
|
|
2
2
|
import type { SourceOptions, TilejsonResult } from './types';
|
|
3
3
|
export declare type BoundaryQuerySourceOptions = SourceOptions & {
|
|
4
|
-
|
|
4
|
+
tilesetTableName: string;
|
|
5
5
|
matchingColumn?: string;
|
|
6
|
-
|
|
6
|
+
propertiesSqlQuery: string;
|
|
7
7
|
queryParameters?: QueryParameters;
|
|
8
8
|
};
|
|
9
9
|
export declare const boundaryQuerySource: (options: BoundaryQuerySourceOptions) => Promise<TilejsonResult>;
|
|
@@ -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,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,
|
|
1
|
+
{"version":3,"file":"boundary-query-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-query-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAQF,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAWxB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SourceOptions, TilejsonResult } from './types';
|
|
2
2
|
export declare type BoundaryTableSourceOptions = SourceOptions & {
|
|
3
|
-
|
|
3
|
+
tilesetTableName: string;
|
|
4
4
|
columns?: string[];
|
|
5
5
|
matchingColumn?: string;
|
|
6
|
-
|
|
6
|
+
propertiesTableName: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const boundaryTableSource: (options: BoundaryTableSourceOptions) => Promise<TilejsonResult>;
|
|
9
9
|
//# sourceMappingURL=boundary-table-source.d.ts.map
|
|
@@ -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,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,
|
|
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,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,0BAA0B,GAAG,aAAa,GAAG;IACvD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAQF,eAAO,MAAM,mBAAmB,YACrB,0BAA0B,KAClC,QAAQ,cAAc,CAYxB,CAAC"}
|
package/typed/sources/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ export { boundaryQuerySource } from './boundary-query-source';
|
|
|
4
4
|
export type { BoundaryQuerySourceOptions } from './boundary-query-source';
|
|
5
5
|
export { boundaryTableSource } from './boundary-table-source';
|
|
6
6
|
export type { BoundaryTableSourceOptions } from './boundary-table-source';
|
|
7
|
-
export { boundaryTilesetSource } from './boundary-tileset-source';
|
|
8
|
-
export type { BoundaryTilesetSourceOptions } from './boundary-tileset-source';
|
|
9
7
|
export { h3QuerySource } from './h3-query-source';
|
|
10
8
|
export type { H3QuerySourceOptions } from './h3-query-source';
|
|
11
9
|
export { h3TableSource } from './h3-table-source';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAC,cAAc,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9C,YAAY,EAAC,cAAc,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAC,mBAAmB,EAAC,MAAM,yBAAy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AC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.boundaryTilesetSource = void 0;
|
|
9
|
-
|
|
10
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
-
|
|
12
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
-
|
|
14
|
-
var _baseSource = require("./base-source");
|
|
15
|
-
|
|
16
|
-
var boundaryTilesetSource = function () {
|
|
17
|
-
var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(options) {
|
|
18
|
-
var boundaryId, urlParameters;
|
|
19
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
20
|
-
while (1) {
|
|
21
|
-
switch (_context.prev = _context.next) {
|
|
22
|
-
case 0:
|
|
23
|
-
boundaryId = options.boundaryId;
|
|
24
|
-
urlParameters = {
|
|
25
|
-
boundaryId: boundaryId
|
|
26
|
-
};
|
|
27
|
-
return _context.abrupt("return", (0, _baseSource.baseSource)('boundary', options, urlParameters));
|
|
28
|
-
|
|
29
|
-
case 3:
|
|
30
|
-
case "end":
|
|
31
|
-
return _context.stop();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, _callee);
|
|
35
|
-
}));
|
|
36
|
-
|
|
37
|
-
return function boundaryTilesetSource(_x) {
|
|
38
|
-
return _ref.apply(this, arguments);
|
|
39
|
-
};
|
|
40
|
-
}();
|
|
41
|
-
|
|
42
|
-
exports.boundaryTilesetSource = boundaryTilesetSource;
|
|
43
|
-
//# sourceMappingURL=boundary-tileset-source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/sources/boundary-tileset-source.ts"],"names":["boundaryTilesetSource","options","boundaryId","urlParameters"],"mappings":";;;;;;;;;;;;;AAAA;;AAMO,IAAMA,qBAAqB;AAAA,uEAAG,iBACnCC,OADmC;AAAA;AAAA;AAAA;AAAA;AAAA;AAG5BC,YAAAA,UAH4B,GAGdD,OAHc,CAG5BC,UAH4B;AAI7BC,YAAAA,aAJ6B,GAIE;AAACD,cAAAA,UAAU,EAAVA;AAAD,aAJF;AAAA,6CAM5B,4BAA0B,UAA1B,EAAsCD,OAAtC,EAA+CE,aAA/C,CAN4B;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAH;;AAAA,kBAArBH,qBAAqB;AAAA;AAAA;AAAA,GAA3B","sourcesContent":["import {baseSource} from './base-source';\nimport type {SourceOptions, TilejsonResult} from './types';\n\nexport type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};\ntype UrlParameters = {boundaryId: string};\n\nexport const boundaryTilesetSource = async function (\n options: BoundaryTilesetSourceOptions\n): Promise<TilejsonResult> {\n const {boundaryId} = options;\n const urlParameters: UrlParameters = {boundaryId};\n\n return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;\n};\n"],"file":"boundary-tileset-source.js"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { baseSource } from './base-source';
|
|
2
|
-
export const boundaryTilesetSource = async function (options) {
|
|
3
|
-
const {
|
|
4
|
-
boundaryId
|
|
5
|
-
} = options;
|
|
6
|
-
const urlParameters = {
|
|
7
|
-
boundaryId
|
|
8
|
-
};
|
|
9
|
-
return baseSource('boundary', options, urlParameters);
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=boundary-tileset-source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/sources/boundary-tileset-source.ts"],"names":["baseSource","boundaryTilesetSource","options","boundaryId","urlParameters"],"mappings":"AAAA,SAAQA,UAAR,QAAyB,eAAzB;AAMA,OAAO,MAAMC,qBAAqB,GAAG,gBACnCC,OADmC,EAEV;AACzB,QAAM;AAACC,IAAAA;AAAD,MAAeD,OAArB;AACA,QAAME,aAA4B,GAAG;AAACD,IAAAA;AAAD,GAArC;AAEA,SAAOH,UAAU,CAAgB,UAAhB,EAA4BE,OAA5B,EAAqCE,aAArC,CAAjB;AACD,CAPM","sourcesContent":["import {baseSource} from './base-source';\nimport type {SourceOptions, TilejsonResult} from './types';\n\nexport type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};\ntype UrlParameters = {boundaryId: string};\n\nexport const boundaryTilesetSource = async function (\n options: BoundaryTilesetSourceOptions\n): Promise<TilejsonResult> {\n const {boundaryId} = options;\n const urlParameters: UrlParameters = {boundaryId};\n\n return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;\n};\n"],"file":"boundary-tileset-source.js"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {baseSource} from './base-source';
|
|
2
|
-
import type {SourceOptions, TilejsonResult} from './types';
|
|
3
|
-
|
|
4
|
-
export type BoundaryTilesetSourceOptions = SourceOptions & {boundaryId: string};
|
|
5
|
-
type UrlParameters = {boundaryId: string};
|
|
6
|
-
|
|
7
|
-
export const boundaryTilesetSource = async function (
|
|
8
|
-
options: BoundaryTilesetSourceOptions
|
|
9
|
-
): Promise<TilejsonResult> {
|
|
10
|
-
const {boundaryId} = options;
|
|
11
|
-
const urlParameters: UrlParameters = {boundaryId};
|
|
12
|
-
|
|
13
|
-
return baseSource<UrlParameters>('boundary', options, urlParameters) as Promise<TilejsonResult>;
|
|
14
|
-
};
|
package/typed/package.json
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SourceOptions, TilejsonResult } from './types';
|
|
2
|
-
export declare type BoundaryTilesetSourceOptions = SourceOptions & {
|
|
3
|
-
boundaryId: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const boundaryTilesetSource: (options: BoundaryTilesetSourceOptions) => Promise<TilejsonResult>;
|
|
6
|
-
//# sourceMappingURL=boundary-tileset-source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-tileset-source.d.ts","sourceRoot":"","sources":["../../src/sources/boundary-tileset-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE3D,oBAAY,4BAA4B,GAAG,aAAa,GAAG;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAAC;AAGhF,eAAO,MAAM,qBAAqB,YACvB,4BAA4B,KACpC,QAAQ,cAAc,CAKxB,CAAC"}
|