diff options
author | Rémy Oudompheng <oudomphe@phare.normalesup.org> | 2015-10-25 08:20:13 +0100 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2015-10-27 09:43:32 +0100 |
commit | 2123b6041bbdf0bb19210d9c6dee2ddd05bdea33 (patch) | |
tree | b4c76f2357698985df41198cd7f0318c1ea80412 | |
parent | 68e481c07a73b9755f2bb4cc30a57d3dc53407e4 (diff) | |
download | libchamplain-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.h | 4 |
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 |