Skip to content
Permalink
Browse files
[vectortile] Fix erroneous zoom level determination
  • Loading branch information
nirvn authored and nyalldawson committed Nov 23, 2021
1 parent 35aa4a1 commit 372ae043a6877d7b4210b6791f199357ffe461dc
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 372ae04

Please sign in to comment.