Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] fix arc layer configurator (#1375)
Shan He823405ab0810
diff --git a/src/components/map/map-popover.js b/src/components/map/map-popover.jsindex ee4f770ce..0e33f098c 100644--- a/src/components/map/map-popover.js+++ b/src/components/map/map-popover.js@@ -199,35 +199,6 @@ export default function MapPopoverFactory(LayerHoverInfo, CoordinateInfo) {{layerHoverProp, x, y, mapW, mapH},popover);- // const [isLeft, setIsLeft] = useState(false);- // const [pos, setPosition] = useState({});-- // const moveLeft = useCallback(() => setIsLeft(true), [setIsLeft]);- // const moveRight = useCallback(() => setIsLeft(false), [setIsLeft]);- // const hoverData = layerHoverProp && layerHoverProp.data;-- // useLayoutEffect(() => {- // const node = popover.current;- // if (!node || !hoverData) {- // return;- // }- // const width = Math.round(node.offsetWidth);- // const height = Math.round(node.offsetHeight);-- // if (Number.isFinite(width) && width > 0 && Number.isFinite(height) && height > 0) {- // setPosition(- // getPosition({- // x,- // y,- // mapW,- // mapH,- // width,- // height,- // isLeft- // })- // );- // }- // }, [x, y, mapH, mapW, isLeft, hoverData]);return (<ErrorBoundary>diff --git a/src/components/side-panel/layer-panel/layer-configurator.js b/src/components/side-panel/layer-panel/layer-configurator.jsindex aafde97c8..75686d7f3 100644--- a/src/components/side-panel/layer-panel/layer-configurator.js+++ b/src/components/side-panel/layer-panel/layer-configurator.js@@ -503,7 +503,7 @@ export default function LayerConfiguratorFactory()}<ConfigGroupCollapsibleContent><ChannelByValueSelector- channel={layer.visualChannels.color}+ channel={layer.visualChannels.sourceColor}{...layerChannelConfigProps}/><VisConfigSlider {...layer.visConfigSettings.opacity} {...visConfiguratorProps} />