Integrate deck.gl with cesium #8415
Unanswered
federicomarcantognini
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
any recommendations on how to integrate deck.gl visualization layer in cesium 2/2.5/3D?
I tried a few options mostly to synchronize both cameras but I cannot get these two to play nicely together.
My attempt:
`
// Initialize a simple deck.gl scatterplot layer
const scatterplotLayer = new ScatterplotLayer({
id: 'scatterplot-layer',
data: [
{ position: [35.02277343658558, 28.134965098706523], size: 10000, color: [255, 0, 0] },
{ position: [-118.2437, 34.0522], size: 500, color: [0, 255, 0] }, // Los Angeles
{ position: [-87.6298, 41.8781], size: 800, color: [0, 0, 255] }, // Chicago
],
getPosition: d => d.position,
getRadius: d => d.size,
getColor: d => d.color,
});
Any heads up is appreciated.
thank you
Beta Was this translation helpful? Give feedback.
All reactions