Skip to content

[Question] How is the code handling huge amount of tiles ? #170

Closed Answered by JaffaKetchup
idouiri9806 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @idouiri9806,

Great to hear that you like the project! To be fair, a lot of the heavy lifting is done by flutter_map and ObjectBox, but all the connecting components and tile generation for bulk downloading is done by us.


In browse caching, flutter_map asks the tile provider for a tile at some specific coordinates - it is up to FMTCTileProvider to get an image with these coordinates, as well as the URL template and other metadata. The logic internally is extremely complex, and difficult to explain linearly. Most of the logic is within internal_get_bytes.dart (in v10), which also calls on readTile and writeTile from the thread worker. The actual comparison of what tile should be used t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JaffaKetchup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants