@deck.gl/carto 8.9.0-beta.2 → 8.9.0-beta.4
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 +23 -24
- package/dist/es5/api/maps-v3-client.js +49 -41
- package/dist/es5/api/maps-v3-client.js.map +1 -1
- package/dist/es5/layers/carto-layer.js +1 -3
- package/dist/es5/layers/carto-layer.js.map +1 -1
- package/dist/es5/layers/carto-tile-layer.js.map +1 -1
- package/dist/es5/layers/h3-tile-layer.js.map +1 -1
- package/dist/es5/layers/quadbin-tile-layer.js.map +1 -1
- package/dist/esm/api/maps-v3-client.js +23 -21
- package/dist/esm/api/maps-v3-client.js.map +1 -1
- package/dist/esm/layers/carto-layer.js +1 -3
- package/dist/esm/layers/carto-layer.js.map +1 -1
- package/dist/esm/layers/carto-tile-layer.js.map +1 -1
- package/dist/esm/layers/h3-tile-layer.js.map +1 -1
- package/dist/esm/layers/quadbin-tile-layer.js.map +1 -1
- package/dist.min.js +21 -21
- package/package.json +2 -2
- package/src/api/maps-v3-client.ts +35 -23
- package/src/layers/carto-layer.ts +3 -3
- package/src/layers/carto-tile-layer.ts +7 -7
- package/src/layers/h3-tile-layer.ts +2 -1
- package/src/layers/quadbin-tile-layer.ts +2 -1
- package/typed/api/maps-v3-client.d.ts.map +1 -1
- package/typed/layers/carto-layer.d.ts +1 -3
- package/typed/layers/carto-layer.d.ts.map +1 -1
- package/typed/layers/carto-tile-layer.d.ts +3 -4
- package/typed/layers/carto-tile-layer.d.ts.map +1 -1
- package/typed/layers/h3-tile-layer.d.ts +2 -1
- package/typed/layers/h3-tile-layer.d.ts.map +1 -1
- package/typed/layers/quadbin-tile-layer.d.ts +2 -1
- package/typed/layers/quadbin-tile-layer.d.ts.map +1 -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": "8.9.0-beta.
|
|
5
|
+
"version": "8.9.0-beta.4",
|
|
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": "f7c0eeaed1e62b0ae44ee45136b444f647e6cbd9"
|
|
66
66
|
}
|
|
@@ -131,6 +131,18 @@ type FetchLayerDataParams = {
|
|
|
131
131
|
queryParameters?: QueryParameters;
|
|
132
132
|
};
|
|
133
133
|
|
|
134
|
+
type MapsAPIParameters = {
|
|
135
|
+
client: string;
|
|
136
|
+
v: string;
|
|
137
|
+
q?: string;
|
|
138
|
+
name?: string;
|
|
139
|
+
queryParameters?: QueryParameters;
|
|
140
|
+
geo_column?: string;
|
|
141
|
+
columns?: string;
|
|
142
|
+
aggregationExp?: string;
|
|
143
|
+
aggregationResLevel?: number;
|
|
144
|
+
};
|
|
145
|
+
|
|
134
146
|
/**
|
|
135
147
|
* Build a URL with all required parameters
|
|
136
148
|
*/
|
|
@@ -143,34 +155,36 @@ function getParameters({
|
|
|
143
155
|
aggregationExp,
|
|
144
156
|
aggregationResLevel,
|
|
145
157
|
queryParameters
|
|
146
|
-
}: Omit<FetchLayerDataParams, 'connection' | 'credentials'>) {
|
|
147
|
-
const parameters =
|
|
148
|
-
|
|
158
|
+
}: Omit<FetchLayerDataParams, 'connection' | 'credentials'>): MapsAPIParameters {
|
|
159
|
+
const parameters: MapsAPIParameters = {
|
|
160
|
+
client: clientId || DEFAULT_CLIENT,
|
|
161
|
+
v: V3_MINOR_VERSION
|
|
162
|
+
};
|
|
149
163
|
|
|
150
164
|
const sourceName = type === MAP_TYPES.QUERY ? 'q' : 'name';
|
|
151
|
-
parameters
|
|
165
|
+
parameters[sourceName] = source;
|
|
152
166
|
|
|
153
167
|
if (queryParameters) {
|
|
154
|
-
parameters.
|
|
168
|
+
parameters.queryParameters = queryParameters;
|
|
155
169
|
}
|
|
156
170
|
|
|
157
171
|
if (geoColumn) {
|
|
158
|
-
parameters.
|
|
172
|
+
parameters.geo_column = geoColumn;
|
|
159
173
|
}
|
|
160
174
|
if (columns) {
|
|
161
|
-
parameters.
|
|
175
|
+
parameters.columns = columns.join(',');
|
|
162
176
|
}
|
|
163
177
|
if (aggregationExp) {
|
|
164
|
-
parameters.
|
|
178
|
+
parameters.aggregationExp = aggregationExp;
|
|
165
179
|
} else if (isSpatialIndexGeoColumn(geoColumn)) {
|
|
166
180
|
// Default aggregationExp required for spatial index layers
|
|
167
|
-
parameters.
|
|
181
|
+
parameters.aggregationExp = '1 AS value';
|
|
168
182
|
}
|
|
169
183
|
if (aggregationResLevel) {
|
|
170
|
-
parameters.
|
|
184
|
+
parameters.aggregationResLevel = aggregationResLevel;
|
|
171
185
|
}
|
|
172
186
|
|
|
173
|
-
return parameters
|
|
187
|
+
return parameters;
|
|
174
188
|
}
|
|
175
189
|
|
|
176
190
|
function isSpatialIndexGeoColumn(geoColumn: string | undefined) {
|
|
@@ -192,7 +206,7 @@ export async function mapInstantiation({
|
|
|
192
206
|
queryParameters
|
|
193
207
|
}: FetchLayerDataParams): Promise<MapInstantiation> {
|
|
194
208
|
const baseUrl = `${credentials.mapsUrl}/${connection}/${type}`;
|
|
195
|
-
const
|
|
209
|
+
const parameters = getParameters({
|
|
196
210
|
type,
|
|
197
211
|
source,
|
|
198
212
|
geoColumn,
|
|
@@ -201,26 +215,24 @@ export async function mapInstantiation({
|
|
|
201
215
|
aggregationResLevel,
|
|
202
216
|
aggregationExp,
|
|
203
217
|
queryParameters
|
|
204
|
-
})
|
|
218
|
+
});
|
|
219
|
+
const encodedParameters = Object.entries(parameters).map(([key, value]) => {
|
|
220
|
+
if (typeof value !== 'string') {
|
|
221
|
+
value = JSON.stringify(value);
|
|
222
|
+
}
|
|
223
|
+
return encodeParameter(key, value);
|
|
224
|
+
});
|
|
225
|
+
const url = `${baseUrl}?${encodedParameters.join('&')}`;
|
|
205
226
|
const {accessToken} = credentials;
|
|
206
227
|
|
|
207
228
|
const errorContext = {requestType: REQUEST_TYPES.INSTANTIATION, connection, type, source};
|
|
208
229
|
if (url.length > MAX_GET_LENGTH && type === MAP_TYPES.QUERY) {
|
|
209
|
-
// need to be a POST request
|
|
210
|
-
const body = JSON.stringify({
|
|
211
|
-
q: source,
|
|
212
|
-
client: clientId || DEFAULT_CLIENT,
|
|
213
|
-
aggregationResLevel,
|
|
214
|
-
aggregationExp,
|
|
215
|
-
geoColumn,
|
|
216
|
-
queryParameters
|
|
217
|
-
});
|
|
218
230
|
return await requestJson({
|
|
219
231
|
method: 'POST',
|
|
220
232
|
url: baseUrl,
|
|
221
233
|
headers,
|
|
222
234
|
accessToken,
|
|
223
|
-
body,
|
|
235
|
+
body: JSON.stringify(parameters),
|
|
224
236
|
errorContext
|
|
225
237
|
});
|
|
226
238
|
}
|
|
@@ -34,8 +34,8 @@ const defaultProps = {
|
|
|
34
34
|
data: null,
|
|
35
35
|
// (Enum (MAP_TYPES), required)
|
|
36
36
|
type: null,
|
|
37
|
-
onDataLoad: {type: 'function', value: data => {}
|
|
38
|
-
onDataError: {type: 'function', value: null,
|
|
37
|
+
onDataLoad: {type: 'function', value: data => {}},
|
|
38
|
+
onDataError: {type: 'function', value: null, optional: true},
|
|
39
39
|
uniqueIdProperty: 'cartodb_id',
|
|
40
40
|
|
|
41
41
|
// override carto credentials for the layer, set to null to read from default
|
|
@@ -76,7 +76,7 @@ const defaultProps = {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
/** All properties supported by CartoLayer. */
|
|
79
|
-
export type CartoLayerProps
|
|
79
|
+
export type CartoLayerProps = _CartoLayerProps & CompositeLayerProps;
|
|
80
80
|
|
|
81
81
|
/** Properties added by CartoLayer. */
|
|
82
82
|
type _CartoLayerProps = {
|
|
@@ -26,8 +26,7 @@ const defaultProps: DefaultProps<CartoTileLayerProps> = {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
/** All properties supported by CartoTileLayer. */
|
|
29
|
-
export type CartoTileLayerProps
|
|
30
|
-
MVTLayerProps<DataT>;
|
|
29
|
+
export type CartoTileLayerProps = _CartoTileLayerProps & MVTLayerProps;
|
|
31
30
|
|
|
32
31
|
/** Properties added by CartoTileLayer. */
|
|
33
32
|
type _CartoTileLayerProps = {
|
|
@@ -40,10 +39,9 @@ type _CartoTileLayerProps = {
|
|
|
40
39
|
formatTiles?: TileFormat;
|
|
41
40
|
};
|
|
42
41
|
|
|
43
|
-
export default class CartoTileLayer<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
> extends MVTLayer<DataT, Required<_CartoTileLayerProps> & ExtraProps> {
|
|
42
|
+
export default class CartoTileLayer<ExtraProps extends {} = {}> extends MVTLayer<
|
|
43
|
+
Required<_CartoTileLayerProps> & ExtraProps
|
|
44
|
+
> {
|
|
47
45
|
static layerName = 'CartoTileLayer';
|
|
48
46
|
static defaultProps = defaultProps;
|
|
49
47
|
|
|
@@ -106,7 +104,9 @@ export default class CartoTileLayer<
|
|
|
106
104
|
|
|
107
105
|
if (this.state.binary && info.index !== -1) {
|
|
108
106
|
const {data} = params.sourceLayer!.props;
|
|
109
|
-
info.object = binaryToGeojson(data as BinaryFeatures, {
|
|
107
|
+
info.object = binaryToGeojson(data as BinaryFeatures, {
|
|
108
|
+
globalFeatureId: info.index
|
|
109
|
+
}) as Feature;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
return info;
|
|
@@ -27,7 +27,7 @@ const defaultProps: DefaultProps<H3HexagonLayerProps> = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/** All properties supported by H3TileLayer. */
|
|
30
|
-
export type H3TileLayerProps<DataT = any> = _H3TileLayerProps<DataT> & CompositeLayerProps
|
|
30
|
+
export type H3TileLayerProps<DataT = any> = _H3TileLayerProps<DataT> & CompositeLayerProps;
|
|
31
31
|
|
|
32
32
|
// TODO: use type from h3-hexagon-layer when available
|
|
33
33
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -35,6 +35,7 @@ type H3HexagonLayerProps<DataT = any> = Record<string, any>;
|
|
|
35
35
|
|
|
36
36
|
/** Properties added by H3TileLayer. */
|
|
37
37
|
type _H3TileLayerProps<DataT> = H3HexagonLayerProps<DataT> & {
|
|
38
|
+
data: string;
|
|
38
39
|
aggregationResLevel?: number;
|
|
39
40
|
};
|
|
40
41
|
|
|
@@ -26,10 +26,11 @@ const defaultProps: DefaultProps<QuadbinTileLayerProps> = {
|
|
|
26
26
|
|
|
27
27
|
/** All properties supported by QuadbinTileLayer. */
|
|
28
28
|
export type QuadbinTileLayerProps<DataT = any> = _QuadbinTileLayerProps<DataT> &
|
|
29
|
-
CompositeLayerProps
|
|
29
|
+
CompositeLayerProps;
|
|
30
30
|
|
|
31
31
|
/** Properties added by QuadbinTileLayer. */
|
|
32
32
|
type _QuadbinTileLayerProps<DataT> = QuadbinLayerProps<DataT> & {
|
|
33
|
+
data: string;
|
|
33
34
|
aggregationResLevel?: number;
|
|
34
35
|
};
|
|
35
36
|
|
|
@@ -1 +1 @@
|
|
|
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;I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gB,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,CAkClD;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;;;;;;;;;;GAsCjC"}
|
|
@@ -4,7 +4,7 @@ import { MapType, TileFormat, QueryParameters } from '../api/maps-api-common';
|
|
|
4
4
|
import { Credentials } from '../config';
|
|
5
5
|
import { Headers } from '../api/maps-v3-client';
|
|
6
6
|
/** All properties supported by CartoLayer. */
|
|
7
|
-
export declare type CartoLayerProps
|
|
7
|
+
export declare type CartoLayerProps = _CartoLayerProps & CompositeLayerProps;
|
|
8
8
|
/** Properties added by CartoLayer. */
|
|
9
9
|
declare type _CartoLayerProps = {
|
|
10
10
|
/**
|
|
@@ -86,12 +86,10 @@ export default class CartoLayer<ExtraProps extends {} = {}> extends CompositeLay
|
|
|
86
86
|
onDataLoad: {
|
|
87
87
|
type: string;
|
|
88
88
|
value: (data: any) => void;
|
|
89
|
-
compare: boolean;
|
|
90
89
|
};
|
|
91
90
|
onDataError: {
|
|
92
91
|
type: string;
|
|
93
92
|
value: null;
|
|
94
|
-
compare: boolean;
|
|
95
93
|
optional: boolean;
|
|
96
94
|
};
|
|
97
95
|
uniqueIdProperty: string;
|
|
@@ -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;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,
|
|
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;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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"}
|
|
@@ -2,9 +2,8 @@ import { DefaultProps } from '@deck.gl/core/typed';
|
|
|
2
2
|
import { MVTLayer, MVTLayerProps, TileLayer, _Tile2DHeader, _TileLoadProps as TileLoadProps } from '@deck.gl/geo-layers/typed';
|
|
3
3
|
import { GeoJsonLayer } from '@deck.gl/layers/typed';
|
|
4
4
|
import { TileFormat } from '../api/maps-api-common';
|
|
5
|
-
import type { Feature } from 'geojson';
|
|
6
5
|
/** All properties supported by CartoTileLayer. */
|
|
7
|
-
export declare type CartoTileLayerProps
|
|
6
|
+
export declare type CartoTileLayerProps = _CartoTileLayerProps & MVTLayerProps;
|
|
8
7
|
/** Properties added by CartoTileLayer. */
|
|
9
8
|
declare type _CartoTileLayerProps = {
|
|
10
9
|
/** Use to override the default tile data format.
|
|
@@ -15,9 +14,9 @@ declare type _CartoTileLayerProps = {
|
|
|
15
14
|
*/
|
|
16
15
|
formatTiles?: TileFormat;
|
|
17
16
|
};
|
|
18
|
-
export default class CartoTileLayer<
|
|
17
|
+
export default class CartoTileLayer<ExtraProps extends {} = {}> extends MVTLayer<Required<_CartoTileLayerProps> & ExtraProps> {
|
|
19
18
|
static layerName: string;
|
|
20
|
-
static defaultProps: DefaultProps<CartoTileLayerProps
|
|
19
|
+
static defaultProps: DefaultProps<CartoTileLayerProps>;
|
|
21
20
|
initializeState(): void;
|
|
22
21
|
getTileData(tile: TileLoadProps): any;
|
|
23
22
|
renderSubLayers(props: TileLayer['props'] & {
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAUhE,kDAAkD;AAClD,oBAAY,mBAAmB,GAAG,oBAAoB,GAAG,aAAa,CAAC;AAEvE,0CAA0C;AAC1C,aAAK,oBAAoB,GAAG;IAC1B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,UAAU,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,QAAQ,CAC9E,QAAQ,CAAC,oBAAoB,CAAC,GAAG,UAAU,CAC5C;IACC,MAAM,CAAC,SAAS,SAAoB;IACpC,MAAM,CAAC,YAAY,oCAAgB;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;CAYtB"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CompositeLayer, CompositeLayerProps, Layer, LayersList, UpdateParameters, DefaultProps } from '@deck.gl/core/typed';
|
|
2
2
|
/** All properties supported by H3TileLayer. */
|
|
3
|
-
export declare type H3TileLayerProps<DataT = any> = _H3TileLayerProps<DataT> & CompositeLayerProps
|
|
3
|
+
export declare type H3TileLayerProps<DataT = any> = _H3TileLayerProps<DataT> & CompositeLayerProps;
|
|
4
4
|
declare type H3HexagonLayerProps<DataT = any> = Record<string, any>;
|
|
5
5
|
/** Properties added by H3TileLayer. */
|
|
6
6
|
declare type _H3TileLayerProps<DataT> = H3HexagonLayerProps<DataT> & {
|
|
7
|
+
data: string;
|
|
7
8
|
aggregationResLevel?: number;
|
|
8
9
|
};
|
|
9
10
|
export default class H3TileLayer<DataT = any, ExtraPropsT extends {} = {}> extends CompositeLayer<ExtraPropsT & Required<_H3TileLayerProps<DataT>>> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h3-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/h3-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAqBvB,+CAA+C;AAC/C,oBAAY,gBAAgB,CAAC,KAAK,GAAG,GAAG,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"h3-tile-layer.d.ts","sourceRoot":"","sources":["../../src/layers/h3-tile-layer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,YAAY,EACb,MAAM,eAAe,CAAC;AAqBvB,+CAA+C;AAC/C,oBAAY,gBAAgB,CAAC,KAAK,GAAG,GAAG,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG,mBAAmB,CAAC;AAI3F,aAAK,mBAAmB,CAAC,KAAK,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5D,uCAAuC;AACvC,aAAK,iBAAiB,CAAC,KAAK,IAAI,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,WAAW,CAAC,KAAK,GAAG,GAAG,EAAE,WAAW,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,cAAc,CAC/F,WAAW,GAAG,QAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CACjD;IACC,MAAM,CAAC,SAAS,SAAiB;IACjC,MAAM,CAAC,YAAY,yCAAgB;IAEnC,KAAK,EAAG;QACN,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;KACX,CAAC;IAEF,eAAe,IAAI,IAAI;IAKvB,WAAW,CAAC,EAAC,WAAW,EAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI;IASxD,YAAY,IAAI,KAAK,GAAG,IAAI,GAAG,UAAU;CAyC1C"}
|
|
@@ -4,9 +4,10 @@ export declare const renderSubLayers: (props: any) => QuadbinLayer<any, {
|
|
|
4
4
|
getQuadbin: (d: any) => any;
|
|
5
5
|
}> | null;
|
|
6
6
|
/** All properties supported by QuadbinTileLayer. */
|
|
7
|
-
export declare type QuadbinTileLayerProps<DataT = any> = _QuadbinTileLayerProps<DataT> & CompositeLayerProps
|
|
7
|
+
export declare type QuadbinTileLayerProps<DataT = any> = _QuadbinTileLayerProps<DataT> & CompositeLayerProps;
|
|
8
8
|
/** Properties added by QuadbinTileLayer. */
|
|
9
9
|
declare type _QuadbinTileLayerProps<DataT> = QuadbinLayerProps<DataT> & {
|
|
10
|
+
data: string;
|
|
10
11
|
aggregationResLevel?: number;
|
|
11
12
|
};
|
|
12
13
|
export default class QuadbinTileLayer<DataT = any, ExtraProps extends {} = {}> extends CompositeLayer<ExtraProps & Required<_QuadbinTileLayerProps<DataT>>> {
|
|
@@ -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,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
|
|
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;AAEtB,4CAA4C;AAC5C,aAAK,sBAAsB,CAAC,KAAK,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,mB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