Generalise TooltipContent with a useTooltipLayers hook, which supplies a map of layer IDs to their respective tooltip components and layer state. This should make it easier to add new layers, by extending the map.
Refactor interaction groups as a dynamic map. Add/remove new interactive layers by adding entries to/removing entries from src/config/interaction-groups.
Generalise TooltipContent with a
useTooltipLayers
hook, which supplies a map of layer IDs to their respective tooltip components and layer state. This should make it easier to add new layers, by extending the map.Refactor interaction groups as a dynamic map. Add/remove new interactive layers by adding entries to/removing entries from
src/config/interaction-groups
.