diff --git a/pbfplugin.json b/pbfplugin.json index c5cc32e..2ccaac3 100644 --- a/pbfplugin.json +++ b/pbfplugin.json @@ -1,4 +1,4 @@ { - "Keys": [ "pbf" ], - "MimeTypes": [ "image/pbf" ] + "Keys": [ "mvt" ], + "MimeTypes": [ "application/vnd.mapbox-vector-tile" ] } diff --git a/pkg/pbfplugin.xml b/pkg/pbfplugin.xml new file mode 100644 index 0000000..2d2c009 --- /dev/null +++ b/pkg/pbfplugin.xml @@ -0,0 +1,9 @@ + + + + Mapbox Vector Tile + + + + + diff --git a/src/pbfplugin.cpp b/src/pbfplugin.cpp index 290bf1e..2011317 100644 --- a/src/pbfplugin.cpp +++ b/src/pbfplugin.cpp @@ -21,7 +21,7 @@ QImageIOPlugin::Capabilities PBFPlugin::capabilities(QIODevice *device, const QByteArray &format) const { if (device == 0) - return (format == "pbf") ? Capabilities(CanRead) : Capabilities(); + return (format == "mvt") ? Capabilities(CanRead) : Capabilities(); else return (device->isReadable() && PBFHandler::canRead(device)) ? Capabilities(CanRead) : Capabilities();