()
| 33 | ) |
| 34 | |
| 35 | export function useLeafletContext(): LeafletContextInterface { |
| 36 | const context = use(LeafletContext) |
| 37 | if (context == null) { |
| 38 | throw new Error( |
| 39 | 'No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>', |
| 40 | ) |
| 41 | } |
| 42 | return context |
| 43 | } |
no outgoing calls
searching dependent graphs…