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

Function extendContext

packages/core/src/context.ts:24–29  ·  view source on GitHub ↗
(
  source: LeafletContextInterface,
  extra: Partial<LeafletContextInterface>,
)

Source from the content-addressed store, hash-verified

22}
23
24export function extendContext(
25 source: LeafletContextInterface,
26 extra: Partial<LeafletContextInterface>,
27): LeafletContextInterface {
28 return Object.freeze({ ...source, ...extra })
29}
30
31export const LeafletContext = createContext<LeafletContextInterface | null>(
32 null,

Callers 13

LayerGroup.tsxFile · 0.90
FeatureGroup.tsxFile · 0.90
ImageOverlay.tsxFile · 0.90
VideoOverlay.tsxFile · 0.90
Polyline.tsxFile · 0.90
Rectangle.tsxFile · 0.90
GeoJSON.tsxFile · 0.90
Circle.tsxFile · 0.90
LayersControl.tsxFile · 0.90
createControlledLayerFunction · 0.90
Polygon.tsxFile · 0.90
Marker.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…