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-06 19:45:27 -0800
commitef2436527c94cbab4be12736f733c1bf25be32be (patch)
tree9c4972caeadf7cebc4abf515839b891697f32567
parentef08ad29a4f248966704d178759be3ba857c101d (diff)
downloadqtlocation-mapboxgl-upstream/latlngbounds-anitmeridian.tar.gz
[core] Use wrapped bounds check for CustomTileLoaderupstream/latlngbounds-anitmeridian
-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);