[geo] add controls for minRadiusPixels and maxRadiusPixels in deck_scatter (#4467)

This commit is contained in:
Maxime Beauchemin
2018-02-26 10:56:19 -08:00
committed by GitHub
parent d57a37e341
commit 2932585c65
3 changed files with 27 additions and 0 deletions

View File

@@ -1848,6 +1848,30 @@ export const controls = {
'lower values are pruned first'),
},
min_radius: {
type: 'TextControl',
label: t('Minimum Radius'),
isFloat: true,
validators: [v.nonEmpty],
renderTrigger: true,
default: 2,
description:
t('Minimum radius size of the circle, in pixels. As the zoom level changes, this ' +
'insures that the circle respects this minimum radius.'),
},
max_radius: {
type: 'TextControl',
label: t('Maximum Radius'),
isFloat: true,
validators: [v.nonEmpty],
renderTrigger: true,
default: 250,
description:
t('Maxium radius size of the circle, in pixels. As the zoom level changes, this ' +
'insures that the circle respects this maximum radius.'),
},
partition_threshold: {
type: 'TextControl',
label: t('Partition Threshold'),

View File

@@ -648,6 +648,7 @@ export const visTypes = {
label: t('Point Size'),
controlSetRows: [
['point_radius_fixed', 'point_unit'],
['min_radius', 'max_radius'],
['multiplier', null],
],
},