MCPcopy
hub / github.com/PaulLeCam/react-leaflet / useMap

Function useMap

packages/react-leaflet/src/hooks.ts:5–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { useEffect } from 'react'
4
5export function useMap(): LeafletMap {
6 return useLeafletContext().map
7}
8
9export function useMapEvent<T extends keyof LeafletEventHandlerFnMap>(
10 type: T,

Callers 3

TestChildFunction · 0.90
useMapEventFunction · 0.85
useMapEventsFunction · 0.85

Calls 1

useLeafletContextFunction · 0.90

Tested by 1

TestChildFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…