diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-11-10 16:02:11 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-11-17 10:05:15 -0800 |
commit | 4f0e5374c37d1138e958857022f542cd0dc47e59 (patch) | |
tree | f51b04a8067568c4184ed35f28518f957d7098d6 /src/mbgl/util | |
parent | 22c07596a0c1e2cca12df730be4448bbe79be13d (diff) | |
download | qtlocation-mapboxgl-4f0e5374c37d1138e958857022f542cd0dc47e59.tar.gz |
[core] Skip fade animation for placed symbols that are currently offscreen.
Don't mark items that are outside the collision grid range as placed.
Requires new ignore because GL JS issue #5654 allows insertion of symbols outside the CollisionIndex range, and those symbols can cascade in to affect items within the viewport.
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/grid_index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/grid_index.cpp b/src/mbgl/util/grid_index.cpp index 1e1dcf0ed5..afd469501d 100644 --- a/src/mbgl/util/grid_index.cpp +++ b/src/mbgl/util/grid_index.cpp @@ -103,7 +103,7 @@ bool GridIndex<T>::hitTest(const BCircle& queryBCircle) const { template <class T> bool GridIndex<T>::noIntersection(const BBox& queryBBox) const { - return queryBBox.max.x < 0 || queryBBox.min.x > width || queryBBox.max.y < 0 || queryBBox.min.y > height; + return queryBBox.max.x < 0 || queryBBox.min.x >= width || queryBBox.max.y < 0 || queryBBox.min.y >= height; } template <class T> |