CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.99k stars 3.5k forks source link

Update Cesium Viewer to work with 3D Tiles #7642

Open OmarShehata opened 5 years ago

OmarShehata commented 5 years ago

The Cesium Viewer app is a pretty awesome example of what you can do with a few bells and whistles in CesiumJS, but it's also pretty useful as a standalone app in itself. For example, you can find any view of any data on the Earth and save and share that just by sharing the link.

We can do a few more small things that I think will have a big impact in making it easier to work with 3D Tiles.

With just this, you could upload some massive data to ion, have a link like the "open in Sandcastle" except open it in the viewer app, and you'd instantly have a published viewer app you can actually use yourself for any analysis, embed on your website, share with collaborators etc.

You could also use this to pretty easily view multiple tilesets in the same view, or easily compare the same view in two different tilesets by swapping out the id.

One more thing that would be incredibly useful is:

This is all prototyped in this Glitch app:

https://glitch.com/edit/#!/cesium-viewer?path=README.md:1:0

OmarShehata commented 5 years ago

Another issue here is that the 3D Tiles inspector is really valuable when exploring 3D Tiles, but there's no good way to show both the "Cesium Inspector" and the "3D Tiles" inspector together.

jony89 commented 5 years ago

Change the query parameters to hash parameters. This will allow us to use the URL to update the state of the app without having to refresh. This is cool because it lets you bookmark views or share/change views without having to reload everything.

This is not needed this days. google .pushState