[libchamplain] defines: Increase precision of min/max latitude.



commit 2123b6041bbdf0bb19210d9c6dee2ddd05bdea33
Author: Rémy Oudompheng <oudomphe phare normalesup org>
Date:   Sun Oct 25 08:20:13 2015 +0100

    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.

 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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]