Skip to content

Commit

Permalink
Search sprite file relative to style file (if sprite url is not http)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and nyalldawson committed Apr 11, 2023
1 parent c6eec2a commit 9233530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/vectortile/qgsvectortilelayerproperties.cpp
Expand Up @@ -328,7 +328,9 @@ void QgsVectorTileLayerProperties::loadStyle()

//load sprites
QVariantMap styleDefinition = QgsJsonUtils::parseJson( content ).toMap();
QgsVectorTileUtils::loadSprites( styleDefinition, context );

QFileInfo fi( dlg.filePath() );
QgsVectorTileUtils::loadSprites( styleDefinition, context, QStringLiteral( "file://" ) + fi.absolutePath() );

QgsMapBoxGlStyleConverter converter;

Expand Down

0 comments on commit 9233530

Please sign in to comment.