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

Function withPane

packages/core/src/pane.ts:5–11  ·  view source on GitHub ↗
(
  props: P,
  context: LeafletContextInterface,
)

Source from the content-addressed store, hash-verified

3import type { LeafletContextInterface } from './context.js'
4
5export function withPane<P extends LayerOptions>(
6 props: P,
7 context: LeafletContextInterface,
8): P {
9 const pane = props.pane ?? context.pane
10 return pane ? { ...props, pane } : props
11}

Callers 6

pane.tsFile · 0.90
TileLayer.tsxFile · 0.90
WMSTileLayer.tsxFile · 0.90
createDivOverlayHookFunction · 0.85
createPathHookFunction · 0.85
createLayerHookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…