-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mvt] mapbox vector tiles conversion improvements #58154
Conversation
@@ -453,7 +456,7 @@ bool QgsMapBoxGlStyleConverter::parseFillLayer( const QVariantMap &jsonLayer, Qg | |||
fillSymbol->setStrokeStyle( Qt::NoPen ); | |||
} | |||
|
|||
if ( fillColor.isValid() ) | |||
if ( fillColor.isValid() || colorIsDataDefined ) | |||
{ | |||
fillSymbol->setFillColor( fillColor ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If fillColor isn't valid, then we'll be setting the fill symbol to an invalid QColor here... I don't think we want to do that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would you do? Move the check and do an else if?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what it's trying to do here? I think ideally it'd be set to eg the first colour in the list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just trying to avoid to set "no brush" if it's data defined. So not setting it might be sufficient.
Can you add tests for this? |
f716a9a
to
6b078b8
Compare
tests added |
Co-authored-by: Mathieu Pellerin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
from this style (https://vectortiles.geo.admin.ch/styles/ch.swisstopo.lightbasemap.vt/style.json):