Skip to content

Instantly share code, notes, and snippets.

@ibgreen
Last active May 11, 2018 01:13
Show Gist options
  • Save ibgreen/454a4ff08bcde81bb6269f8f9b81ee6c to your computer and use it in GitHub Desktop.
Save ibgreen/454a4ff08bcde81bb6269f8f9b81ee6c to your computer and use it in GitHub Desktop.
deck.gl data auto-loading
// Pass URL directly as data, no need to load it first
const deck = new Deck({
...
layers: [
new ScatterplotLayer({
data: 'https://...'
})
]
});
// or, if using React
<DeckGL ... layers={[
new ScatterplotLayer({
data: 'https://...'
})
]}/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment