Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix some tile bounding. #2

Merged
merged 1 commit into from

2 participants

@TomMD

DMS coordinates (as given by the Lat an Lon types) can be negative, so the initial maximums should be less than 180.

@robstewart57 robstewart57 merged commit 5b7dd46 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 3, 2011
  1. @TomMD

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

    TomMD authored
    …o the initial maximums should be less than 180.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Data/GPS/Gps2HtmlReport/DrawOsm.hs
View
2  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
Something went wrong with that request. Please try again.