Skip to content

Commit 9c87cd0

Browse files
committed
Enable autoHighlight on network pipe edges
Added autoHighlight and a dynamic highlightColor to the map layer configuration to improve user interaction and visual feedback when hovering over features.
1 parent 735ed25 commit 9c87cd0

File tree

1 file changed

+2
-0
lines changed
  • src/features/map/components/Map

1 file changed

+2
-0
lines changed

src/features/map/components/Map/Map.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ const useMapLayers = (onHover = () => {}) => {
232232
},
233233
onHover: onHover,
234234
pickable: true,
235+
autoHighlight: true,
236+
highlightColor: [...edgeColour.map((c) => c * 1.5)],
235237

236238
parameters: { depthTest: false },
237239
}),

0 commit comments

Comments
 (0)