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

Function onLoad

test/apps/framebuffer/app.js:44–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44function onLoad() {
45 framebuffer.resize({width: deck.width, height: deck.height});
46
47 deck.setProps({
48 layers: [
49 new GeoJsonLayer({
50 data: sfZipcodes,
51 opacity: 0.5,
52 extruded: true,
53 getFillColor: [255, 0, 0],
54 getElevation: d => Math.random() * 3000
55 })
56 ],
57 _framebuffer: framebuffer,
58 onAfterRender
59 });
60}
61
62function onAfterRender() {
63 deck.setProps({

Callers 3

getDeckInstanceFunction · 0.85
_loadDataMethod · 0.85
AppFunction · 0.85

Calls 2

resizeMethod · 0.65
setPropsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…