Last active
May 11, 2018 01:13
-
-
Save ibgreen/454a4ff08bcde81bb6269f8f9b81ee6c to your computer and use it in GitHub Desktop.
deck.gl data auto-loading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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