Skip to content
Permalink
Browse files

Fix label priority when using non-pixel sizes

  • Loading branch information
nyalldawson committed Sep 7, 2020
1 parent 93d25d6 commit 1d1e1cc29d47621b14f0bcd4be614db546224b1f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/vectortile/qgsmapboxglstyleconverter.cpp
@@ -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 );

0 comments on commit 1d1e1cc

Please sign in to comment.
You can’t perform that action at this time.