diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-12-04 17:43:21 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-12-07 09:53:36 -0800 |
commit | ca9d9bb85733f8127154cf34cb61e871fee91bdf (patch) | |
tree | 9c4972caeadf7cebc4abf515839b891697f32567 /src | |
parent | 5fb9fb1a3cf939ad265a6f63ce901d312e0a2534 (diff) | |
download | qtlocation-mapboxgl-ca9d9bb85733f8127154cf34cb61e871fee91bdf.tar.gz |
[core] Use wrapped bounds check for CustomTileLoader
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/style/custom_tile_loader.cpp | 2 |
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); |