Skip to content
Permalink
Browse files
[vectortile] Fix erroneous zoom level determination
  • Loading branch information
nirvn authored and nyalldawson committed Nov 22, 2021
1 parent eb089c3 commit b085028a65983042b5336ace2291e6a034801bf6
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 b085028

Please sign in to comment.