summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2015-10-25 08:20:13 +0100
committerJiří Techet <techet@gmail.com>2015-10-27 09:43:32 +0100
commit2123b6041bbdf0bb19210d9c6dee2ddd05bdea33 (patch)
treeb4c76f2357698985df41198cd7f0318c1ea80412
parent68e481c07a73b9755f2bb4cc30a57d3dc53407e4 (diff)
downloadlibchamplain-2123b6041bbdf0bb19210d9c6dee2ddd05bdea33.tar.gz
defines: Increase precision of min/max latitude.
The previous rounded value slightly exceeds the expected bounding box, making get_tile_bounds function return a negative min_y at high zoom levels.
-rw-r--r--champlain/champlain-defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/champlain/champlain-defines.h b/champlain/champlain-defines.h
index 8b6f081..e8a464f 100644
--- a/champlain/champlain-defines.h
+++ b/champlain/champlain-defines.h
@@ -32,8 +32,8 @@
* Using a square aspect ratio for the map, the maximum latitude shown is
* approximately 85.05113 degrees.
*/
-#define CHAMPLAIN_MIN_LATITUDE -85.05113
-#define CHAMPLAIN_MAX_LATITUDE 85.05113
+#define CHAMPLAIN_MIN_LATITUDE -85.0511287798
+#define CHAMPLAIN_MAX_LATITUDE 85.0511287798
#define CHAMPLAIN_MIN_LONGITUDE -180.0
#define CHAMPLAIN_MAX_LONGITUDE 180.0