diff --git a/src/components/map/MapInteraction.js b/src/components/map/MapInteraction.js index 7227d27..837a49c 100644 --- a/src/components/map/MapInteraction.js +++ b/src/components/map/MapInteraction.js @@ -99,6 +99,19 @@ function MapInteraction({ map, children, controls, selectedToolId }) { stageHeightRef.current = height; } + function getCursorForTool(tool) { + switch (tool) { + case "pan": + return "move"; + case "fog": + case "brush": + case "shape": + return "crosshair"; + default: + return "default"; + } + } + const containerRef = useRef(); usePreventOverscroll(containerRef); @@ -124,7 +137,11 @@ function MapInteraction({ map, children, controls, selectedToolId }) { return (