diff options
-rw-r--r-- | src/mbgl/layout/symbol_layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp index 387bb7fb00..351858f6f8 100644 --- a/src/mbgl/layout/symbol_layout.cpp +++ b/src/mbgl/layout/symbol_layout.cpp @@ -313,8 +313,8 @@ void SymbolLayout::addFeature(const SymbolFeature& feature, poly.push_back(r); } - // 16 here represents 2 pixels - auto poi = mapbox::polylabel(poly, 16.0); + // 1 pixel worth of precision, in tile coordinates + auto poi = mapbox::polylabel(poly, double(util::EXTENT / util::tileSize)); Anchor anchor(poi.x, poi.y, 0, minScale); addSymbolInstance(polygon[0], anchor); } |