Skip to content

Commit

Permalink
Set Cesium to load higher rez when using WMTS/WMS
Browse files Browse the repository at this point in the history
This should have a better visual output, as tiles with a greater resolution will be loaded earlier.
  • Loading branch information
pakb committed Nov 13, 2023
1 parent 7d1bbcd commit ee793fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/map/components/cesium/CesiumMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ export default {
globe.depthTestAgainstTerrain = true
globe.showGroundAtmosphere = false
globe.showWaterEffect = false
// increases the LOD (Cesium will load one tile further down the zoom pyramid) => higher rez WMTS
globe.maximumScreenSpaceError = 0.5
const sscController = scene.screenSpaceCameraController
sscController.minimumZoomDistance = CAMERA_MIN_ZOOM_DISTANCE
Expand Down

0 comments on commit ee793fa

Please sign in to comment.