Skip to content

Commit

Permalink
Fix label priority when using non-pixel sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 7, 2020
1 parent 93d25d6 commit 1d1e1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vectortile/qgsmapboxglstyleconverter.cpp
Expand Up @@ -887,7 +887,7 @@ void QgsMapBoxGlStyleConverter::parseSymbolLayer( const QVariantMap &jsonLayer,
if ( textSize >= 0 )
{
// TODO -- this probably needs revisiting -- it was copied from the MapTiler code, but may be wrong...
labelSettings.priority = std::min( textSize / 3, 10.0 );
labelSettings.priority = std::min( textSize / ( context.pixelSizeConversionFactor() * 3 ), 10.0 );
}

labelSettings.setFormat( format );
Expand Down

0 comments on commit 1d1e1cc

Please sign in to comment.