Hi
Does someone have an example of a Geojson file that has a clampToGround property in it that they know works ?
I know how to achieve this in code, but doing it by loading a Geojson file seems a lot harder.
Thanks
Hi
Does someone have an example of a Geojson file that has a clampToGround property in it that they know works ?
I know how to achieve this in code, but doing it by loading a Geojson file seems a lot harder.
Thanks
If you are using Cesium Stories, markers are automatically clamped to the ground for you.
Note that a GeoJSON file itself has no concept of clamping to ground. If you’re loading the GeoJSON file in CesiumJS, all you have to do is pass clampToGround: true
in the options of the Cesium.GeoJsonDataSource.load
function. See: https://cesium.com/docs/cesiumjs-ref-doc/GeoJsonDataSource.html?classFilter=GeoJSON