@deck.gl/carto 9.0.5 → 9.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/common.d.ts +1 -0
- package/dist/api/common.d.ts.map +1 -1
- package/dist/api/common.js +3 -1
- package/dist/cartoRasterTile-worker.js +15 -48
- package/dist/cartoSpatialTile-worker.js +15 -48
- package/dist/cartoVectorTile-worker.js +15 -48
- package/dist/dist.dev.js +24 -59
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +3 -3
- package/dist/layers/schema/carto-raster-tile-loader.js +1 -1
- package/dist/layers/schema/carto-spatial-tile-loader.js +1 -1
- package/dist/layers/schema/carto-vector-tile-loader.js +1 -1
- package/dist/layers/vector-tile-layer.d.ts.map +1 -1
- package/dist/layers/vector-tile-layer.js +2 -0
- package/dist.min.js +6 -6
- package/package.json +8 -8
- package/src/api/common.ts +4 -1
- package/src/layers/vector-tile-layer.ts +2 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "CARTO official integration with Deck.gl. Build geospatial applications using CARTO and Deck.gl.",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "9.0.
|
|
6
|
+
"version": "9.0.7",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"prepublishOnly": "npm run build-bundle && npm run build-bundle -- --env=dev"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@loaders.gl/gis": "^4.
|
|
46
|
-
"@loaders.gl/loader-utils": "^4.
|
|
47
|
-
"@loaders.gl/mvt": "^4.
|
|
48
|
-
"@loaders.gl/schema": "^4.
|
|
49
|
-
"@loaders.gl/tiles": "^4.
|
|
45
|
+
"@loaders.gl/gis": "^4.2.0",
|
|
46
|
+
"@loaders.gl/loader-utils": "^4.2.0",
|
|
47
|
+
"@loaders.gl/mvt": "^4.2.0",
|
|
48
|
+
"@loaders.gl/schema": "^4.2.0",
|
|
49
|
+
"@loaders.gl/tiles": "^4.2.0",
|
|
50
50
|
"@luma.gl/constants": "^9.0.9",
|
|
51
51
|
"@math.gl/web-mercator": "^4.0.0",
|
|
52
52
|
"@types/d3-array": "^3.0.2",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@deck.gl/extensions": "^9.0.0",
|
|
70
70
|
"@deck.gl/geo-layers": "^9.0.0",
|
|
71
71
|
"@deck.gl/layers": "^9.0.0",
|
|
72
|
-
"@loaders.gl/core": "^4.
|
|
72
|
+
"@loaders.gl/core": "^4.2.0",
|
|
73
73
|
"@luma.gl/core": "^9.0.0"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "4cc921a720e00df45bce7e76a8d3104392aaf92f"
|
|
76
76
|
}
|
package/src/api/common.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import {VERSION} from '@deck.gl/core';
|
|
2
|
+
|
|
1
3
|
export const DEFAULT_API_BASE_URL = 'https://gcp-us-east1.api.carto.com';
|
|
2
4
|
export const DEFAULT_CLIENT = 'deck-gl-carto';
|
|
3
5
|
export const V3_MINOR_VERSION = '3.4';
|
|
4
6
|
export const MAX_GET_LENGTH = 8192;
|
|
5
7
|
|
|
6
8
|
export const DEFAULT_PARAMETERS = {
|
|
7
|
-
v: V3_MINOR_VERSION
|
|
9
|
+
v: V3_MINOR_VERSION,
|
|
10
|
+
deckglVersion: VERSION
|
|
8
11
|
};
|
|
9
12
|
|
|
10
13
|
export const DEFAULT_HEADERS = {
|
|
@@ -80,6 +80,7 @@ export default class VectorTileLayer<
|
|
|
80
80
|
return loadOptions;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/* eslint-disable camelcase */
|
|
83
84
|
async getTileData(tile: TileLoadProps) {
|
|
84
85
|
const tileJSON = this.props.data as TilejsonResult;
|
|
85
86
|
const {tiles, properties_tiles} = tileJSON;
|
|
@@ -115,6 +116,7 @@ export default class VectorTileLayer<
|
|
|
115
116
|
|
|
116
117
|
return attributes ? mergeBoundaryData(geometry, attributes) : geometry;
|
|
117
118
|
}
|
|
119
|
+
/* eslint-enable camelcase */
|
|
118
120
|
|
|
119
121
|
renderSubLayers(
|
|
120
122
|
props: TileLayer['props'] & {
|