Skip to content

Commit

Permalink
fix: add maximum zoom level when requesting tiles in Cesium ( MAPCO-6…
Browse files Browse the repository at this point in the history
…226 ) (#582)

* fix: add maximum zoom level in Cesium

* fix: pr

---------

Co-authored-by: Alex Lebinson <[email protected]>
  • Loading branch information
Eliav-Maimon and alebinson authored Jan 9, 2025
1 parent c321c16 commit 9a855db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discrete-layer/components/helpers/layersUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ export const getWMTSOptions = (layer: LayerRasterRecordModelType, url: string, c
style,
format,
tileMatrixSetID,
tileMatrixLabels,
// tileMatrixLabels
maximumLevel: Math.max(...tileMatrixLabels.map(Number)),
tilingScheme: new CesiumGeographicTilingScheme()
};
};

0 comments on commit 9a855db

Please sign in to comment.