Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
3
import
{ useEffect } from
'react'
4
5
export
function
useMap(): LeafletMap {
6
return
useLeafletContext().map
7
}
8
9
export
function
useMapEvent<T extends keyof LeafletEventHandlerFnMap>(
10
type
: T,
Callers
3
TestChild
Function · 0.90
useMapEvent
Function · 0.85
useMapEvents
Function · 0.85
Calls
1
useLeafletContext
Function · 0.90
Tested by
1
TestChild
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…