GeoJsonPrimitive cannot stick to the terrain

Hello, when I am using GeoJsonPrimitive, I have also enabled terrain elevation. My GeoJsonPrimitive will automatically load below the terrain elevation. How can I set it to display closely to the elevation?

I tried the following attributes, but they were invalid

const geoJsonPrimitive = new Cesium.GeoJsonPrimitive({

data: ‘path/to/large-data.geojson’,

// Enable fully automatic ground pasting

clampToGround: true,

// Category type: Specify both Terrain and 3D Tiles for oblique photography/white modeling (CESIUM-3D_FILE)

classificationType: Cesium.ClassificationType.BOTH

});

Hi @xiyuvi! GeoJsonPrimitive is a new, experimental API just released in the v1.142 version earlier this week. It doesn’t yet have either clampToGround or classificationType options, and is currently intended for better performance on larger datasets. If you’d like to track when clampToGround might be supported there, subscribe to cesium#13325.

GeoJsonDataSource might be what you’re looking for, in the meantime? GeoJsonDataSource does have a clampToGround option now.