This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 319a131ec9 fix(charts): missing globalOpacity prop with mapbox (#37168)
319a131ec9 is described below
commit 319a131ec91a6dd93ff2a548206f177c73cc85f1
Author: Felipe López <[email protected]>
AuthorDate: Fri Jan 23 20:08:16 2026 -0300
fix(charts): missing globalOpacity prop with mapbox (#37168)
---
.../legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
b/superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
index 011c91ed9c..739204c134 100644
---
a/superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
+++
b/superset-frontend/plugins/legacy-plugin-chart-map-box/src/ScatterPlotGlowOverlay.jsx
@@ -29,6 +29,7 @@ const propTypes = {
aggregation: PropTypes.string,
compositeOperation: PropTypes.string,
dotRadius: PropTypes.number,
+ globalOpacity: PropTypes.number,
lngLatAccessor: PropTypes.func,
locations: PropTypes.arrayOf(PropTypes.object).isRequired,
pointRadiusUnit: PropTypes.string,
@@ -121,6 +122,7 @@ class ScatterPlotGlowOverlay extends PureComponent {
aggregation,
compositeOperation,
dotRadius,
+ globalOpacity,
lngLatAccessor,
locations,
pointRadiusUnit,
@@ -180,7 +182,7 @@ class ScatterPlotGlowOverlay extends PureComponent {
gradient.addColorStop(
1,
- `rgba(${rgb[1]}, ${rgb[2]}, ${rgb[3]}, 0.8)`,
+ `rgba(${rgb[1]}, ${rgb[2]}, ${rgb[3]}, ${0.8 * globalOpacity})`,
);
gradient.addColorStop(
0,
@@ -251,7 +253,7 @@ class ScatterPlotGlowOverlay extends PureComponent {
0,
Math.PI * 2,
);
- ctx.fillStyle = `rgb(${rgb[1]}, ${rgb[2]}, ${rgb[3]})`;
+ ctx.fillStyle = `rgba(${rgb[1]}, ${rgb[2]}, ${rgb[3]},
${globalOpacity})`;
ctx.fill();
if (pointLabel !== undefined) {