[Qgis-user] QGIS3: zoom in fixed XYZ steps?

Richard Duivenvoorde rdmailings at duif.net
Mon Apr 2 01:51:55 PDT 2018


On 02-04-18 00:23, Tobias Wendorff wrote:
> Hi there,
> 
> when loading an XYZ layer, is there some way to zoom exactly to
> the zoom step's fixed resolution?
> 
> QMS has such a feature, but perhaps something similar is hidden
> in QGIS core? Something like a slider perhaps?

Yes, there is a panel 'Tile Scale' which is working for WMST, and to me
also looks to work for xyz layers:

- open xyz layer (eg osm)
- be sure the active layer is this xyz layer in the layer panel
- via menu View/Panels select 'Tile Scale Panel' (or via context menu in
the toolbars panel)
- now you can use the slider to go to a fixed scale. After that your
mouse scroll will also stick at the fixed scales (as that one does an
exact factor 2 or 0.5).

IF you really always work with xyz layers as reference layers, it is
possible to change your 'predefined' scales which you see in the Scales
dropdown in the bottom status bar of QGIS. Just export those as xml,
adapt the values and then import them.

I wrote something about it some years ago, to adapt those scales to our
national WMTS scales (which is a DIFFERENT schema then the Google/World
schema the xyz layers use!) [0]

Would be nice to maybe create a 'layer tree widget' [1][2] for these xyz
layers?

Regards,

Richard Duivenvoorde


[0] http://www.qgis.nl/2015/06/14/change-predefined-scales/?lang=en
[1]
https://www.qgis.org/fi/site/forusers/visualchangelog216/index.html#feature-embedded-widgets-in-layer-tree
[2] https://github.com/qgis/QGIS/pull/3170



More information about the Qgis-user mailing list