Skip to content

Commit

Permalink
Fix stops parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Sep 13, 2020
1 parent 2181b72 commit 5acde82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/vectortile/qgsmapboxglstyleconverter.cpp
Expand Up @@ -1587,7 +1587,11 @@ QString QgsMapBoxGlStyleConverter::parseStops( double base, const QVariantList &
tz.toString(),
interpolateExpression( bz.toDouble(), tz.toDouble(), bv.toDouble(), tv.toDouble(), base, multiplier ) );
}
caseString += QStringLiteral( "END" );

const QVariant z = stops.last().toList().value( 0 );
const QVariant v = stops.last().toList().value( 1 );
caseString += QStringLiteral( "WHEN @zoom_level > %1 "
"THEN %2 END" ).arg( z.toString() ).arg( v.toDouble() * multiplier );
return caseString;
}

Expand Down

0 comments on commit 5acde82

Please sign in to comment.