From c6757b9a9b004c566c9ff0b0715d336e668e1410 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 1 Mar 2016 14:17:21 +0000 Subject: [core] Added DEGREES_MAX as constant value --- include/mbgl/util/geo.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/mbgl/util/geo.hpp') diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 5636cd0bdf..755abeda21 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -33,7 +33,7 @@ public: coordinate so that interpolating between the two endpoints will cross it. */ void unwrapForShortestPath(const LatLng& start) { if (std::abs(start.longitude) + std::abs(longitude) > util::LONGITUDE_MAX) { - longitude += (start.longitude > 0 && longitude < 0) ? 360 : -360; + longitude += (start.longitude > 0 && longitude < 0) ? util::DEGREES_MAX : -util::DEGREES_MAX; } } -- cgit v1.2.1