From df9d134bd9553bc2c11638109c63e8fdd4d77905 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Tue, 19 May 2020 18:54:33 +0300 Subject: Add isBounded getter for LatLngBounds::bounded --- include/mbgl/util/geo.hpp | 2 ++ 1 file changed, 2 insertions(+) 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()); } -- cgit v1.2.1