You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to build something that takes GeoJSON input and creates a linear kind of heatmap, like the example below, using deck gl.
I.e. the density of traces at a point defines the color at that point. But I truly have no idea how to do this. The way I have it set up right now I'm graphing my geojson data like this, which works fine.
How can I change the color based on the density of lines drawn in an area? I've tried to look into some blendFunc thing but I can't figure it out.
Any and all help much appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm looking to build something that takes GeoJSON input and creates a linear kind of heatmap, like the example below, using deck gl.
![316075480-d90b0a3d-07d4-4821-aeb5-4704e7c34169](https://private-user-images.githubusercontent.com/61996958/316266793-56ac5397-ffc2-4d73-b2d0-d787b7deb17c.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTIwNzQsIm5iZiI6MTcyNDAxMTc3NCwicGF0aCI6Ii82MTk5Njk1OC8zMTYyNjY3OTMtNTZhYzUzOTctZmZjMi00ZDczLWIyZDAtZDc4N2I3ZGViMTdjLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIwMDkzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyMjA2NWFhMjk3NzVlNTg4YTEzOTkxNzNhYWQxNWVmOTI3NmRhY2FlMTkxNmE1ZDliMTk5NGY5NDg3YjM0M2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lAur4YDYynDQZnYlpY6rZuCF2TNAe8cxfhDus9KMdEA)
I.e. the density of traces at a point defines the color at that point. But I truly have no idea how to do this. The way I have it set up right now I'm graphing my geojson data like this, which works fine.
How can I change the color based on the density of lines drawn in an area? I've tried to look into some blendFunc thing but I can't figure it out.
Any and all help much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions