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

Commit

Permalink
[core] Don't redo placement for zoom changes at low pitch.
Browse files Browse the repository at this point in the history
 Fixes issue #9996
 Port of GL-JS #5284
  • Loading branch information
ChrisLoer committed Sep 14, 2017
1 parent c795d96 commit 8aa47e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbgl/text/placement_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class PlacementConfig {
bool operator==(const PlacementConfig& rhs) const {
return angle == rhs.angle &&
pitch == rhs.pitch &&
cameraToCenterDistance == rhs.cameraToCenterDistance &&
(pitch * util::RAD2DEG < 25 || cameraToTileDistance == rhs.cameraToTileDistance) &&
debug == rhs.debug;
debug == rhs.debug &&
((pitch * util::RAD2DEG < 25) ||
(cameraToCenterDistance == rhs.cameraToCenterDistance && cameraToTileDistance == rhs.cameraToTileDistance));
}

bool operator!=(const PlacementConfig& rhs) const {
Expand Down

0 comments on commit 8aa47e5

Please sign in to comment.