This object is in archive! 

Switching to Personal map sometimes wrongly asks for centering map out of current view.

elmuSSo shared this problem 10 years ago
Solved

When user switches between maps, sometimes he is being asked: "Selected map out of current view, Center?"


I discovered that for some maps (maybe all), this question is asked even when a map IS in a current view, BUT a zoom is not big (in one example, the question was not appearing on zooms bigger than 12, but started to appear on zoom 12, 11, 10 and so on ).


I`m almost sure, that bounds for each map are based on somevery high or very low zoom level. And when using a different zoom, the bounds are slightly different than the assumed ones.

Replies (6)

photo
0

Any acknowledgement?

photo
0

I received report from one guy on same problem together with sample map. After few hours of testing I found a problem, but not a way how to solve it ...


Problem is that Android database is sooooo slow. When you add new SQlite map into Locus, I need to initialize it. This means I need mainly to get a list of zoom levels and it`s bounding boxes. And this is a problem. Simple query on min(), max() on database, that have no separate index over x and y column, take eternity ...


and creating index on device for 2GB map take also eternity and also is there risk that by index will map grow to more then 2GB


so I know about it now, but currently have no simple solution

photo
0

Hmm.


So if its not solvable, maybe change it into a different feature:


If user will realise that the map is off the screen, he will long-click on map icon to quickly jump to its centre. You already have a code for that so it should be a problem. Just add a quick centering option.

photo
0

uff together with Peter we found a solution. not perfect, but usable and working. So you`ll see in next version. Just keep in mind, that you`ll have to delete Locus/cache/maps directory to reinitialize all maps.


I`ll not do this automatically, because most users do not have these problems (it occur only on non-rectangular) maps

photo
0

"most users" :P


ok. I will test it:)

photo
0

I`ve tested on test version 2.13.1.2 and confirmed that the problem has gone.


Yes. I`m not a "most users", too. :-)

Replies have been locked on this page!