Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] Fix `fix radius` in point layer unclickable (#491)

Shan Hee3efad776a5c
diff --git a/src/components/side-panel/layer-panel/layer-configurator.js b/src/components/side-panel/layer-panel/layer-configurator.js
index 0b5b84d39..09df17307 100644
--- a/src/components/side-panel/layer-panel/layer-configurator.js
+++ b/src/components/side-panel/layer-panel/layer-configurator.js
@@ -137,7 +137,6 @@ export default class LayerConfigurator extends Component {
<VisConfigSwitch
{...LAYER_VIS_CONFIGS.fixedRadius}
{...visConfiguratorProps}
- disabled={!layer.config.sizeField}
/>
) : null}
</ConfigGroupCollapsibleContent>
diff --git a/src/components/side-panel/layer-panel/vis-config-switch.js b/src/components/side-panel/layer-panel/vis-config-switch.js
index 6ab1304ee..c08c6c4f9 100644
--- a/src/components/side-panel/layer-panel/vis-config-switch.js
+++ b/src/components/side-panel/layer-panel/vis-config-switch.js
@@ -42,7 +42,7 @@ const propTypes = {
const StyledVisConfigSwitch = styled.div`
display: flex;
justify-content: space-between;
-
+
.vis-config-switch__title {
display: flex;
}
@@ -62,14 +62,14 @@ const VisConfigSwitch = ({
{label ? <PanelLabel>{label || capitalizeFirstLetter(property)}</PanelLabel> : null}
{description ? (
<div>
- <InfoHelper description={description} id={`${id}-${property}`} />
+ <InfoHelper description={description} id={`${id}-${property}-description`} />
</div>
) : null}
</div>
<div className="vis-config-switch__switch">
<Switch
checked={config.visConfig[property]}
- id={`${id}-${property}`}
+ id={`${id}-${property}-switch`}
onChange={() => onChange({[property]: !config.visConfig[property]})}
/>
</div>