summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-05-19 18:54:33 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2020-05-26 20:35:05 +0300
commitdf9d134bd9553bc2c11638109c63e8fdd4d77905 (patch)
tree1175fcb6390eeaae665d36661b72320c6f5b7b0b
parent705be8dbe06c91639f5491adab86a8961d98dedb (diff)
downloadqtlocation-mapboxgl-df9d134bd9553bc2c11638109c63e8fdd4d77905.tar.gz
Add isBounded getter for LatLngBounds::bounded
-rw-r--r--include/mbgl/util/geo.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp
index ae6c1550fa..568b6bb871 100644
--- a/include/mbgl/util/geo.hpp
+++ b/include/mbgl/util/geo.hpp
@@ -146,6 +146,8 @@ public:
sw.longitude() > ne.longitude();
}
+ bool isBounded() const { return bounded; }
+
bool crossesAntimeridian() const {
return (sw.wrapped().longitude() > ne.wrapped().longitude());
}