@deck.gl/carto 9.1.3 → 9.1.5
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/cartoPropertiesTile-worker.js +1 -1
- package/dist/cartoRasterTile-worker.js +1 -1
- package/dist/cartoSpatialTile-worker.js +16 -7
- package/dist/cartoVectorTile-worker.js +1 -1
- package/dist/dist.dev.js +30 -27
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +2 -2
- package/dist/layers/raster-layer-vertex.glsl.d.ts +1 -1
- package/dist/layers/raster-layer-vertex.glsl.d.ts.map +1 -1
- package/dist/layers/raster-layer-vertex.glsl.js +2 -1
- package/dist/layers/raster-layer-vertex.glsl.js.map +1 -1
- package/dist/layers/schema/carto-properties-tile-loader.js +1 -1
- 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.min.js +9 -8
- package/package.json +6 -6
- package/src/layers/raster-layer-vertex.glsl.ts +5 -1
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.1.
|
|
6
|
+
"version": "9.1.5",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@loaders.gl/mvt": "^4.2.0",
|
|
50
50
|
"@loaders.gl/schema": "^4.2.0",
|
|
51
51
|
"@loaders.gl/tiles": "^4.2.0",
|
|
52
|
-
"@luma.gl/core": "^9.1.
|
|
53
|
-
"@luma.gl/shadertools": "^9.1.
|
|
52
|
+
"@luma.gl/core": "^9.1.3",
|
|
53
|
+
"@luma.gl/shadertools": "^9.1.3",
|
|
54
54
|
"@math.gl/web-mercator": "^4.1.0",
|
|
55
55
|
"@types/d3-array": "^3.0.2",
|
|
56
56
|
"@types/d3-color": "^1.4.2",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"h3-js": "^4.1.0",
|
|
65
65
|
"moment-timezone": "^0.5.33",
|
|
66
66
|
"pbf": "^3.2.1",
|
|
67
|
-
"quadbin": "^0.
|
|
67
|
+
"quadbin": "^0.4.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@deck.gl/aggregation-layers": "^9.1.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@deck.gl/geo-layers": "^9.1.0",
|
|
74
74
|
"@deck.gl/layers": "^9.1.0",
|
|
75
75
|
"@loaders.gl/core": "^4.2.0",
|
|
76
|
-
"@luma.gl/core": "^9.1.
|
|
76
|
+
"@luma.gl/core": "^9.1.3"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "0223094f8c74c1db4a20bb9e5180b405d0809732"
|
|
79
79
|
}
|
|
@@ -41,11 +41,15 @@ void main(void) {
|
|
|
41
41
|
// Get position directly from quadbin, rather than projecting
|
|
42
42
|
// Important to set geometry.position before using project_ methods below
|
|
43
43
|
// as geometry.worldPosition is not set (we don't know our lat/long)
|
|
44
|
-
geometry.position = vec4(tileOrigin
|
|
44
|
+
geometry.position = vec4(tileOrigin, 0.0, 1.0);
|
|
45
45
|
if (project.projectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {
|
|
46
46
|
geometry.position.xyz -= project.commonOrigin;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
// Important to apply after tileOrigin & commonOrigin as they are large values which often
|
|
50
|
+
// cancel and thus cellCenter precision is lost if applied first.
|
|
51
|
+
geometry.position.xy += cellCenter;
|
|
52
|
+
|
|
49
53
|
// calculate elevation, if 3d not enabled set to 0
|
|
50
54
|
// cylindar geometry height are between -1.0 to 1.0, transform it to between 0, 1
|
|
51
55
|
float elevation = 0.0;
|