Skip to content
Permalink
Browse files

Server add min/max scale to symbol json export

  • Loading branch information
elpaso committed Oct 28, 2020
1 parent 8ba0606 commit c1240ded625c129ee2685b82451bcbec4673403f
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -716,6 +716,15 @@ QJsonObject QgsSymbolLegendNode::exportSymbolToJson( const QgsLegendSettings &se

QJsonObject json;
json[ QStringLiteral( "icon" ) ] = base64;
if ( mItem.scaleMaxDenom() > 0 )
{
json[ QStringLiteral( "scaleMaxDenom" ) ] = mItem.scaleMaxDenom();
}
if ( mItem.scaleMinDenom() > 0 )
{
json[ QStringLiteral( "scaleMinDenom" ) ] = mItem.scaleMinDenom();
}
mItem.scaleMaxDenom();
return json;
}

0 comments on commit c1240de

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