geoadmin / mf-geoadmin3

Legacy source code of map.geo.admin.ch
https://map.geo.admin.ch
Other
227 stars 72 forks source link

space view: lost #2670

Closed davidoesch closed 8 years ago

davidoesch commented 9 years ago

if zooming completely out the white globe makes it hard to find switzerland https://mf-geoadmin3.dev.bgdi.ch/ltmoc/?dev3d=true&lang=de&topic=ech&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.swissimage-product&lon=5.58031&lat=44.90932&elevation=20074287&heading=359.935&pitch=-88.562

schweizmobil does not have a solution neither

-possibility to restrict cesium on zoom out? -add at least a grid to the background ("under the terrain" ....)

more ideas?

cedricmoullet commented 9 years ago

@gberaudo @fredj is it possible to restrict the space where the camera can move ?

fredj commented 9 years ago

The maximum zoom can be restricted by using the maximumZoomDistance property (see https://cesiumjs.org/Cesium/Build/Documentation/ScreenSpaceCameraController.html)

cedricmoullet commented 9 years ago

I was more thinking to a kind of 3D box limiting the movement of the camera