@deck.gl/carto 8.8.19 → 8.8.20
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 +42413 -42270
- package/dist/es5/api/carto-api-error.js +87 -0
- package/dist/es5/api/carto-api-error.js.map +1 -0
- package/dist/es5/api/index.js +8 -0
- package/dist/es5/api/index.js.map +1 -1
- package/dist/es5/api/maps-api-common.js +9 -1
- package/dist/es5/api/maps-api-common.js.map +1 -1
- package/dist/es5/api/maps-v3-client.js +135 -109
- package/dist/es5/api/maps-v3-client.js.map +1 -1
- package/dist/es5/index.js +6 -0
- package/dist/es5/index.js.map +1 -1
- package/dist/es5/layers/carto-layer.js.map +1 -1
- package/dist/es5/layers/quadbin-tile-layer.js +8 -2
- package/dist/es5/layers/quadbin-tile-layer.js.map +1 -1
- package/dist/esm/api/carto-api-error.js +51 -0
- package/dist/esm/api/carto-api-error.js.map +1 -0
- package/dist/esm/api/index.js +1 -0
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/maps-api-common.js +6 -0
- package/dist/esm/api/maps-api-common.js.map +1 -1
- package/dist/esm/api/maps-v3-client.js +59 -35
- package/dist/esm/api/maps-v3-client.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/layers/carto-layer.js.map +1 -1
- package/dist/esm/layers/quadbin-tile-layer.js +4 -4
- package/dist/esm/layers/quadbin-tile-layer.js.map +1 -1
- package/dist.min.js +4 -4
- package/package.json +2 -2
- package/src/api/carto-api-error.ts +67 -0
- package/src/api/index.ts +2 -0
- package/src/api/maps-api-common.ts +8 -0
- package/src/api/maps-v3-client.ts +37 -29
- package/src/index.ts +2 -1
- package/src/layers/carto-layer.ts +4 -3
- package/src/layers/quadbin-tile-layer.ts +4 -2
- package/typed/api/index.d.ts +2 -0
- package/typed/api/index.d.ts.map +1 -1
- package/typed/api/maps-api-common.d.ts +7 -0
- package/typed/api/maps-api-common.d.ts.map +1 -1
- package/typed/api/maps-v3-client.d.ts.map +1 -1
- package/typed/index.d.ts +2 -2
- package/typed/index.d.ts.map +1 -1
- package/typed/layers/carto-layer.d.ts +3 -2
- package/typed/layers/carto-layer.d.ts.map +1 -1
- package/typed/layers/quadbin-tile-layer.d.ts +4 -1
- package/typed/layers/quadbin-tile-layer.d.ts.map +1 -1
- package/typed/layers/schema/carto-spa-tile.d.ts +57 -0
- package/typed/layers/schema/carto-spa-tile.d.ts.map +1 -0
- 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.js +0 -42
- 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
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": "8.8.
|
|
5
|
+
"version": "8.8.20",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"@deck.gl/layers": "^8.0.0",
|
|
63
63
|
"@loaders.gl/core": "^3.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "a0aa5a5d82d7b7c79dd0e45bd0e8daf6842ac19a"
|
|
66
66
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {MapType, RequestType} from './maps-api-common';
|
|
2
|
+
|
|
3
|
+
export type APIErrorContext = {
|
|
4
|
+
requestType: RequestType;
|
|
5
|
+
mapId?: string;
|
|
6
|
+
connection?: string;
|
|
7
|
+
source?: string;
|
|
8
|
+
type?: MapType;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* Custom error for reported errors in CARTO Maps API.
|
|
14
|
+
* Provides useful debugging information in console and context for applications.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export class CartoAPIError extends Error {
|
|
18
|
+
/** Source error from server */
|
|
19
|
+
error: Error;
|
|
20
|
+
|
|
21
|
+
/** Context (API call & parameters) in which error occured */
|
|
22
|
+
errorContext: APIErrorContext;
|
|
23
|
+
|
|
24
|
+
/** Response from server */
|
|
25
|
+
response?: Response;
|
|
26
|
+
|
|
27
|
+
constructor(error: Error, errorContext: APIErrorContext, response?: Response) {
|
|
28
|
+
let responseString = 'Failed to connect';
|
|
29
|
+
if (response) {
|
|
30
|
+
responseString = 'Server returned: ';
|
|
31
|
+
if (response.status === 400) {
|
|
32
|
+
responseString += 'Bad request';
|
|
33
|
+
} else if (response.status === 401 || response.status === 403) {
|
|
34
|
+
responseString += 'Unauthorized access';
|
|
35
|
+
} else if (response.status === 404) {
|
|
36
|
+
responseString += 'Not found';
|
|
37
|
+
} else {
|
|
38
|
+
responseString += 'Error';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
responseString += ` (${response.status}):`;
|
|
42
|
+
}
|
|
43
|
+
responseString += ` ${error.message || error}`;
|
|
44
|
+
|
|
45
|
+
let message = `${errorContext.requestType} API request failed`;
|
|
46
|
+
message += `\n${responseString}`;
|
|
47
|
+
for (const key of Object.keys(errorContext)) {
|
|
48
|
+
if (key === 'requestType') continue; // eslint-disable-line no-continue
|
|
49
|
+
message += `\n${formatErrorKey(key)}: ${errorContext[key]}`;
|
|
50
|
+
}
|
|
51
|
+
message += '\n';
|
|
52
|
+
|
|
53
|
+
super(message);
|
|
54
|
+
|
|
55
|
+
this.name = 'CartoAPIError';
|
|
56
|
+
this.response = response;
|
|
57
|
+
this.error = error;
|
|
58
|
+
this.errorContext = errorContext;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Converts camelCase to Camel Case
|
|
64
|
+
*/
|
|
65
|
+
function formatErrorKey(key) {
|
|
66
|
+
return key.replace(/([A-Z])/g, ' $1').replace(/^./, s => s.toUpperCase());
|
|
67
|
+
}
|
package/src/api/index.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export {CartoAPIError} from './carto-api-error';
|
|
2
|
+
export type {APIErrorContext} from './carto-api-error';
|
|
1
3
|
export {FORMATS, TILE_FORMATS, MAP_TYPES, API_VERSIONS} from './maps-api-common';
|
|
2
4
|
export type {QueryParameters} from './maps-api-common';
|
|
3
5
|
export {getDataV2, CONNECTIONS} from './maps-client';
|
|
@@ -71,6 +71,14 @@ type MapInstantiationFormats = Record<
|
|
|
71
71
|
}
|
|
72
72
|
>;
|
|
73
73
|
|
|
74
|
+
export const REQUEST_TYPES = {
|
|
75
|
+
DATA: 'Map data',
|
|
76
|
+
INSTANTIATION: 'Map instantiation',
|
|
77
|
+
PUBLIC_MAP: 'Public map',
|
|
78
|
+
TILE_STATS: 'Tile stats'
|
|
79
|
+
} as const;
|
|
80
|
+
export type RequestType = ValuesOf<typeof REQUEST_TYPES>;
|
|
81
|
+
|
|
74
82
|
/**
|
|
75
83
|
* Simple encode parameter
|
|
76
84
|
*/
|
|
@@ -18,10 +18,14 @@ import {
|
|
|
18
18
|
MapType,
|
|
19
19
|
MAP_TYPES,
|
|
20
20
|
QueryParameters,
|
|
21
|
+
REQUEST_TYPES,
|
|
21
22
|
SchemaField,
|
|
22
23
|
TileFormat,
|
|
23
24
|
TILE_FORMATS
|
|
24
25
|
} from './maps-api-common';
|
|
26
|
+
|
|
27
|
+
import {APIErrorContext, CartoAPIError} from './carto-api-error';
|
|
28
|
+
|
|
25
29
|
import {parseMap} from './parseMap';
|
|
26
30
|
import {log} from '@deck.gl/core';
|
|
27
31
|
import {assert} from '../utils';
|
|
@@ -37,6 +41,7 @@ interface RequestParams {
|
|
|
37
41
|
headers?: Headers;
|
|
38
42
|
accessToken?: string;
|
|
39
43
|
body?: any;
|
|
44
|
+
errorContext: APIErrorContext;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
/**
|
|
@@ -47,7 +52,8 @@ async function request({
|
|
|
47
52
|
url,
|
|
48
53
|
headers: customHeaders,
|
|
49
54
|
accessToken,
|
|
50
|
-
body
|
|
55
|
+
body,
|
|
56
|
+
errorContext
|
|
51
57
|
}: RequestParams): Promise<Response> {
|
|
52
58
|
const headers: Headers = {
|
|
53
59
|
...customHeaders,
|
|
@@ -70,7 +76,7 @@ async function request({
|
|
|
70
76
|
body
|
|
71
77
|
});
|
|
72
78
|
} catch (error) {
|
|
73
|
-
throw new
|
|
79
|
+
throw new CartoAPIError(error as Error, errorContext);
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
82
|
|
|
@@ -79,13 +85,14 @@ async function requestJson<T = unknown>({
|
|
|
79
85
|
url,
|
|
80
86
|
headers,
|
|
81
87
|
accessToken,
|
|
82
|
-
body
|
|
88
|
+
body,
|
|
89
|
+
errorContext
|
|
83
90
|
}: RequestParams): Promise<T> {
|
|
84
|
-
const response = await request({method, url, headers, accessToken, body});
|
|
91
|
+
const response = await request({method, url, headers, accessToken, body, errorContext});
|
|
85
92
|
const json = await response.json();
|
|
86
93
|
|
|
87
94
|
if (!response.ok) {
|
|
88
|
-
|
|
95
|
+
throw new CartoAPIError(json.error, errorContext, response);
|
|
89
96
|
}
|
|
90
97
|
return json as T;
|
|
91
98
|
}
|
|
@@ -95,33 +102,19 @@ async function requestData({
|
|
|
95
102
|
url,
|
|
96
103
|
accessToken,
|
|
97
104
|
format,
|
|
98
|
-
body
|
|
105
|
+
body,
|
|
106
|
+
errorContext
|
|
99
107
|
}: RequestParams & {
|
|
100
108
|
format: Format;
|
|
101
109
|
}): Promise<Response | unknown> {
|
|
102
110
|
if (format === FORMATS.NDJSON) {
|
|
103
|
-
return request({method, url, accessToken, body});
|
|
111
|
+
return request({method, url, accessToken, body, errorContext});
|
|
104
112
|
}
|
|
105
113
|
|
|
106
|
-
const data = await requestJson<any>({method, url, accessToken, body});
|
|
114
|
+
const data = await requestJson<any>({method, url, accessToken, body, errorContext});
|
|
107
115
|
return data.rows ? data.rows : data;
|
|
108
116
|
}
|
|
109
117
|
|
|
110
|
-
/**
|
|
111
|
-
* Display proper message from Maps API error
|
|
112
|
-
*/
|
|
113
|
-
function dealWithError({response, error}: {response: Response; error?: string}): never {
|
|
114
|
-
switch (response.status) {
|
|
115
|
-
case 400:
|
|
116
|
-
throw new Error(`Bad request. ${error}`);
|
|
117
|
-
case 401:
|
|
118
|
-
case 403:
|
|
119
|
-
throw new Error(`Unauthorized access. ${error}`);
|
|
120
|
-
default:
|
|
121
|
-
throw new Error(error);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
118
|
type FetchLayerDataParams = {
|
|
126
119
|
type: MapType;
|
|
127
120
|
source: string;
|
|
@@ -211,17 +204,28 @@ export async function mapInstantiation({
|
|
|
211
204
|
})}`;
|
|
212
205
|
const {accessToken} = credentials;
|
|
213
206
|
|
|
207
|
+
const errorContext = {requestType: REQUEST_TYPES.INSTANTIATION, connection, type, source};
|
|
214
208
|
if (url.length > MAX_GET_LENGTH && type === MAP_TYPES.QUERY) {
|
|
215
209
|
// need to be a POST request
|
|
216
210
|
const body = JSON.stringify({
|
|
217
211
|
q: source,
|
|
218
212
|
client: clientId || DEFAULT_CLIENT,
|
|
213
|
+
aggregationResLevel,
|
|
214
|
+
aggregationExp,
|
|
215
|
+
geoColumn,
|
|
219
216
|
queryParameters
|
|
220
217
|
});
|
|
221
|
-
return await requestJson({
|
|
218
|
+
return await requestJson({
|
|
219
|
+
method: 'POST',
|
|
220
|
+
url: baseUrl,
|
|
221
|
+
headers,
|
|
222
|
+
accessToken,
|
|
223
|
+
body,
|
|
224
|
+
errorContext
|
|
225
|
+
});
|
|
222
226
|
}
|
|
223
227
|
|
|
224
|
-
return await requestJson({url, headers, accessToken});
|
|
228
|
+
return await requestJson({url, headers, accessToken, errorContext});
|
|
225
229
|
}
|
|
226
230
|
|
|
227
231
|
function getUrlFromMetadata(metadata: MapInstantiation, format: Format): string | null {
|
|
@@ -307,7 +311,8 @@ export async function fetchLayerData({
|
|
|
307
311
|
queryParameters
|
|
308
312
|
});
|
|
309
313
|
|
|
310
|
-
const
|
|
314
|
+
const errorContext = {requestType: REQUEST_TYPES.DATA, connection, type, source};
|
|
315
|
+
const data = await requestData({url, format: mapFormat, accessToken, errorContext});
|
|
311
316
|
const result: FetchLayerDataResult = {data, format: mapFormat, schema: metadata.schema};
|
|
312
317
|
return result;
|
|
313
318
|
}
|
|
@@ -437,7 +442,8 @@ async function _fetchMapDataset(
|
|
|
437
442
|
dataset.cache = cache;
|
|
438
443
|
|
|
439
444
|
// Only fetch if the data has changed
|
|
440
|
-
|
|
445
|
+
const errorContext = {requestType: REQUEST_TYPES.DATA, connection, type, source};
|
|
446
|
+
dataset.data = await requestData({url, format: mapFormat, accessToken, errorContext});
|
|
441
447
|
|
|
442
448
|
return true;
|
|
443
449
|
}
|
|
@@ -458,7 +464,8 @@ async function _fetchTilestats(
|
|
|
458
464
|
// MAP_TYPE.TABLE
|
|
459
465
|
url += `${source}/${attribute}`;
|
|
460
466
|
}
|
|
461
|
-
const
|
|
467
|
+
const errorContext = {requestType: REQUEST_TYPES.TILE_STATS, connection, type, source};
|
|
468
|
+
const stats = await requestData({url, format: FORMATS.JSON, accessToken, errorContext});
|
|
462
469
|
|
|
463
470
|
// Replace tilestats for attribute with value from API
|
|
464
471
|
const {attributes} = dataset.data.tilestats.layers[0];
|
|
@@ -555,7 +562,8 @@ export async function fetchMap({
|
|
|
555
562
|
}
|
|
556
563
|
|
|
557
564
|
const url = `${localCreds.mapsUrl}/public/${cartoMapId}`;
|
|
558
|
-
const
|
|
565
|
+
const errorContext = {requestType: REQUEST_TYPES.PUBLIC_MAP, mapId: cartoMapId};
|
|
566
|
+
const map = await requestJson<any>({url, headers, accessToken, errorContext});
|
|
559
567
|
|
|
560
568
|
// Periodically check if the data has changed. Note that this
|
|
561
569
|
// will not update when a map is published.
|
package/src/index.ts
CHANGED
|
@@ -12,10 +12,11 @@ export {
|
|
|
12
12
|
TILE_FORMATS,
|
|
13
13
|
MAP_TYPES,
|
|
14
14
|
API_VERSIONS,
|
|
15
|
+
CartoAPIError,
|
|
15
16
|
fetchLayerData,
|
|
16
17
|
fetchMap,
|
|
17
18
|
getDataV2 as _getDataV2,
|
|
18
19
|
mapInstantiation as _mapInstantiation
|
|
19
20
|
} from './api';
|
|
20
|
-
export type {QueryParameters} from './api';
|
|
21
|
+
export type {APIErrorContext, QueryParameters} from './api';
|
|
21
22
|
export type {CartoLayerProps} from './layers/carto-layer';
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import {MVTLayer} from '@deck.gl/geo-layers';
|
|
11
11
|
import {fetchLayerData, getDataV2, API_VERSIONS} from '../api';
|
|
12
|
+
import {CartoAPIError} from '../api/carto-api-error';
|
|
12
13
|
import {layerFromTileDataset} from '../api/layer-map';
|
|
13
14
|
import {
|
|
14
15
|
COLUMNS_SUPPORT,
|
|
@@ -145,9 +146,9 @@ type _CartoLayerProps = {
|
|
|
145
146
|
/**
|
|
146
147
|
* Called when the request to the CARTO Maps API failed.
|
|
147
148
|
*
|
|
148
|
-
* By default the
|
|
149
|
+
* By default the CartoAPIError is thrown.
|
|
149
150
|
*/
|
|
150
|
-
onDataError?: (err:
|
|
151
|
+
onDataError?: (err: CartoAPIError) => void;
|
|
151
152
|
|
|
152
153
|
clientId?: string;
|
|
153
154
|
|
|
@@ -272,7 +273,7 @@ export default class CartoLayer<ExtraProps = {}> extends CompositeLayer<
|
|
|
272
273
|
});
|
|
273
274
|
} catch (err) {
|
|
274
275
|
if (this.props.onDataError) {
|
|
275
|
-
this.props.onDataError(err as
|
|
276
|
+
this.props.onDataError(err as CartoAPIError);
|
|
276
277
|
} else {
|
|
277
278
|
throw err;
|
|
278
279
|
}
|
|
@@ -9,12 +9,14 @@ import {
|
|
|
9
9
|
import QuadbinLayer, {QuadbinLayerProps} from './quadbin-layer';
|
|
10
10
|
import QuadbinTileset2D from './quadbin-tileset-2d';
|
|
11
11
|
import SpatialIndexTileLayer from './spatial-index-tile-layer';
|
|
12
|
+
import {hexToBigInt} from 'quadbin';
|
|
12
13
|
|
|
13
|
-
const renderSubLayers = props => {
|
|
14
|
+
export const renderSubLayers = props => {
|
|
14
15
|
const {data} = props;
|
|
15
16
|
if (!data || !data.length) return null;
|
|
17
|
+
const isBigInt = typeof data[0].id === 'bigint';
|
|
16
18
|
return new QuadbinLayer(props, {
|
|
17
|
-
getQuadbin: d => d.id
|
|
19
|
+
getQuadbin: isBigInt ? d => d.id : d => hexToBigInt(d.id)
|
|
18
20
|
});
|
|
19
21
|
};
|
|
20
22
|
|
package/typed/api/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { CartoAPIError } from './carto-api-error';
|
|
2
|
+
export type { APIErrorContext } from './carto-api-error';
|
|
1
3
|
export { FORMATS, TILE_FORMATS, MAP_TYPES, API_VERSIONS } from './maps-api-common';
|
|
2
4
|
export type { QueryParameters } from './maps-api-common';
|
|
3
5
|
export { getDataV2, CONNECTIONS } from './maps-client';
|
package/typed/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACjF,YAAY,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,YAAY,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACjF,YAAY,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,cAAc,EAAE,QAAQ,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC"}
|
|
@@ -57,6 +57,13 @@ declare type MapInstantiationFormats = Record<Format, {
|
|
|
57
57
|
url: string[];
|
|
58
58
|
error?: any;
|
|
59
59
|
}>;
|
|
60
|
+
export declare const REQUEST_TYPES: {
|
|
61
|
+
readonly DATA: "Map data";
|
|
62
|
+
readonly INSTANTIATION: "Map instantiation";
|
|
63
|
+
readonly PUBLIC_MAP: "Public map";
|
|
64
|
+
readonly TILE_STATS: "Tile stats";
|
|
65
|
+
};
|
|
66
|
+
export declare type RequestType = ValuesOf<typeof REQUEST_TYPES>;
|
|
60
67
|
/**
|
|
61
68
|
* Simple encode parameter
|
|
62
69
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maps-api-common.d.ts","sourceR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["../../src/api/maps-v3-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAIL,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAIL,MAAM,EAGN,gBAAgB,EAChB,OAAO,EAEP,eAAe,
|
|
1
|
+
{"version":3,"file":"maps-v3-client.d.ts","sourceRoot":"","sources":["../../src/api/maps-v3-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAIL,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EAIL,MAAM,EAGN,gBAAgB,EAChB,OAAO,EAEP,eAAe,EAEf,WAAW,EACX,UAAU,EAEX,MAAM,mBAAmB,CAAC;AAY3B,oBAAY,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAiF7C,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,sBAAsB,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAiDF,wBAAsB,gBAAgB,CAAC,EACrC,IAAI,EACJ,MAAM,EACN,UAAU,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,EACR,OAAO,EACP,cAAc,EACd,mBAAmB,EACnB,eAAe,EAChB,EAAE,oBAAoB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoClD;AA+CD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,EAAE,CAAC;CACvB;AACD,wBAAsB,cAAc,CAAC,EACnC,IAAI,EACJ,MAAM,EACN,UAAU,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,OAAO,EACP,cAAc,EACd,mBAAmB,EACnB,eAAe,EAChB,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAuBtD;AA+MD,wBAAsB,QAAQ,CAAC,EAC7B,UAAU,EACV,QAAQ,EACR,WAAW,EACX,OAAO,EACP,WAAW,EACX,SAAS,EACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;4BA+B6B,IAAI;;;;;;;;;;GAmCjC"}
|
package/typed/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { default as BASEMAP } from './basemap';
|
|
|
7
7
|
export { default as colorBins } from './style/color-bins-style';
|
|
8
8
|
export { default as colorCategories } from './style/color-categories-style';
|
|
9
9
|
export { default as colorContinuous } from './style/color-continuous-style';
|
|
10
|
-
export { FORMATS, TILE_FORMATS, MAP_TYPES, API_VERSIONS, fetchLayerData, fetchMap, getDataV2 as _getDataV2, mapInstantiation as _mapInstantiation } from './api';
|
|
11
|
-
export type { QueryParameters } from './api';
|
|
10
|
+
export { FORMATS, TILE_FORMATS, MAP_TYPES, API_VERSIONS, CartoAPIError, fetchLayerData, fetchMap, getDataV2 as _getDataV2, mapInstantiation as _mapInstantiation } from './api';
|
|
11
|
+
export type { APIErrorContext, QueryParameters } from './api';
|
|
12
12
|
export type { CartoLayerProps } from './layers/carto-layer';
|
|
13
13
|
//# 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,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,OAAO,EACP,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,SAAS,IAAI,UAAU,EACvB,gBAAgB,IAAI,iBAAiB,EACtC,MAAM,OAAO,CAAC;AACf,YAAY,EAAC,eAAe,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AACtE,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,OAAO,EACP,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,EACR,SAAS,IAAI,UAAU,EACvB,gBAAgB,IAAI,iBAAiB,EACtC,MAAM,OAAO,CAAC;AACf,YAAY,EAAC,eAAe,EAAE,eAAe,EAAC,MAAM,OAAO,CAAC;AAC5D,YAAY,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayerProps, UpdateParameters } from '@deck.gl/core/typed';
|
|
2
|
+
import { CartoAPIError } from '../api/carto-api-error';
|
|
2
3
|
import { MapType, TileFormat, QueryParameters } from '../api/maps-api-common';
|
|
3
4
|
import { Credentials } from '../config';
|
|
4
5
|
import { Headers } from '../api/maps-v3-client';
|
|
@@ -64,9 +65,9 @@ declare type _CartoLayerProps = {
|
|
|
64
65
|
/**
|
|
65
66
|
* Called when the request to the CARTO Maps API failed.
|
|
66
67
|
*
|
|
67
|
-
* By default the
|
|
68
|
+
* By default the CartoAPIError is thrown.
|
|
68
69
|
*/
|
|
69
|
-
onDataError?: (err:
|
|
70
|
+
onDataError?: (err: CartoAPIError) => void;
|
|
70
71
|
clientId?: string;
|
|
71
72
|
/** Custom headers to include in the map instantiation request **/
|
|
72
73
|
headers?: Headers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carto-layer.d.ts","sourceRoot":"","sources":["../../src/layers/carto-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EAEV,gBAAgB,EACjB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"carto-layer.d.ts","sourceRoot":"","sources":["../../src/layers/carto-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EAEV,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAIL,OAAO,EAEP,UAAU,EACV,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,WAAW,EAEZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAuB,OAAO,EAAC,MAAM,uBAAuB,CAAC;AAiDpE,8CAA8C;AAC9C,oBAAY,eAAe,CAAC,KAAK,GAAG,GAAG,IAAI,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAEzF,sCAAsC;AACtC,aAAK,gBAAgB,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;IAEzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAE3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,iHAAiH;IACjH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,kDAAkD;IAClD,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,UAAU,CAAC,UAAU,GAAG,EAAE,CAAE,SAAQ,cAAc,CACrE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,UAAU,CACxC;IACC,MAAM,CAAC,SAAS,SAAgB;IAChC,MAAM,CAAC,YAAY,MAAuB;IAE1C,eAAe,IAAI,IAAI;IAOvB,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAuCzC,WAAW,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;IAqB5D,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAsClC,oBAAoB,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC;IAuBzC,YAAY,IAAI,KAAK,GAAG,IAAI;CA4B7B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
2
|
-
import { QuadbinLayerProps } from './quadbin-layer';
|
|
2
|
+
import QuadbinLayer, { QuadbinLayerProps } from './quadbin-layer';
|
|
3
|
+
export declare const renderSubLayers: (props: any) => QuadbinLayer<any, {
|
|
4
|
+
getQuadbin: (d: any) => any;
|
|
5
|
+
}> | null;
|
|
3
6
|
/** All properties supported by QuadbinTileLayer. */
|
|
4
7
|
export declare type QuadbinTileLayerProps<DataT = any> = _QuadbinTileLayerProps<DataT> & CompositeLayerProps<DataT>;
|
|
5
8
|
/** Properties added by QuadbinTileLayer. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadbin-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,
|
|
1
|
+
{"version":3,"file":"quadbin-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/quadbin-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,YAAY,EAAE,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAKhE,eAAO,MAAM,eAAe;;SAO3B,CAAC;AAMF,oDAAoD;AACpD,oBAAY,qBAAqB,CAAC,KAAK,GAAG,GAAG,IAAI,sBAAsB,CAAC,KAAK,CAAC,GAC5E,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAE7B,4CAA4C;AAC5C,aAAK,sBAAsB,CAAC,KAAK,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG;IAC9D,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,gBAAgB,CAAC,KAAK,GAAG,GAAG,EAAE,UAAU,GAAG,EAAE,CAAE,SAAQ,cAAc,CACxF,UAAU,GAAG,QAAQ,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC,CACrD;IACC,MAAM,CAAC,SAAS,SAAsB;IACtC,MAAM,CAAC,YAAY,2CAAgB;IAEnC,KAAK,EAAG;QACN,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;KACX,CAAC;IACF,eAAe,IAAI,IAAI;IAIvB,WAAW,CAAC,EAAC,WAAW,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IASxD,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAoB1C"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export namespace Doubles {
|
|
2
|
+
function read(pbf: any, end: any): any;
|
|
3
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
4
|
+
}
|
|
5
|
+
export namespace Ints {
|
|
6
|
+
function read(pbf: any, end: any): any;
|
|
7
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
8
|
+
}
|
|
9
|
+
export namespace Id {
|
|
10
|
+
function read(pbf: any, end: any): any;
|
|
11
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
12
|
+
}
|
|
13
|
+
export namespace NumericProp {
|
|
14
|
+
function read(pbf: any, end: any): any;
|
|
15
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
16
|
+
}
|
|
17
|
+
export namespace StringProp {
|
|
18
|
+
function read(pbf: any, end: any): any;
|
|
19
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
20
|
+
}
|
|
21
|
+
export namespace Points {
|
|
22
|
+
function read(pbf: any, end: any): any;
|
|
23
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
24
|
+
namespace _FieldEntry5 {
|
|
25
|
+
function read(pbf: any, end: any): any;
|
|
26
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export namespace Lines {
|
|
30
|
+
function read(pbf: any, end: any): any;
|
|
31
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
32
|
+
namespace _FieldEntry6 {
|
|
33
|
+
function read(pbf: any, end: any): any;
|
|
34
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export namespace Polygons {
|
|
38
|
+
function read(pbf: any, end: any): any;
|
|
39
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
40
|
+
namespace _FieldEntry8 {
|
|
41
|
+
function read(pbf: any, end: any): any;
|
|
42
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export namespace Tile {
|
|
46
|
+
function read(pbf: any, end: any): any;
|
|
47
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
48
|
+
}
|
|
49
|
+
export namespace Properties {
|
|
50
|
+
function read(pbf: any, end: any): any;
|
|
51
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
52
|
+
}
|
|
53
|
+
export namespace KeyValueObject {
|
|
54
|
+
function read(pbf: any, end: any): any;
|
|
55
|
+
function _readField(tag: any, obj: any, pbf: any): void;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=carto-spa-tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carto-spa-tile.d.ts","sourceRoot":"","sources":["../../../src/layers/schema/carto-spa-tile.js"],"names":[],"mappings":";IAMA,uCAEC;IACD,wDAGC;;;IAMD,uCAEC;IACD,wDAGC;;;IAMD,uCAEC;IACD,wDAEC;;;IAMD,uCAEC;IACD,wDAEC;;;IAMD,uCAEC;IACD,wDAEC;;;IAMD,uCAaC;IACD,wDASC;;QAMD,uCAEC;QACD,wDAGC;;;;IAMD,uCAcC;IACD,wDAUC;;QAMD,uCAEC;QACD,wDAGC;;;;IAMD,uCAgBC;IACD,wDAYC;;QAMD,uCAEC;QACD,wDAGC;;;;IAMD,uCAEC;IACD,wDAIC;;;IAMD,uCAEC;IACD,wDAEC;;;IAMD,uCAEC;IACD,wDAGC"}
|
package/typed/api/index.js
DELETED