The Swisstopo WMTS service assigns specific raster map content to specific zoom levels:

  • ....
  • 16: 1:25'000 Raster map
  • 15: 1:50'000 Raster map
  • 14: 1:100'000 Raster map
  • ....

Here is a code example.

Compared to other map source the result is an extremely inflated map content. Just compare the font size of text contained in these maps: Swisstopo to IGN.

How can I load the Swisstopo ol/sourceXYZ by shifting the content about one zoom level? The result would be then:

  • ....
  • 17: 1:25'000
  • 16: 1:50'000
  • 15: 1:100'000
  • ....
  • Please edit your question and include relevant code in the body of the question. Coding question on GIS SE site should include relevant existing code, otherwise it's most likely to be closed as not compliant with the site policy.
    – TomazicM
    May 1, 2021 at 15:58

2 Answers 2


You cannot change the fixed content of what is served, but you could set up OpenLayers to treat the 256 pixel tiles served as if they were hidpi 128 pixel tiles

  url: 'https://wmts10.geo.admin.ch/1.0.0/' + layername + '/default/' + timestamp + '/3857/{z}/{x}/{y}.jpeg',
  tileSize: 128,
  tilePixelRatio: 2

The zoom level requested for any view resolution would then be offset by 1 (but you would be requesting 4 times as many tiles) https://codepen.io/mike-000/pen/NWdZELE?editors=0010

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.