Skip to content
Permalink
Browse files
[vectortile] Fix mapbox gl convertor handling of fill-outline-color w…
…hen fill-color is expression driven
  • Loading branch information
nirvn authored and nyalldawson committed Nov 19, 2021
1 parent bec5836 commit 8e46f2ca6afc59424557353bb59b4bbbd8d0c5da
Showing with 4 additions and 7 deletions.
  1. +4 −7 src/core/vectortile/qgsmapboxglstyleconverter.cpp
@@ -232,15 +232,12 @@ bool QgsMapBoxGlStyleConverter::parseFillLayer( const QVariantMap &jsonLayer, Qg
{
if ( !jsonPaint.contains( QStringLiteral( "fill-outline-color" ) ) )
{
// fill-outline-color
if ( fillColor.isValid() )
fillOutlineColor = fillColor;
else
{
// use fill color data defined property
if ( ddProperties.isActive( QgsSymbolLayer::PropertyFillColor ) )
ddProperties.setProperty( QgsSymbolLayer::PropertyStrokeColor, ddProperties.property( QgsSymbolLayer::PropertyFillColor ) );
}

// match fill color data defined property when active
if ( ddProperties.isActive( QgsSymbolLayer::PropertyFillColor ) )
ddProperties.setProperty( QgsSymbolLayer::PropertyStrokeColor, ddProperties.property( QgsSymbolLayer::PropertyFillColor ) );
}
else
{

0 comments on commit 8e46f2c

Please sign in to comment.