This object is in archive! 

"Valid for" in map properties

Evgeny Kurshev shared this problem 9 years ago
Solved

How does "Valid for" works?

I set it to "1" - i.e. 1 hour.

When I view map in Locus - I see old tiles from Locus cache. Tiles on server was updated several days ago.

Replies (5)

photo
1

Hello Evgeny,


it should work that when Locus tries to load tile older then one hour (in this case), it automatically starts to download new tile from web site. If this tile is not available (due to missing internet connection), old tile is used.


So you see old tiles even when internet connection is fully working? In this case, it should be an issue, but I hope this works as expected.


Btw. just to be sure . are you using online map and not same type of already downloaded "Personal" map?

photo
1

I have no downloaded personal maps ("No maps in list!" on personal tab in maps manager), only custom online maps and vector maps. And internet connection is ok. It is a pity, but look like an issue.


Tiles in Locus on several zoom:

https://files.melda.ru/hidden/Screenshot_2014-10-05-22-42-30.png

https://files.melda.ru/hidden/Screenshot_2014-10-05-22-42-45.png

https://files.melda.ru/hidden/Screenshot_2014-10-05-22-42-52.png

https://files.melda.ru/hidden/Screenshot_2014-10-05-22-42-59.png

Darker green - it is old tiles (earlier forest color on this maps was darker)

This location online: http://openstreetmap.ru/#map=16/55.5294/38.8417&layer=S

sqlitedb (65Mb) from phone and custom provider: https://files.melda.ru/hidden/locus-valid-for.zip


---


Some question about this feature:


I scroll map to region, where there are old tiles (older than "valid for" period) in cache. What I see?

1) instantly I see tile from cache, and when new tile succesfully downloaded - old tile on screen changing to new. If there is download error - old tile stay there.

2) Locus starting download of new tile, and while downloading in progress - I see nothing. If downloading successfull - Locus draw new tile, in case of downloading error - cached tile.

What description is true?


Is there way to set default "Valid for" in custom providers xml?

photo
1

Good day Evgeny,


such precise report. I'm impressed. Such report fulfill all my developers dreams :)), so thank you.


Unfortunately sometimes I don't understand, how I could made Locus.


SOAFKijf7u3YoL5BdClI


As you may see in the middle, one line that say "this tile has to be reloaded", is commented. Why? Don`t know. So thanks once more for report, issue found. So hope it will work as expected in next version.


And how it work.


- tile is loaded from database in all cases. If there is internet connection and not enabled "offline mode", it`s checked if tile is valid (by defined "valid for" time). If not, old tile should be still visible and should be replaced with new once the new is downloaded and saved.


I hope it will work as expected in next version. If not, immediately write me.

photo
1

Thanks! Now, waiting for the next version. This way of working (I see cached tile instantly anyway) - that's great.


And how about defining default "Valid for" in custom providers xml?

photo
1

ah forget to answer this ... it's not possible now. You have to modify this parameter manually directly in Locus.

Replies have been locked on this page!