[core] Split MapMode::Still into Static and Tile
`Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
This commit is contained in:
committed by
Chris Loer
parent
5bdee52e5c
commit
22c07596a0
@@ -32,7 +32,7 @@ public:
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
Map map { frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapMode::Still };
|
||||
threadPool, MapMode::Static};
|
||||
|
||||
void checkRendering(const char * name) {
|
||||
test::checkImage(std::string("test/fixtures/annotations/") + name,
|
||||
|
||||
@@ -27,7 +27,7 @@ TEST(API, RenderWithoutCallback) {
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
|
||||
auto map = std::make_unique<Map>(frontend, MapObserver::nullObserver(), frontend.getSize(),
|
||||
pixelRatio, fileSource, threadPool, MapMode::Still);
|
||||
pixelRatio, fileSource, threadPool, MapMode::Static);
|
||||
map->renderStill(nullptr);
|
||||
|
||||
// Force Map thread to join.
|
||||
|
||||
@@ -90,7 +90,7 @@ TEST(CustomLayer, Basic) {
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapMode::Still);
|
||||
threadPool, MapMode::Static);
|
||||
map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));
|
||||
map.setLatLngZoom({ 37.8, -122.5 }, 10);
|
||||
map.getStyle().addLayer(std::make_unique<CustomLayer>(
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
Map map { frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapMode::Still };
|
||||
threadPool, MapMode::Static};
|
||||
};
|
||||
|
||||
} // end namespace
|
||||
|
||||
@@ -29,7 +29,7 @@ TEST(API, RecycleMapUpdateImages) {
|
||||
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
auto map = std::make_unique<Map>(frontend, MapObserver::nullObserver(), frontend.getSize(),
|
||||
pixelRatio, fileSource, threadPool, MapMode::Still);
|
||||
pixelRatio, fileSource, threadPool, MapMode::Static);
|
||||
|
||||
EXPECT_TRUE(map);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ TEST(API, ZoomHistory) {
|
||||
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
auto map = std::make_unique<Map>(frontend, MapObserver::nullObserver(), frontend.getSize(),
|
||||
pixelRatio, fileSource, threadPool, MapMode::Still);
|
||||
pixelRatio, fileSource, threadPool, MapMode::Static);
|
||||
|
||||
EXPECT_TRUE(map);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user