diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-12-17 13:10:45 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-12-18 13:48:52 +0200 |
commit | 64a37ceb0547a6ac48196426c513a8fdd6e57f70 (patch) | |
tree | 84b436aed573d8509be1792f4e39c80b68b8834e /render-test/parser.cpp | |
parent | 2fd9d4a1feee88741d2a869c1b6333085e7fe58e (diff) | |
download | qtlocation-mapboxgl-64a37ceb0547a6ac48196426c513a8fdd6e57f70.tar.gz |
[test runner] Rendering a single tile in Tile mode
Diffstat (limited to 'render-test/parser.cpp')
-rw-r--r-- | render-test/parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render-test/parser.cpp b/render-test/parser.cpp index 7646b5b455..e58187eb15 100644 --- a/render-test/parser.cpp +++ b/render-test/parser.cpp @@ -497,9 +497,10 @@ TestMetadata parseTestMetadata(const TestPaths& paths, const Manifest& manifest) metadata.outputsImage = true; assert(testValue["mapMode"].IsString()); std::string mapModeStr = testValue["mapMode"].GetString(); - if (mapModeStr == "tile") + if (mapModeStr == "tile") { metadata.mapMode = mbgl::MapMode::Tile; - else if (mapModeStr == "continuous") { + metadata.size = {uint32_t(mbgl::util::tileSize), uint32_t(mbgl::util::tileSize)}; + } else if (mapModeStr == "continuous") { metadata.mapMode = mbgl::MapMode::Continuous; metadata.outputsImage = false; } else if (mapModeStr == "static") |