Skip to content
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

clampToGround works poorly with Google Photorealistic 3D Tiles #11775

Closed
TheFullUpload opened this issue Jan 19, 2024 · 1 comment
Closed

clampToGround works poorly with Google Photorealistic 3D Tiles #11775

TheFullUpload opened this issue Jan 19, 2024 · 1 comment

Comments

@TheFullUpload
Copy link

What happened?

When I use Google Photorealistic 3D Tiles, I need to set globe: false (recommended by the official doc).

I want to show a route (gpx file), so I import the file with GpxDataSource :

viewer.dataSources.add(Cesium.GpxDataSource.load('track.gpx',
{
    clampToGround: true,
    trackColor: Cesium.Color.YELLOW,
})).then(function (dataSource) {
    viewer.zoomTo(dataSource.entities);
});

I encounter two bugs:

  • the zoomTo() function don't work (nothing is happening)
  • the markers are below the terrain (the route is well placed however)

CleanShot2024-01-19at15 44 58-ezgif com-optimize

Reproduction steps

  1. Add a Cesium.Viewer with globe: false option
  2. Add a Cesium.createGooglePhotorealistic3DTileset()
  3. Add a dataSources with clampToGround: true option

Sandcastle example

No response

Environment

Browser: Chrome 120.0.6099.234
CesiumJS Version: 1.113
Operating System: macOS 14

@ggetz
Copy link
Contributor

ggetz commented Jan 19, 2024

Hi @TheFullUpload, I belive this is a duplicate of #7044, and is being addressed with #11604.

@ggetz ggetz closed this as completed Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants