Closed eatyourgreens closed 1 week ago
Build interaction layer state dynamically from the interaction group config. hoverLayerStates is a map of layer IDs to layer hover states and layer hover targets.
hoverLayerStates
const layerStates = useRecoilValue(layerHoverStates); const { isHovered, target } = layerStates.get('hazards');
Move interaction state from src/lib/data-map/interactions to src/state/interactions.
src/lib/data-map/interactions
src/state/interactions
Build interaction layer state dynamically from the interaction group config.
hoverLayerStates
is a map of layer IDs to layer hover states and layer hover targets.Move interaction state from
src/lib/data-map/interactions
tosrc/state/interactions
.