From a4b80c0dd907751fbd4c35e26d5a7d0e748999af Mon Sep 17 00:00:00 2001 From: Tyler Matteo Date: Mon, 24 Jun 2024 09:56:58 -0400 Subject: [PATCH] Add getCursor handler to Atlas to show pointer cursor on pickable features --- app/components/atlas.client.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/components/atlas.client.tsx b/app/components/atlas.client.tsx index d128122..b321ab1 100644 --- a/app/components/atlas.client.tsx +++ b/app/components/atlas.client.tsx @@ -29,6 +29,12 @@ export function Atlas() { communityDistrictsLayer, cityCouncilDistrictsLayer, ]} + getCursor={({ isDragging, isHovering }) => { + if (isDragging) { + return "grabbing"; + } + return isHovering ? "pointer" : "grab"; + }} >