fix(charts): numerical column for the Point Radius field in mapbox (#36962)

(cherry picked from commit 675a4c7a66)
This commit is contained in:
Felipe López
2026-01-29 06:50:10 -03:00
committed by Joe Li
parent 7ddfda9576
commit 2c0f00c8e4
3 changed files with 413 additions and 2 deletions

View File

@@ -32,7 +32,6 @@ export default function transformProps(chartProps) {
mapboxColor,
mapboxStyle,
pandasAggfunc,
pointRadius,
pointRadiusUnit,
renderWhileDragging,
} = formData;
@@ -90,7 +89,9 @@ export default function transformProps(chartProps) {
setControlValue('viewport_latitude', latitude);
setControlValue('viewport_zoom', zoom);
},
pointRadius: pointRadius === 'Auto' ? DEFAULT_POINT_RADIUS : pointRadius,
// Always use DEFAULT_POINT_RADIUS as the base radius for cluster sizing
// Individual point radii come from geoJSON properties.radius
pointRadius: DEFAULT_POINT_RADIUS,
pointRadiusUnit,
renderWhileDragging,
rgb,