This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2a2f395 Add "Auto" option to Mapbox visualization point radius (#7579)
2a2f395 is described below
commit 2a2f395e941b61a2e3d9e973689caeed81a3a6ef
Author: Ali Bahjati <[email protected]>
AuthorDate: Wed May 29 04:37:40 2019 +0430
Add "Auto" option to Mapbox visualization point radius (#7579)
* Add Auto option to point radius to make it work as expected since the
example using this didn't work because of this (and also as the tooltip says
the auto option should be available)
* Remove trailing space
---
superset/assets/src/explore/controls.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/assets/src/explore/controls.jsx
b/superset/assets/src/explore/controls.jsx
index 3c239ab..feba265 100644
--- a/superset/assets/src/explore/controls.jsx
+++ b/superset/assets/src/explore/controls.jsx
@@ -1849,7 +1849,7 @@ export const controls = {
'Either a numerical column or `Auto`, which scales the point based ' +
'on the largest cluster'),
mapStateToProps: state => ({
- choices: columnChoices(state.datasource),
+ choices:
formatSelectOptions(['Auto']).concat(columnChoices(state.datasource)),
}),
},