How do I show the GeoJSON contour line properly on the globe?

Hi,

When I uploaded my GeoJSON contour line into the Cesium Ion,
It showed it like this:

This is what I expected,

Is there any way to solve this?

Ultimately, I would like to overlay it upon my point cloud like this on by CesiumJs,

Thank you in advance.

KML is giving me a 2D image

image

Hi! Can you send the asset id of the GeoJSON and KML files to support@cesium.com?

1 Like

For the KML asset:

  • To see elevation, please add a terrain provider. For instance, you can add the Cesium World Terrain with the code below
var viewer = new Cesium.Viewer("cesiumContainer", {
  terrainProvider: Cesium.createWorldTerrain()
});

Here is what the file looks like after adding world terrain:

The elevation is still off. This might be caused by unsupported tags in the KML file. If you open the asset in Sandcastle, you can see in the console an error saying “Placemark Regions are unsupported”. CesiumJS currently does not support Placemark tags. You can read more about KML support and roadmap here: KML Support · Issue #873 · CesiumGS/cesium · GitHub.

I am still looking into the GeoJSON file. I will get back to you soon.