()
| 1411 | } |
| 1412 | |
| 1413 | function useMapDrawHandleIcon() { |
| 1414 | const { L } = useLeaflet() |
| 1415 | if (!L) return null |
| 1416 | |
| 1417 | return L.divIcon({ |
| 1418 | iconAnchor: [8, 8], |
| 1419 | html: renderToString( |
| 1420 | <CircleIcon className="fill-primary stroke-primary size-4 transition-transform hover:scale-110" /> |
| 1421 | ), |
| 1422 | }) |
| 1423 | } |
| 1424 | |
| 1425 | function useLeaflet() { |
| 1426 | const [L, setL] = useState<typeof import("leaflet") | null>(null) |
no test coverage detected