Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] fix for Icon layer UI (#3003)
Igor Dykhta69ea2a1760b7
diff --git a/src/components/src/side-panel/layer-panel/layer-configurator.tsx b/src/components/src/side-panel/layer-panel/layer-configurator.tsxindex 21d83eb28..86e176159 100644--- a/src/components/src/side-panel/layer-panel/layer-configurator.tsx+++ b/src/components/src/side-panel/layer-panel/layer-configurator.tsx@@ -148,23 +148,21 @@ export default function LayerConfiguratorFactory(): React.ComponentType<LayerConfiguratorProps> {class LayerConfigurator extends Component<LayerConfiguratorProps> {_renderPointLayerConfig(props) {- return this._renderScatterplotLayerConfig(props);+ return this._renderScatterplotLayerConfig(props, true);}_renderIconLayerConfig(props) {- return this._renderScatterplotLayerConfig(props);+ return this._renderScatterplotLayerConfig(props, false);}_renderVectorTileLayerConfig(props) {return <VectorTileLayerConfigurator {...props} />;}- _renderScatterplotLayerConfig({- layer,- visConfiguratorProps,- layerChannelConfigProps,- layerConfiguratorProps- }) {+ _renderScatterplotLayerConfig(+ {layer, visConfiguratorProps, layerChannelConfigProps, layerConfiguratorProps},+ showInteractionControls+ ) {return (<StyledLayerVisualConfigurator>{/* Fill Color */}@@ -259,19 +257,21 @@ export default function LayerConfiguratorFactory(/>{/* Interaction */}- <LayerConfigGroup label={'layer.interaction'} collapsible>- <VisConfigSwitch {...layer.visConfigSettings.allowHover} {...visConfiguratorProps} />- <ConfigGroupCollapsibleContent>- <VisConfigSwitch- {...layer.visConfigSettings.showNeighborOnHover}- {...visConfiguratorProps}- />- <VisConfigSwitch- {...layer.visConfigSettings.showHighlightColor}- {...visConfiguratorProps}- />- </ConfigGroupCollapsibleContent>- </LayerConfigGroup>+ {showInteractionControls ? (+ <LayerConfigGroup label={'layer.interaction'} collapsible>+ <VisConfigSwitch {...layer.visConfigSettings.allowHover} {...visConfiguratorProps} />+ <ConfigGroupCollapsibleContent>+ <VisConfigSwitch+ {...layer.visConfigSettings.showNeighborOnHover}+ {...visConfiguratorProps}+ />+ <VisConfigSwitch+ {...layer.visConfigSettings.showHighlightColor}+ {...visConfiguratorProps}+ />+ </ConfigGroupCollapsibleContent>+ </LayerConfigGroup>+ ) : null}</StyledLayerVisualConfigurator>);}