3dcitydb / 3dcitydb-web-map

Cesium-based 3D viewer and JavaScript API for the 3D City Database
Apache License 2.0
377 stars 125 forks source link

Save as Startup file #61

Closed gkvoelkl closed 4 years ago

gkvoelkl commented 4 years ago

Hello,

your software works great. I can see all my tile layers.

Can I save my configuration in a file so that when starting the application again I will see my layers.

Now I have to configure the application every time I start it.

Thanks

Best regards Gerhard

thomashkolbe commented 4 years ago

The entire configuration can be saved in the URL as configuration parameters. Hence, when you open the URL, all layers and configuration options are automatically restored from the URL parameters. In order to generate this link just open the "Toolbox" menu and click on "Generate Scene Link". This will create a hyperlink that contains the entire configuration including the current camera position and information about activated and deactivated layers. The link can become quite long, but this does not seem to be a problem for modern browsers. You can then bookmark or share the link with others.

Hope this resolves your question Best regards Thomas Kolbe

gkvoelkl commented 4 years ago

Thanks for your quick answer.

I tested it and it works for me.