-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KML Lines not clamped to ground #8404
Comments
Might be related to #4326 |
this problem is related to kmldatasrouces.Only lines are not clamped. |
@fironalia please share a Sandcastle example reproducing this issue. If you're not sure if it's a bug you can always ask on the Cesium forum. |
@OmarShehata i am sure it is a bug, points and polygones are clamped to ground, but lines are not. |
@fironalia submitting a complete bug report requires putting together a reproducible code example that shows the issue so we can test/debug it. Otherwise it's unclear whether the problem is in your code, or if it is a bug, where the issue may be. For example, are you setting the clampToGround option when loading the KML as shown in the docs? https://cesium.com/docs/cesiumjs-ref-doc/KmlDataSource.html?classFilter=kmlData#.load Here's a code example that shows that shows a line from a KML file clamped to ground in CesiumJS. |
i really thank you for your fast replies. |
@OmarShehata this is an example for a kml file that conains one line and one polygon, if you want to try it. you will see that lines are clamped to ellipsoid and not to the terrain. |
@OmarShehata am i right or wrong ? |
@fironalia your line is not clamped because the tesselate flag is false by default. You can fix this by adding |
@OmarShehata |
@OmarShehata If I dont write |
i have a kml that i want to add it to cesium, this kml contains lines and polygones.
polygones clamped to ground works fine, but lines are not working, is there any way to do it? or it is really a problem ??
The text was updated successfully, but these errors were encountered: