block by ThomasG77 d83a25504147394e352f14da510df148

Set scale from zoom level value for EPSG 3857. See if you want to do the opposite https://gist.github.com/ThomasG77/7c2ecd106091a335a2138dcd82565db8#file-pyqgis-add-zoom-levels-3857-py-L5

pyqgis-set-scale-from-zoom-level-value.py