Hello, I have two files in cesium ion, one is a kml file and another is a 3d tile file, what I want is to put them together, but the next thing you see in the image happens, I would like to know how to clamptoGround the KML file on the 3d model, does anyone know how to achieve that or have an idea?
Clamping your entities to ground should be sufficient, here's an example where a line from a CZML is clamped to 3D Tiles:The only additional thing for KML is that, in addition to the entities in the KML file itself having clampToGround, you must set clampToGround: true when loading it in CesiumJS: https://cesium.com/docs/cesiumjs-ref-doc/KmlDataSource.html?classFilter=KMLDat#.loadLet me know if this works.
As far as I can tell, the lines in the original KML need to have the right altitude mode set (to clamp to ground). Here's a Sandcastle that will override this setting to always clamp all the lines.
This dataset looks very cool! What kind of project are you working on with Cesium?
Can you share a Sandcaslte of your asset here?
Can you share a Sandcaslte of your asset here?