tiles-client
Download tiles from a tiles server and save them in a local file cache.
let client = new
.build;
let tiles = client.tiles;
It is the API user responsability to ensure compliance with the license of the tile server.
Download tiles from a tiles server and save them in a local file cache.
let client = tiles_client::ClientBuilder::new(
"com.examples.tiles_client",
"https://address.to.tile.server.org/{z}/{x}/{y}.png",
)
.build();
let tiles = client.tiles(
// Area
geo::Rect::new(
geo::Coord { x: -180.0, y: -80.0},
geo::Coord { x: 180.0, y: 80.0},
),
// Zoon level
1,
// Do not download tiles. Set to true to download tiles.
false,
);
It is the API user responsability to ensure compliance with the license of the tile server.