summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-12-04 17:43:21 -0800
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-12-07 09:53:36 -0800
commitca9d9bb85733f8127154cf34cb61e871fee91bdf (patch)
tree9c4972caeadf7cebc4abf515839b891697f32567
parent5fb9fb1a3cf939ad265a6f63ce901d312e0a2534 (diff)
downloadqtlocation-mapboxgl-ca9d9bb85733f8127154cf34cb61e871fee91bdf.tar.gz
[core] Use wrapped bounds check for CustomTileLoader
-rw-r--r--src/mbgl/style/custom_tile_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/custom_tile_loader.cpp b/src/mbgl/style/custom_tile_loader.cpp
index af091be5cf..76248b84bd 100644
--- a/src/mbgl/style/custom_tile_loader.cpp
+++ b/src/mbgl/style/custom_tile_loader.cpp
@@ -81,7 +81,7 @@ void CustomTileLoader::invalidateTile(const CanonicalTileID& tileID) {
void CustomTileLoader::invalidateRegion(const LatLngBounds& bounds, Range<uint8_t> ) {
for (auto idtuple= tileCallbackMap.begin(); idtuple != tileCallbackMap.end(); idtuple++) {
const LatLngBounds tileBounds(idtuple->first);
- if (tileBounds.intersects(bounds) || bounds.contains(tileBounds) || tileBounds.contains(bounds)) {
+ if (tileBounds.intersects(bounds, LatLng::Wrapped) || bounds.contains(tileBounds, LatLng::Wrapped) || tileBounds.contains(bounds, LatLng::Wrapped)) {
for (auto iter = idtuple->second.begin(); iter != idtuple->second.end(); iter++) {
auto actor = std::get<2>(*iter);
actor.invoke(&CustomGeometryTile::invalidateTileData);