MCPcopy
hub / github.com/visgl/deck.gl / DeckGLOverlay

Function DeckGLOverlay

examples/get-started/react/google-maps/app.jsx:19–30  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

17const GOOGLE_MAP_ID = process.env.GoogleMapsMapId; // eslint-disable-line
18
19function DeckGLOverlay(props) {
20 const map = useMap();
21 const overlay = useMemo(() => new DeckOverlay(props));
22
23 useEffect(() => {
24 overlay.setMap(map);
25 return () => overlay.setMap(null);
26 }, [map]);
27
28 overlay.setProps(props);
29 return null;
30}
31
32function Root() {
33 const onClick = info => {

Callers

nothing calls this directly

Calls 2

setPropsMethod · 0.65
setMapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…