Can't update map tiles

myneur shared this problem 5 years ago
Solved

It is not possible to update the map when all tiles are already downloaded. It works only if there are any tiles missing so far. I want to update the existing tiles because they became outdated.

See the video. Once I select a sqlite map file to update and confirm the download, it repetitively starts to count tiles to download forever without any outcome.

Comments (7)

photo
1

Hello myneur,


interesting issue. It is caused by fact, that you select area for a download, which is already downloaded and result of calculate was exactly "0". Issue is fixed now.

photo
1

Yes, that is the case because the count does not take into account overwriting tiles older than X days.


Thanks for the fix. m

photo
1

Really? It should ... hmm I'm checking code in Locus, and even a "counter" should really correctly count required tiles!

photo
photo
1

Yes, you can see it in the video: all the tiles are older than a day as configured, so those are subject to update, but the counter still runs in circle. (In the current version).

photo
1

Hmm I'm testing it quite precisely and seems that Locus computes everything correctly (except reported issue).


Example: I have one map which was downloaded 7 days ago. When I try to update this map with same method, for

- disabled "Overwrite tiles older", I get "Download: 0, downloaded: 45"

- for enable "Overwrite older then 10 days", I get exactly same result

- for enable "Overwrite older then 5 days", "Download: 45, downloaded: 0"


which I think is correct.


So question is, how old is your map and if map was downloaded with Locus. If is older then around 3 years, this method may not work. If map was not downloaded with Locus, this method will definitely not work.

photo
1

Ha, that might be the case: the map was not downloaded by Locus. I would say that in that case, if Locus can not find the date of the tiles, it should try to overwrite everything.

photo
1

Hmm cannot agree here. Because my best interest is to limit downloading of map tiles to save map servers, I rather improve current system. So in next version, you may define also age of tiles to "0 days", which will cause overwriting all existing tiles, no matter how old they are.


I'll also forward this to Michal, who will improve a manual. It is usable for you?

photo
1

That is OK. Thanks, m