diff options
author | Ansis Brammanis <ansis@mapbox.com> | 2019-08-20 04:35:51 -0400 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-08-20 13:34:22 +0300 |
commit | 888d2b06ec95514aea02fa36569d9c84b3b2fa31 (patch) | |
tree | 583b9312a37fc82072776c41458201f8cc08642d /src | |
parent | 7d9b54a573a196d9120226c17d8dc30384f207b8 (diff) | |
download | qtlocation-mapboxgl-888d2b06ec95514aea02fa36569d9c84b3b2fa31.tar.gz |
speed up fading when zooming even more
And a linear adjustment seems to make more sense.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/text/placement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index 5e0d04cc41..9f9d948b94 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -942,7 +942,7 @@ float Placement::zoomAdjustment(const float zoom) const { // adjustment is used to reduce the fade duration for symbols while zooming out quickly. // It is also used to reduce the interval between placement calculations. Reducing the // interval between placements means collisions are discovered and eliminated sooner. - return std::max(0.0, 1.0 - std::pow(2.0, zoom - placementZoom)); + return std::max(0.0, (placementZoom - zoom) / 1.5); } bool Placement::hasTransitions(TimePoint now) const { |