CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.47k stars 3.39k forks source link

Add contour lines labels #8877

Open bwyss opened 4 years ago

bwyss commented 4 years ago

The feature: Cesium.Material ElevationContour line labels. Options:

OmarShehata commented 4 years ago

You can currently add contour lines in CesiumJS as shown here: https://sandcastle.cesium.com/index.html?src=Globe%20Materials.html. The current implementation renders these lines in the shader, so I think it may be difficult to generate labels in the same efficient way.

I think one way to implement this would be to generate the labels around the closest areas to the camera as the user moves. Although I'm not sure what an easy way would be to actually get the positions the contour lines are at on the CPU side to create the labels. You could try looking at how the lines are computed in the shader.

manjunathamm24 commented 2 months ago

The feature: Cesium.Material ElevationContour line labels. it seems required feature, any update on this @OmarShehata

ggetz commented 2 months ago

@manjunathamm24 There hasn't been any activity on this item recently.

If you'd like to add more information about your use case, that may help us prioritize. If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR.

Thanks!