Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[vectortile] Fix erroneous zoom level determination
  • Loading branch information
nirvn authored and nyalldawson committed Nov 22, 2021
1 parent eb089c3 commit b085028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsvectortileutils.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit b085028

Please sign in to comment.