From 22c07596a0c1e2cca12df730be4448bbe79be13d Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 10 Nov 2017 11:32:37 -0500 Subject: [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. --- src/mbgl/layout/symbol_layout.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mbgl/layout/symbol_layout.cpp') diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp index 09d8883544..d84b74d42a 100644 --- a/src/mbgl/layout/symbol_layout.cpp +++ b/src/mbgl/layout/symbol_layout.cpp @@ -314,9 +314,7 @@ void SymbolLayout::addFeature(const std::size_t index, if (avoidEdges && !inside) return; - // TODO set this to make api-gl work - const bool singleTileMode = false && mode == MapMode::Still; - if (singleTileMode || withinPlus0) { + if (mode == MapMode::Tile || withinPlus0) { symbolInstances.emplace_back(anchor, line, shapedTextOrientations, shapedIcon, layout.evaluate(zoom, feature), layoutTextSize, symbolInstances.size(), -- cgit v1.2.1