@deck.gl/carto 8.8.9 → 8.8.11
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/dist.dev.js +1747 -1555
- package/dist/es5/api/layer-map.js +104 -9
- package/dist/es5/api/layer-map.js.map +1 -1
- package/dist/es5/api/maps-v3-client.js +8 -8
- package/dist/es5/api/maps-v3-client.js.map +1 -1
- package/dist/es5/api/parseMap.js +38 -4
- package/dist/es5/api/parseMap.js.map +1 -1
- package/dist/es5/api/types.js +2 -0
- package/dist/es5/api/types.js.map +1 -0
- package/dist/es5/layers/carto-tile-layer.js +33 -107
- package/dist/es5/layers/carto-tile-layer.js.map +1 -1
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js +6 -30
- package/dist/es5/layers/schema/carto-spatial-tile-loader.js.map +1 -1
- package/dist/es5/layers/schema/carto-tile.js +30 -6
- package/dist/es5/layers/schema/carto-tile.js.map +1 -1
- package/dist/es5/layers/schema/carto-vector-tile-loader.js +81 -0
- package/dist/es5/layers/schema/carto-vector-tile-loader.js.map +1 -0
- package/dist/es5/layers/schema/tile-loader-utils.js +34 -0
- package/dist/es5/layers/schema/tile-loader-utils.js.map +1 -0
- package/dist/es5/layers/spatial-index-tile-layer.js +40 -0
- package/dist/es5/layers/spatial-index-tile-layer.js.map +1 -1
- package/dist/esm/api/layer-map.js +85 -9
- package/dist/esm/api/layer-map.js.map +1 -1
- package/dist/esm/api/maps-v3-client.js +3 -2
- package/dist/esm/api/maps-v3-client.js.map +1 -1
- package/dist/esm/api/parseMap.js +41 -5
- package/dist/esm/api/parseMap.js.map +1 -1
- package/dist/esm/api/types.js +2 -0
- package/dist/esm/api/types.js.map +1 -0
- package/dist/esm/layers/carto-tile-layer.js +31 -82
- package/dist/esm/layers/carto-tile-layer.js.map +1 -1
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js +4 -27
- package/dist/esm/layers/schema/carto-spatial-tile-loader.js.map +1 -1
- package/dist/esm/layers/schema/carto-tile.js +22 -6
- package/dist/esm/layers/schema/carto-tile.js.map +1 -1
- package/dist/esm/layers/schema/carto-vector-tile-loader.js +40 -0
- package/dist/esm/layers/schema/carto-vector-tile-loader.js.map +1 -0
- package/dist/esm/layers/schema/tile-loader-utils.js +23 -0
- package/dist/esm/layers/schema/tile-loader-utils.js.map +1 -0
- package/dist/esm/layers/spatial-index-tile-layer.js +40 -1
- package/dist/esm/layers/spatial-index-tile-layer.js.map +1 -1
- package/dist.min.js +138 -138
- package/package.json +2 -2
- package/src/api/layer-map.ts +103 -17
- package/src/api/maps-v3-client.ts +3 -3
- package/src/api/parseMap.ts +80 -15
- package/src/api/types.ts +108 -0
- package/src/layers/carto-tile-layer.ts +32 -82
- package/src/layers/schema/carto-spatial-tile-loader.ts +4 -27
- package/src/layers/schema/carto-tile.ts +31 -6
- package/src/layers/schema/carto-vector-tile-loader.ts +39 -0
- package/src/layers/schema/tile-loader-utils.ts +22 -0
- package/src/layers/spatial-index-tile-layer.ts +37 -1
- package/typed/api/layer-map.d.ts +10 -13
- package/typed/api/layer-map.d.ts.map +1 -1
- package/typed/api/parseMap.d.ts.map +1 -1
- package/typed/api/types.d.ts +87 -0
- package/typed/api/types.d.ts.map +1 -0
- package/typed/layers/carto-tile-layer.d.ts +2 -0
- package/typed/layers/carto-tile-layer.d.ts.map +1 -1
- package/typed/layers/schema/carto-spatial-tile-loader.d.ts.map +1 -1
- package/typed/layers/schema/carto-tile.d.ts +4 -0
- package/typed/layers/schema/carto-tile.d.ts.map +1 -1
- package/typed/layers/schema/carto-vector-tile-loader.d.ts +4 -0
- package/typed/layers/schema/carto-vector-tile-loader.d.ts.map +1 -0
- package/typed/layers/schema/tile-loader-utils.d.ts +5 -0
- package/typed/layers/schema/tile-loader-utils.d.ts.map +1 -0
- package/typed/layers/spatial-index-tile-layer.d.ts +2 -1
- package/typed/layers/spatial-index-tile-layer.d.ts.map +1 -1
- package/typed/api/index.js +0 -3
- package/typed/api/layer-map.js +0 -264
- package/typed/api/maps-api-common.js +0 -50
- package/typed/api/maps-client.js +0 -125
- package/typed/api/maps-v3-client.js +0 -304
- package/typed/api/parseMap.js +0 -178
- package/typed/basemap.js +0 -9
- package/typed/config.js +0 -35
- package/typed/index.js +0 -10
- package/typed/layers/carto-layer.js +0 -173
- package/typed/layers/carto-tile-layer.js +0 -105
- package/typed/layers/h3-tile-layer.js +0 -47
- package/typed/layers/h3-tileset-2d.js +0 -85
- package/typed/layers/quadkey-tile-layer.d.ts +0 -21
- package/typed/layers/quadkey-tile-layer.d.ts.map +0 -1
- package/typed/layers/quadkey-tile-layer.js +0 -42
- package/typed/layers/quadkey-tileset-2d.d.ts +0 -15
- package/typed/layers/quadkey-tileset-2d.d.ts.map +0 -1
- package/typed/layers/quadkey-tileset-2d.js +0 -36
- package/typed/layers/schema/carto-tile.js +0 -161
- package/typed/layers/spatial-index-tile-layer.js +0 -40
- package/typed/style/color-bins-style.js +0 -12
- package/typed/style/color-categories-style.js +0 -16
- package/typed/style/color-continuous-style.js +0 -12
- package/typed/style/palette.js +0 -62
- package/typed/style/utils.js +0 -15
- package/typed/utils.js +0 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import Protobuf from 'pbf';
|
|
2
1
|
import {LoaderOptions, LoaderWithParser} from '@loaders.gl/loader-utils';
|
|
3
2
|
|
|
4
|
-
import {KeyValueProperties} from './carto-tile';
|
|
5
|
-
import {binaryToSpatialjson, Properties, SpatialJson} from './spatialjson-utils';
|
|
6
3
|
import {Tile, TileReader} from './carto-spatial-tile';
|
|
4
|
+
import {parsePbf, unpackProperties} from './tile-loader-utils';
|
|
5
|
+
import {binaryToSpatialjson, SpatialJson} from './spatialjson-utils';
|
|
7
6
|
|
|
8
7
|
const CartoSpatialTileLoader: LoaderWithParser = {
|
|
9
8
|
name: 'CARTO Spatial Tile',
|
|
@@ -11,10 +10,7 @@ const CartoSpatialTileLoader: LoaderWithParser = {
|
|
|
11
10
|
id: 'cartoSpatialTile',
|
|
12
11
|
module: 'carto',
|
|
13
12
|
extensions: ['pbf'],
|
|
14
|
-
mimeTypes: [
|
|
15
|
-
'application/vnd.carto-spatial-tile',
|
|
16
|
-
'application/x-protobuf' // Back-compatibility
|
|
17
|
-
],
|
|
13
|
+
mimeTypes: ['application/vnd.carto-spatial-tile'],
|
|
18
14
|
category: 'geometry',
|
|
19
15
|
worker: false,
|
|
20
16
|
parse: async (arrayBuffer, options) => parseCartoSpatialTile(arrayBuffer, options),
|
|
@@ -22,31 +18,12 @@ const CartoSpatialTileLoader: LoaderWithParser = {
|
|
|
22
18
|
options: {}
|
|
23
19
|
};
|
|
24
20
|
|
|
25
|
-
function parsePbf(buffer: ArrayBuffer): Tile {
|
|
26
|
-
const pbf = new Protobuf(buffer);
|
|
27
|
-
const tile = TileReader.read(pbf);
|
|
28
|
-
return tile;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function unpackProperties(properties: KeyValueProperties[]): Properties[] {
|
|
32
|
-
if (!properties || !properties.length) {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
return properties.map(item => {
|
|
36
|
-
const currentRecord: Properties = {};
|
|
37
|
-
item.data.forEach(({key, value}) => {
|
|
38
|
-
currentRecord[key] = value;
|
|
39
|
-
});
|
|
40
|
-
return currentRecord;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
|
|
44
21
|
function parseCartoSpatialTile(
|
|
45
22
|
arrayBuffer: ArrayBuffer,
|
|
46
23
|
options?: LoaderOptions
|
|
47
24
|
): SpatialJson | null {
|
|
48
25
|
if (!arrayBuffer) return null;
|
|
49
|
-
const tile = parsePbf(arrayBuffer);
|
|
26
|
+
const tile: Tile = parsePbf(arrayBuffer, TileReader);
|
|
50
27
|
|
|
51
28
|
const {cells} = tile;
|
|
52
29
|
const data = {
|
|
@@ -67,6 +67,21 @@ class IntsReader {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
// Fields ========================================
|
|
71
|
+
|
|
72
|
+
interface Fields {
|
|
73
|
+
id: number;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class FieldsReader {
|
|
77
|
+
static read(pbf, end?: number): Fields {
|
|
78
|
+
return pbf.readFields(FieldsReader._readField, {id: 0}, end);
|
|
79
|
+
}
|
|
80
|
+
static _readField(this: void, tag: number, obj: Fields, pbf) {
|
|
81
|
+
if (tag === 1) obj.id = pbf.readVarint();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
70
85
|
// NumericProp ========================================
|
|
71
86
|
|
|
72
87
|
export interface NumericProp {
|
|
@@ -106,13 +121,21 @@ interface Points {
|
|
|
106
121
|
featureIds: Ints;
|
|
107
122
|
properties: KeyValueProperties[];
|
|
108
123
|
numericProps: Record<string, NumericProp>;
|
|
124
|
+
fields: Fields[];
|
|
109
125
|
}
|
|
110
126
|
|
|
111
127
|
class PointsReader {
|
|
112
128
|
static read(pbf, end?: number): Points {
|
|
113
129
|
return pbf.readFields(
|
|
114
130
|
PointsReader._readField,
|
|
115
|
-
{
|
|
131
|
+
{
|
|
132
|
+
positions: null,
|
|
133
|
+
globalFeatureIds: null,
|
|
134
|
+
featureIds: null,
|
|
135
|
+
properties: [],
|
|
136
|
+
numericProps: {},
|
|
137
|
+
fields: []
|
|
138
|
+
},
|
|
116
139
|
end
|
|
117
140
|
);
|
|
118
141
|
}
|
|
@@ -124,7 +147,7 @@ class PointsReader {
|
|
|
124
147
|
else if (tag === 5) {
|
|
125
148
|
const entry = NumericPropKeyValueReader.read(pbf, pbf.readVarint() + pbf.pos);
|
|
126
149
|
obj.numericProps[entry.key] = entry.value;
|
|
127
|
-
}
|
|
150
|
+
} else if (tag === 6) obj.fields.push(FieldsReader.read(pbf, pbf.readVarint() + pbf.pos));
|
|
128
151
|
}
|
|
129
152
|
}
|
|
130
153
|
|
|
@@ -143,7 +166,8 @@ class LinesReader {
|
|
|
143
166
|
globalFeatureIds: null,
|
|
144
167
|
featureIds: null,
|
|
145
168
|
properties: [],
|
|
146
|
-
numericProps: {}
|
|
169
|
+
numericProps: {},
|
|
170
|
+
fields: []
|
|
147
171
|
},
|
|
148
172
|
end
|
|
149
173
|
);
|
|
@@ -157,7 +181,7 @@ class LinesReader {
|
|
|
157
181
|
else if (tag === 6) {
|
|
158
182
|
const entry = NumericPropKeyValueReader.read(pbf, pbf.readVarint() + pbf.pos);
|
|
159
183
|
obj.numericProps[entry.key] = entry.value;
|
|
160
|
-
}
|
|
184
|
+
} else if (tag === 7) obj.fields.push(FieldsReader.read(pbf, pbf.readVarint() + pbf.pos));
|
|
161
185
|
}
|
|
162
186
|
}
|
|
163
187
|
// Polygons ========================================
|
|
@@ -180,7 +204,8 @@ class PolygonsReader {
|
|
|
180
204
|
primitivePolygonIndices: null,
|
|
181
205
|
triangles: null,
|
|
182
206
|
properties: [],
|
|
183
|
-
numericProps: {}
|
|
207
|
+
numericProps: {},
|
|
208
|
+
fields: []
|
|
184
209
|
},
|
|
185
210
|
end
|
|
186
211
|
);
|
|
@@ -197,7 +222,7 @@ class PolygonsReader {
|
|
|
197
222
|
else if (tag === 8) {
|
|
198
223
|
const entry = NumericPropKeyValueReader.read(pbf, pbf.readVarint() + pbf.pos);
|
|
199
224
|
obj.numericProps[entry.key] = entry.value;
|
|
200
|
-
}
|
|
225
|
+
} else if (tag === 9) obj.fields.push(FieldsReader.read(pbf, pbf.readVarint() + pbf.pos));
|
|
201
226
|
}
|
|
202
227
|
}
|
|
203
228
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {LoaderOptions, LoaderWithParser} from '@loaders.gl/loader-utils';
|
|
2
|
+
import type {BinaryFeatures} from '@loaders.gl/schema';
|
|
3
|
+
|
|
4
|
+
import {TileReader} from './carto-tile';
|
|
5
|
+
import {parsePbf, unpackProperties} from './tile-loader-utils';
|
|
6
|
+
|
|
7
|
+
const CartoVectorTileLoader: LoaderWithParser = {
|
|
8
|
+
name: 'CARTO Vector Tile',
|
|
9
|
+
version: '1',
|
|
10
|
+
id: 'cartoVectorTile',
|
|
11
|
+
module: 'carto',
|
|
12
|
+
extensions: ['pbf'],
|
|
13
|
+
mimeTypes: ['application/vnd.carto-vector-tile'],
|
|
14
|
+
category: 'geometry',
|
|
15
|
+
worker: false,
|
|
16
|
+
parse: async (arrayBuffer, options) => parseCartoVectorTile(arrayBuffer, options),
|
|
17
|
+
parseSync: parseCartoVectorTile,
|
|
18
|
+
options: {}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
function parseCartoVectorTile(
|
|
22
|
+
arrayBuffer: ArrayBuffer,
|
|
23
|
+
options?: LoaderOptions
|
|
24
|
+
): BinaryFeatures | null {
|
|
25
|
+
if (!arrayBuffer) return null;
|
|
26
|
+
const tile = parsePbf(arrayBuffer, TileReader);
|
|
27
|
+
|
|
28
|
+
const {points, lines, polygons} = tile;
|
|
29
|
+
const data = {
|
|
30
|
+
points: {...points, properties: unpackProperties(points.properties)},
|
|
31
|
+
lines: {...lines, properties: unpackProperties(lines.properties)},
|
|
32
|
+
polygons: {...polygons, properties: unpackProperties(polygons.properties)}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// Note: there is slight, difference in `numericProps` type, however geojson/mvtlayer can cope with this
|
|
36
|
+
return data as unknown as BinaryFeatures;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default CartoVectorTileLoader;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Protobuf from 'pbf';
|
|
2
|
+
import {KeyValueProperties} from './carto-tile';
|
|
3
|
+
import {Properties} from './spatialjson-utils';
|
|
4
|
+
|
|
5
|
+
export function parsePbf(buffer: ArrayBuffer, TileReader) {
|
|
6
|
+
const pbf = new Protobuf(buffer);
|
|
7
|
+
const tile = TileReader.read(pbf);
|
|
8
|
+
return tile;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function unpackProperties(properties: KeyValueProperties[]): Properties[] {
|
|
12
|
+
if (!properties || !properties.length) {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
return properties.map(item => {
|
|
16
|
+
const currentRecord: Properties = {};
|
|
17
|
+
item.data.forEach(({key, value}) => {
|
|
18
|
+
currentRecord[key] = value;
|
|
19
|
+
});
|
|
20
|
+
return currentRecord;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
@@ -3,7 +3,13 @@ import CartoSpatialTileLoader from './schema/carto-spatial-tile-loader';
|
|
|
3
3
|
registerLoaders([CartoSpatialTileLoader]);
|
|
4
4
|
|
|
5
5
|
import {PickingInfo} from '@deck.gl/core';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
TileLayer,
|
|
8
|
+
_getURLFromTemplate,
|
|
9
|
+
_Tile2DHeader as Tile2DHeader,
|
|
10
|
+
_TileLoadProps as TileLoadProps
|
|
11
|
+
} from '@deck.gl/geo-layers';
|
|
12
|
+
import {TILE_FORMATS} from '../api/maps-api-common';
|
|
7
13
|
|
|
8
14
|
function isFeatureIdDefined(value: unknown): boolean {
|
|
9
15
|
return value !== undefined && value !== null && value !== '';
|
|
@@ -12,6 +18,36 @@ function isFeatureIdDefined(value: unknown): boolean {
|
|
|
12
18
|
export default class SpatialIndexTileLayer<ExtraProps = {}> extends TileLayer<any, ExtraProps> {
|
|
13
19
|
static layerName = 'SpatialIndexTileLayer';
|
|
14
20
|
|
|
21
|
+
getTileData(tile: TileLoadProps) {
|
|
22
|
+
const {data, getTileData, fetch} = this.props;
|
|
23
|
+
const {signal} = tile;
|
|
24
|
+
|
|
25
|
+
tile.url =
|
|
26
|
+
typeof data === 'string' || Array.isArray(data) ? _getURLFromTemplate(data, tile) : null;
|
|
27
|
+
if (!tile.url) {
|
|
28
|
+
return Promise.reject('Invalid URL');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (getTileData) {
|
|
32
|
+
return getTileData(tile);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let loadOptions = this.getLoadOptions();
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
const {formatTiles} = this.props;
|
|
38
|
+
|
|
39
|
+
// The backend doesn't yet support our custom mime-type, so force it here
|
|
40
|
+
// TODO remove entire `getTileData` method once backend sends the correct mime-type
|
|
41
|
+
if (formatTiles === TILE_FORMATS.BINARY) {
|
|
42
|
+
loadOptions = {
|
|
43
|
+
...loadOptions,
|
|
44
|
+
mimeType: 'application/vnd.carto-spatial-tile'
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return fetch(tile.url, {propName: 'data', layer: this, loadOptions, signal});
|
|
49
|
+
}
|
|
50
|
+
|
|
15
51
|
protected _updateAutoHighlight(info: PickingInfo): void {
|
|
16
52
|
const {hoveredFeatureId} = this.state;
|
|
17
53
|
const hoveredFeature = info.object;
|
package/typed/api/layer-map.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { scaleLinear, scaleOrdinal, scaleLog, scalePoint, scaleQuantile, scaleQuantize, scaleSqrt, scaleThreshold } from 'd3-scale';
|
|
2
|
-
import { Layer, _ConstructorOf as ConstructorOf } from '@deck.gl/core/typed';
|
|
2
|
+
import { Accessor, Layer, _ConstructorOf as ConstructorOf } from '@deck.gl/core/typed';
|
|
3
3
|
import { MVTLayer } from '@deck.gl/geo-layers/typed';
|
|
4
4
|
import CartoTileLayer from '../layers/carto-tile-layer';
|
|
5
5
|
import H3TileLayer from '../layers/h3-tile-layer';
|
|
6
6
|
import QuadbinTileLayer from '../layers/quadbin-tile-layer';
|
|
7
|
+
import { CustomMarkersRange, MapDataset, MapTextSubLayerConfig, TextLabel, VisConfig, VisualChannelField, VisualChannels } from './types';
|
|
7
8
|
declare const SCALE_FUNCS: {
|
|
8
9
|
linear: typeof scaleLinear;
|
|
9
10
|
ordinal: typeof scaleOrdinal;
|
|
@@ -26,14 +27,14 @@ export declare const OPACITY_MAP: {
|
|
|
26
27
|
getLineColor: string;
|
|
27
28
|
getTextColor: string;
|
|
28
29
|
};
|
|
29
|
-
export declare function getLayer(type: string, config:
|
|
30
|
+
export declare function getLayer(type: string, config: MapTextSubLayerConfig, dataset: MapDataset): {
|
|
30
31
|
Layer: ConstructorOf<Layer>;
|
|
31
32
|
propMap: any;
|
|
32
33
|
defaultProps: any;
|
|
33
34
|
};
|
|
34
35
|
export declare function layerFromTileDataset(formatTiles: string | null | undefined, scheme: string): typeof CartoTileLayer | typeof H3TileLayer | typeof MVTLayer | typeof QuadbinTileLayer;
|
|
35
36
|
declare function domainFromValues(values: any, scaleType: SCALE_TYPE): any;
|
|
36
|
-
export declare function opacityToAlpha(opacity
|
|
37
|
+
export declare function opacityToAlpha(opacity?: number): number;
|
|
37
38
|
export declare function getColorValueAccessor({ name }: {
|
|
38
39
|
name: any;
|
|
39
40
|
}, colorAggregation: any, data: any): any;
|
|
@@ -46,17 +47,13 @@ export declare function getColorAccessor({ name }: {
|
|
|
46
47
|
colorMap: any;
|
|
47
48
|
};
|
|
48
49
|
}, opacity: number | undefined, data: any): any;
|
|
50
|
+
export declare function getIconUrlAccessor(field: VisualChannelField | null | undefined, fallbackUrl: string | null | undefined, range: CustomMarkersRange | null | undefined, maxIconSize: number, data: any): any;
|
|
51
|
+
export declare function getMaxMarkerSize(visConfig: VisConfig, visualChannels: VisualChannels): number;
|
|
52
|
+
export declare function negateAccessor<T>(accessor: Accessor<T, number>): Accessor<T, number>;
|
|
49
53
|
export declare function getSizeAccessor({ name }: {
|
|
50
54
|
name: any;
|
|
51
|
-
}, scaleType: SCALE_TYPE, aggregation: any, range: Iterable<Range
|
|
52
|
-
export declare function getTextAccessor({ name, type }:
|
|
53
|
-
|
|
54
|
-
type: any;
|
|
55
|
-
}, data: any): any;
|
|
56
|
-
export declare function getTextPixelOffsetAccessor({ alignment, anchor, size }: {
|
|
57
|
-
alignment: any;
|
|
58
|
-
anchor: any;
|
|
59
|
-
size: any;
|
|
60
|
-
}, radius: any): number[] | ((d: any) => number[]);
|
|
55
|
+
}, scaleType: SCALE_TYPE | undefined, aggregation: any, range: Iterable<Range> | undefined, data: any): any;
|
|
56
|
+
export declare function getTextAccessor({ name, type }: VisualChannelField, data: any): any;
|
|
57
|
+
export declare function getTextPixelOffsetAccessor({ alignment, anchor, size }: TextLabel, radius: any): Accessor<unknown, [number, number]>;
|
|
61
58
|
export { domainFromValues as _domainFromValues };
|
|
62
59
|
//# sourceMappingURL=layer-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-map.d.ts","sourceRoot":"","sources":["../../src/api/layer-map.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACf,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAC,KAAK,EAAE,cAAc,IAAI,aAAa,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"layer-map.d.ts","sourceRoot":"","sources":["../../src/api/layer-map.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,aAAa,EACb,aAAa,EACb,SAAS,EACT,cAAc,EACf,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAE,cAAc,IAAI,aAAa,EAAC,MAAM,eAAe,CAAC;AAG/E,OAAO,EAAiB,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAE7D,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,cAAc,EACf,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,WAAW;;;;;;;;;CAShB,CAAC;AACF,oBAAY,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC;AAQlD,eAAO,MAAM,WAAW;;;;;CAKvB,C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,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAEpF;AAED,wBAAgB,eAAe,CAC7B,EAAC,IAAI,EAAC;;CAAA,EACN,SAAS,EAAE,UAAU,GAAG,SAAS,EACjC,WAAW,KAAA,EACX,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,SAAS,EAClC,IAAI,EAAE,GAAG,OAiBV;AAUD,wBAAgB,eAAe,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,EAAE,kBAAkB,EAAE,IAAI,KAAA,OAMrE;AAED,wBAAgB,0BAA0B,CACxC,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAC,EAAE,SAAS,EACpC,MAAM,KAAA,GACL,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAgBrC;AAED,OAAO,EAAC,gBAAgB,IAAI,iBAAiB,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseMap.d.ts","sourceRoot":"","sources":["../../src/api/parseMap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseMap.d.ts","sourceRoot":"","sources":["../../src/api/parseMap.ts"],"names":[],"mappings":"AAmBA,wBAAgB,QAAQ,CAAC,IAAI,KAAA;;;;;;;;;EAqC5B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { SCALE_TYPE } from './layer-map';
|
|
2
|
+
export declare type VisualChannelField = {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type VisualChannels = {
|
|
7
|
+
colorField?: VisualChannelField;
|
|
8
|
+
colorScale?: SCALE_TYPE;
|
|
9
|
+
customMarkersField?: VisualChannelField;
|
|
10
|
+
customMarkersScale?: SCALE_TYPE;
|
|
11
|
+
radiusField?: VisualChannelField;
|
|
12
|
+
radiusScale?: SCALE_TYPE;
|
|
13
|
+
rotationScale?: SCALE_TYPE;
|
|
14
|
+
rotationField?: VisualChannelField;
|
|
15
|
+
sizeField?: VisualChannelField;
|
|
16
|
+
sizeScale?: SCALE_TYPE;
|
|
17
|
+
strokeColorField?: VisualChannelField;
|
|
18
|
+
strokeColorScale?: SCALE_TYPE;
|
|
19
|
+
heightField?: VisualChannelField;
|
|
20
|
+
heightScale?: SCALE_TYPE;
|
|
21
|
+
};
|
|
22
|
+
export declare type ColorRange = {
|
|
23
|
+
category: string;
|
|
24
|
+
colors: string[];
|
|
25
|
+
colorMap: string[][] | undefined;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
};
|
|
29
|
+
export declare type CustomMarkersRange = {
|
|
30
|
+
markerMap: {
|
|
31
|
+
value: string;
|
|
32
|
+
markerUrl?: string;
|
|
33
|
+
}[];
|
|
34
|
+
othersMarker?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type VisConfig = {
|
|
37
|
+
filled?: boolean;
|
|
38
|
+
opacity?: number;
|
|
39
|
+
enable3d?: boolean;
|
|
40
|
+
colorAggregation?: any;
|
|
41
|
+
colorRange: ColorRange;
|
|
42
|
+
customMarkers?: boolean;
|
|
43
|
+
customMarkersRange?: CustomMarkersRange | null;
|
|
44
|
+
customMarkersUrl?: string | null;
|
|
45
|
+
radius: number;
|
|
46
|
+
radiusRange?: number[];
|
|
47
|
+
sizeAggregation?: any;
|
|
48
|
+
sizeRange?: any;
|
|
49
|
+
strokeColorAggregation?: any;
|
|
50
|
+
strokeOpacity?: number;
|
|
51
|
+
strokeColorRange?: ColorRange;
|
|
52
|
+
heightRange?: any;
|
|
53
|
+
heightAggregation?: any;
|
|
54
|
+
};
|
|
55
|
+
export declare type TextLabel = {
|
|
56
|
+
field: VisualChannelField | null | undefined;
|
|
57
|
+
alignment?: 'center' | 'bottom' | 'top';
|
|
58
|
+
anchor?: 'middle' | 'start' | 'end';
|
|
59
|
+
size: number;
|
|
60
|
+
color?: number[];
|
|
61
|
+
offset?: [number, number];
|
|
62
|
+
};
|
|
63
|
+
export declare type MapLayerConfig = {
|
|
64
|
+
columns?: Record<string, any>;
|
|
65
|
+
color?: number[];
|
|
66
|
+
label?: string;
|
|
67
|
+
dataId: string;
|
|
68
|
+
textLabel: TextLabel[];
|
|
69
|
+
visConfig: VisConfig;
|
|
70
|
+
};
|
|
71
|
+
export declare type MapTextSubLayerConfig = Omit<MapLayerConfig, 'textLabel'> & {
|
|
72
|
+
textLabel?: TextLabel;
|
|
73
|
+
};
|
|
74
|
+
export declare type MapConfigLayer = {
|
|
75
|
+
type: string;
|
|
76
|
+
id: string;
|
|
77
|
+
config: MapLayerConfig;
|
|
78
|
+
visualChannels: VisualChannels;
|
|
79
|
+
};
|
|
80
|
+
export declare type MapDataset = {
|
|
81
|
+
id: string;
|
|
82
|
+
data: any;
|
|
83
|
+
aggregationExp: string | null;
|
|
84
|
+
aggregationResLevel: number | null;
|
|
85
|
+
geoColumn: string;
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,aAAa,CAAC;AAEvC,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,WAAW,CAAC,EAAE,UAAU,CAAC;IAEzB,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,aAAa,CAAC,EAAE,kBA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}
|
|
@@ -18,6 +18,7 @@ declare type _CartoTileLayerProps = {
|
|
|
18
18
|
export default class CartoTileLayer<DataT extends Feature = Feature, ExtraProps = {}> extends MVTLayer<DataT, Required<_CartoTileLayerProps> & ExtraProps> {
|
|
19
19
|
static layerName: string;
|
|
20
20
|
static defaultProps: DefaultProps<CartoTileLayerProps<Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>>>;
|
|
21
|
+
initializeState(): void;
|
|
21
22
|
getTileData(tile: TileLoadProps): any;
|
|
22
23
|
renderSubLayers(props: TileLayer['props'] & {
|
|
23
24
|
id: string;
|
|
@@ -25,6 +26,7 @@ export default class CartoTileLayer<DataT extends Feature = Feature, ExtraProps
|
|
|
25
26
|
_offset: number;
|
|
26
27
|
tile: _Tile2DHeader;
|
|
27
28
|
}): GeoJsonLayer | null;
|
|
29
|
+
getPickingInfo(params: any): import("modules/geo-layers/src/tile-layer/tile-layer").TiledPickingInfo<any>;
|
|
28
30
|
}
|
|
29
31
|
export {};
|
|
30
32
|
//# sourceMappingURL=carto-tile-layer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/carto-tile-layer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carto-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/carto-tile-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,SAAS,EAET,aAAa,EACb,cAAc,IAAI,aAAa,EAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAC,UAAU,EAAe,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AASrC,kDAAkD;AAClD,oBAAY,mBAAmB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,IAAI,oBAAoB,GACrF,aAAa,CAAC,KAAK,CAAC,CAAC;AAEvB,0CAA0C;AAC1C,aAAK,oBAAoB,GAAG;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc,CACjC,KAAK,SAAS,OAAO,GAAG,OAAO,EAC/B,UAAU,GAAG,EAAE,CACf,SAAQ,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAAC;IACpE,MAAM,CAAC,SAAS,SAAoB;IACpC,MAAM,CAAC,YAAY,8GAAgB;IAEnC,eAAe,IAAI,IAAI;IAMvB,WAAW,CAAC,IAAI,EAAE,aAAa;IAsB/B,eAAe,CACb,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG;QAC1B,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,GAAG,CAAC;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,aAAa,CAAC;KACrB,GACA,YAAY,GAAG,IAAI;IAmBtB,cAAc,CAAC,MAAM,KAAA;CAUtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-spatial-tile-loader.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-spatial-tile-loader.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carto-spatial-tile-loader.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-spatial-tile-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AAMzE,QAAA,MAAM,sBAAsB,EAAE,gBAY7B,CAAC;AAiBF,eAAe,sBAAsB,CAAC"}
|
|
@@ -17,6 +17,9 @@ interface Ints {
|
|
|
17
17
|
value: Uint32Array;
|
|
18
18
|
size: number;
|
|
19
19
|
}
|
|
20
|
+
interface Fields {
|
|
21
|
+
id: number;
|
|
22
|
+
}
|
|
20
23
|
export interface NumericProp {
|
|
21
24
|
value: number[];
|
|
22
25
|
}
|
|
@@ -34,6 +37,7 @@ interface Points {
|
|
|
34
37
|
featureIds: Ints;
|
|
35
38
|
properties: KeyValueProperties[];
|
|
36
39
|
numericProps: Record<string, NumericProp>;
|
|
40
|
+
fields: Fields[];
|
|
37
41
|
}
|
|
38
42
|
interface Lines extends Points {
|
|
39
43
|
pathIndices: Ints;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-tile.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-tile.ts"],"names":[],"mappings":"AACA,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAcD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,cAAc,EAAE,CAAC;CACxB;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,IAAI,CAAC,GAAG,KAAA,EAAE,GAAG,CAAC,EAAE,MAAM;IAG7B,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,KAAA;CAGxE;AAID,UAAU,OAAO;IACf,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAiBD,UAAU,IAAI;IACZ,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd;AAeD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAYD,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,qBAAa,yBAAyB;IACpC,MAAM,CAAC,IAAI,CAAC,GAAG,KAAA,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,oBAAoB;IAGpD,MAAM,CAAC,UAAU,CA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
|
1
|
+
import { KeyValueProperties } from './carto-tile';
|
|
2
|
+
import { Properties } from './spatialjson-utils';
|
|
3
|
+
export declare function parsePbf(buffer: ArrayBuffer, TileReader: any): any;
|
|
4
|
+
export declare function unpackProperties(properties: KeyValueProperties[]): Properties[];
|
|
5
|
+
//# sourceMappingURL=tile-loader-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tile-loader-utils.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/tile-loader-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAE/C,wBAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,KAAA,OAIvD;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,kBAAkB,EAAE,GAAG,UAAU,EAAE,CAW/E"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PickingInfo } from '@deck.gl/core/typed';
|
|
2
|
-
import { TileLayer, _Tile2DHeader as Tile2DHeader } from '@deck.gl/geo-layers/typed';
|
|
2
|
+
import { TileLayer, _Tile2DHeader as Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers/typed';
|
|
3
3
|
export default class SpatialIndexTileLayer<ExtraProps = {}> extends TileLayer<any, ExtraProps> {
|
|
4
4
|
static layerName: string;
|
|
5
|
+
getTileData(tile: TileLoadProps): any;
|
|
5
6
|
protected _updateAutoHighlight(info: PickingInfo): void;
|
|
6
7
|
getSubLayerPropsByTile(tile: Tile2DHeader): {
|
|
7
8
|
highlightedObjectIndex: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spatial-index-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/spatial-index-tile-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"spatial-index-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/spatial-index-tile-layer.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EACL,SAAS,EAET,aAAa,IAAI,YAAY,EAC7B,cAAc,IAAI,aAAa,EAChC,MAAM,qBAAqB,CAAC;AAO7B,MAAM,CAAC,OAAO,OAAO,qBAAqB,CAAC,UAAU,GAAG,EAAE,CAAE,SAAQ,SAAS,CAAC,GAAG,EAAE,UAAU,CAAC;IAC5F,MAAM,CAAC,SAAS,SAA2B;IAE3C,WAAW,CAAC,IAAI,EAAE,aAAa;IA8B/B,SAAS,CAAC,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAsBvD,sBAAsB,CAAC,IAAI,EAAE,YAAY;;;;IAOzC,yBAAyB,CAAC,IAAI,EAAE,YAAY;CAW7C"}
|
package/typed/api/index.js
DELETED