Permalink
Browse files

DMS coordinates (as given by the Lat an Lon types) can be negative, s…

…o the initial maximums should be less than 180.
  • Loading branch information...
1 parent 0d124ae commit 62d20b51a9414924d52de0b314e5eaab78538511 @TomMD TomMD committed Sep 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Data/GPS/Gps2HtmlReport/DrawOsm.hs
@@ -33,7 +33,7 @@ tileNumber latitude longitude =
secant a = 1 / cos a
-initCoords = TileCoords {minX = 1000000, maxX = 0, minY = 1000000, maxY = 0}
+initCoords = TileCoords {minX = 1000000, maxX = -1000, minY = 1000000, maxY = -1000}
determineTiles :: [WptType] -> TileCoords -> TileCoords
determineTiles [] _ = initCoords

0 comments on commit 62d20b5

Please sign in to comment.