@deck.gl/carto 9.0.18 → 9.0.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/api/parse-map.js +9 -5
- package/dist/cartoRasterTile-worker.js +1 -1
- package/dist/cartoSpatialTile-worker.js +1 -1
- package/dist/cartoVectorTile-worker.js +1 -1
- package/dist/dist.dev.js +11 -657
- package/dist/index.cjs +14 -10
- package/dist/index.cjs.map +3 -3
- package/dist/layers/heatmap-tile-layer.js +2 -2
- 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 +4 -4
- package/package.json +2 -3
- package/src/api/parse-map.ts +11 -6
- package/src/layers/heatmap-tile-layer.ts +2 -2
package/dist/api/parse-map.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GL } from '@luma.gl/constants';
|
|
2
1
|
import { log } from '@deck.gl/core';
|
|
3
2
|
import { AGGREGATION, getLayer, getColorAccessor, getColorValueAccessor, getSizeAccessor, getTextAccessor, OPACITY_MAP, opacityToAlpha, getIconUrlAccessor, negateAccessor, getMaxMarkerSize } from "./layer-map.js";
|
|
4
3
|
import PointLabelLayer from "../layers/point-label-layer.js";
|
|
@@ -49,12 +48,17 @@ export function parseMap(json) {
|
|
|
49
48
|
}
|
|
50
49
|
function createParametersProp(layerBlending, parameters) {
|
|
51
50
|
if (layerBlending === 'additive') {
|
|
52
|
-
parameters.
|
|
53
|
-
parameters.
|
|
51
|
+
parameters.blendColorSrcFactor = parameters.blendAlphaSrcFactor = 'src-alpha';
|
|
52
|
+
parameters.blendColorDstFactor = parameters.blendAlphaDstFactor = 'dst-alpha';
|
|
53
|
+
parameters.blendColorOperation = parameters.blendAlphaOperation = 'add';
|
|
54
54
|
}
|
|
55
55
|
else if (layerBlending === 'subtractive') {
|
|
56
|
-
parameters.
|
|
57
|
-
parameters.
|
|
56
|
+
parameters.blendColorSrcFactor = 'one';
|
|
57
|
+
parameters.blendColorDstFactor = 'one-minus-dst-color';
|
|
58
|
+
parameters.blendAlphaSrcFactor = 'src-alpha';
|
|
59
|
+
parameters.blendAlphaDstFactor = 'dst-alpha';
|
|
60
|
+
parameters.blendColorOperation = 'subtract';
|
|
61
|
+
parameters.blendAlphaOperation = 'add';
|
|
58
62
|
}
|
|
59
63
|
return Object.keys(parameters).length ? { parameters } : {};
|
|
60
64
|
}
|
|
@@ -1008,7 +1008,7 @@
|
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
// src/layers/schema/carto-raster-tile-loader.ts
|
|
1011
|
-
var VERSION = true ? "9.0.
|
|
1011
|
+
var VERSION = true ? "9.0.20" : "latest";
|
|
1012
1012
|
var id = "cartoRasterTile";
|
|
1013
1013
|
var DEFAULT_OPTIONS = {
|
|
1014
1014
|
cartoRasterTile: {
|
|
@@ -1397,7 +1397,7 @@
|
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
1399
|
// src/layers/schema/carto-spatial-tile-loader.ts
|
|
1400
|
-
var VERSION = true ? "9.0.
|
|
1400
|
+
var VERSION = true ? "9.0.20" : "latest";
|
|
1401
1401
|
var id = "cartoSpatialTile";
|
|
1402
1402
|
var DEFAULT_OPTIONS = {
|
|
1403
1403
|
cartoSpatialTile: {
|
|
@@ -1625,7 +1625,7 @@
|
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
1627
|
// src/layers/schema/carto-vector-tile-loader.ts
|
|
1628
|
-
var VERSION = true ? "9.0.
|
|
1628
|
+
var VERSION = true ? "9.0.20" : "latest";
|
|
1629
1629
|
var id = "cartoVectorTile";
|
|
1630
1630
|
var DEFAULT_OPTIONS = {
|
|
1631
1631
|
cartoVectorTile: {
|