Dear cesium team,
I have the following use case:
Make a interactive 3d map (of the alps) that contains a personal raster layer (uploaded via cesium ion). This layer should be colored according to its values. It is a snow cover duration layer with values from 0 to 356. A legend should be shown to the user. Ideally also a transparency slider and toggle layer on off.
Additionally, it would be great if the raster values could be querried via mouse click on the map.
What I have done:
- I’ve uploaded the raster choosing the type “image” into cesium ion.
- I’ve used the sandbox to add it to a map.
- I’ve tried adapting the example “globe materials” but didn’t manage to change the color of my snow cover duration raster.
- The example “Imagery Layers Manipulation” looks interesting. But there is also no legend and the mouse click action only says “no features found”.
Currently my try looks like this:
Example of what I would like it to look like
The team of opendatascience.eu has a nice visualization tool which seems to based on cesium and has even more features then I would need. My use case is only coloring and legend according to the raster values (and on click display of the raster value)
Related questions on the forum
I’ve checked the forum but didn’t find the answer suiting my case. There are two similar questions but they’re diverging in a different direction. The first one is using raster to give a texture to 3d objects. The second one is not using personal data.
- Coloring tilesets based on raster imagery - #2 by dzung
- Show legend on cesium slope, aspect and elevation - #9 by Shashi
- How can I color a personally uploaded raster (uploaded as type image) overlayed on the 3d terrain according to its values?
- How can I add a legend?
- How do i get on-click values of the raster displayed?
- Am I following the best approach to achieve what I want?
Thanks for your help,
All the best!