Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
show symbols at z0, fix #1279
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jul 1, 2015
1 parent ad91368 commit 176e42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mbgl/renderer/symbol_bucket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ template <typename Buffer, typename GroupType>
void SymbolBucket::addSymbols(Buffer &buffer, const SymbolQuads &symbols, float scale, const bool keepUpright, const bool alongLine) {
const float zoom = collision.zoom;

const float placementZoom = std::log(scale) / std::log(2) + zoom;
const float placementZoom = std::fmax(std::log(scale) / std::log(2) + zoom, 0);

for (const auto& symbol : symbols) {
const auto &tl = symbol.tl;
Expand Down

1 comment on commit 176e42c

@incanus
Copy link
Contributor

@incanus incanus commented on 176e42c Jul 1, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ansis

Please sign in to comment.