Skip to content

Commit

Permalink
use combobox for "type" metadata in the Write vector tiles (MBTiles)
Browse files Browse the repository at this point in the history
algorithm (fix #46685)
  • Loading branch information
alexbruy authored and nyalldawson committed Jan 11, 2022
1 parent 824e8ad commit bb37ea1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/analysis/processing/qgsalgorithmwritevectortiles.cpp
Expand Up @@ -157,7 +157,14 @@ void QgsWriteVectorTilesMbtilesAlgorithm::initAlgorithm( const QVariantMap & )
addParameter( new QgsProcessingParameterString( QStringLiteral( "META_DESCRIPTION" ), QObject::tr( "Metadata: Description" ), QVariant(), false, true ) );
addParameter( new QgsProcessingParameterString( QStringLiteral( "META_ATTRIBUTION" ), QObject::tr( "Metadata: Attribution" ), QVariant(), false, true ) );
addParameter( new QgsProcessingParameterString( QStringLiteral( "META_VERSION" ), QObject::tr( "Metadata: Version" ), QVariant(), false, true ) );
addParameter( new QgsProcessingParameterString( QStringLiteral( "META_TYPE" ), QObject::tr( "Metadata: Type" ), QVariant(), false, true ) );
std::unique_ptr< QgsProcessingParameterString > metaTypeParam = std::make_unique< QgsProcessingParameterString >( QStringLiteral( "META_TYPE" ), QObject::tr( "Metadata: Type" ), QVariant(), false, true );
metaTypeParam->setMetadata( {{
QStringLiteral( "widget_wrapper" ), QVariantMap(
{{QStringLiteral( "value_hints" ), QStringList() << QStringLiteral( "overlay" ) << QStringLiteral( "baselayer" ) }}
)
}
} );
addParameter( metaTypeParam.release() );
addParameter( new QgsProcessingParameterString( QStringLiteral( "META_CENTER" ), QObject::tr( "Metadata: Center" ), QVariant(), false, true ) );
}

Expand Down

0 comments on commit bb37ea1

Please sign in to comment.