Introduction
Last updated
Last updated
© Luka Stillingfleet (JaffaKetchup)
FMTC also provides the ability to bulk download areas of maps in one-shot, known as 'regions'. There are multiple different types/shapes of regions available: .
Before using FMTC, especially to bulk download or import/export, ensure you comply with the appropriate restrictions and terms of service set by your tile server. Failure to do so may lead to any punishment, at the tile server's discretion.
This library and/or the creator(s) are not responsible for any violations you make using this package.
For example, OpenStreetMap's tile server forbids bulk downloading: https://operations.osmfoundation.org/policies/tiles. And Mapbox has restrictions on importing/exporting from outside of the user's own device.
For testing purposes, check out the testing tile server included in the FMTC project: Testing Tile Server.
Downloading is extremely efficient and fast, and uses multiple threads and isolates to achieve write speeds of hundreds of tiles per second (if the network/server speed allows). After downloading, no extra setup is needed to use them in a map (other than the usual flutter_map Integration).
It is also simple to understand and implement:
Convert that region into a downloadable region ↳ Optionally, check the number of tiles in the region before downloading
Start downloading that region ↳ Optionally, when testing, try the miniature tile server
Listen for progress events to update your user
Optionally, control (pause/resume/cancel) the download