packages feed

osm-download 0.1.1 → 0.1.2

raw patch · 2 files changed

+10/−6 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Network.OSM: downloadBestFitTiles :: String -> (Lat a, Lon a) => [a] -> IO [[ByteString]]
+ Network.OSM: downloadBestFitTiles :: (Lat a, Lon a) => String -> [a] -> IO [[ByteString]]

Files

Network/OSM.hs view
@@ -128,14 +128,18 @@              in (x,y)  -- | The suggested copyright text in accordance with--- http://wiki.openstreetmap.org/wiki/Legal_FAQ+-- <http://wiki.openstreetmap.org/wiki/Legal_FAQ> copyrightText :: String copyrightText = "Tile images © OpenStreetMap (and) contributors, CC-BY-SA" --- | Takes the destination directory for the web content,--- the (Trail PtType), and uses the DrawOsm functions--- to generate an `osm.png' file showing the trail.-downloadBestFitTiles :: String -> (Lat a, Lon a) => [a] -> IO [[B.ByteString]]+-- | Takes the tile server base URL,+-- the set of coordinates that must appear within the map boundaries, and users+-- the 'downloadTiles' function to acquire all the necessary tiles.+--+-- The returned files should all be in an approriate grid for row/column display.+-- See the test files of Main.hs and Main2.hs for examples of Repa stiching tiles+-- into a single image or side by side display of individual tiles.+downloadBestFitTiles :: (Lat a, Lon a) => String -> [a] -> IO [[B.ByteString]] downloadBestFitTiles base points = do   let tiles = determineTileCoords points 16       zoom = fmap zoomCalc tiles
osm-download.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.1.1+Version:             0.1.2  -- A short (one-line) description of the package. Synopsis:            Download Open Street Map tiles