Skip to content
Permalink
Browse files
[vectortile] Fix erroneous zoom level determination
  • Loading branch information
nirvn authored and github-actions committed Nov 22, 2021
1 parent 35aa4a1 commit be95bd7a0b5be53fa0813b0e70ff2a35c59aa3da
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/vectortile/qgsvectortileutils.cpp
@@ -70,7 +70,7 @@ double QgsVectorTileUtils::scaleToZoom( double mapScale )

int QgsVectorTileUtils::scaleToZoomLevel( double mapScale, int sourceMinZoom, int sourceMaxZoom )
{
int tileZoom = static_cast<int>( floor( scaleToZoom( mapScale ) ) );
int tileZoom = static_cast<int>( round( scaleToZoom( mapScale ) ) );

if ( tileZoom < sourceMinZoom )
tileZoom = sourceMinZoom;

0 comments on commit be95bd7

Please sign in to comment.