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

Function onMapMove

modules/mapbox/src/deck-utils.ts:347–355  ·  view source on GitHub ↗
(deck: Deck, map: Map)

Source from the content-addressed store, hash-verified

345}
346
347function onMapMove(deck: Deck, map: Map): void {
348 deck.setProps({
349 viewState: getViewState(map)
350 });
351 // Camera changed, will trigger a map repaint right after this
352 // Clear any change flag triggered by setting viewState so that deck does not request
353 // a second repaint
354 deck.needsRedraw({clearRedrawFlags: true});
355}

Callers 1

_handleMapMoveFunction · 0.85

Calls 3

getViewStateFunction · 0.70
setPropsMethod · 0.65
needsRedrawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…