This object is in archive! 

Use smarter positioning of popup labels when near edge of screen

Andrew Heard shared this idea 8 years ago
Completed

If I tap on a track or point near the bottom or right edge of the screen the popup label (if set to pop up) will be positioned half off the screen - see example here. This can be really annoying while cycling. The map has to be manually dragged so the track or point is closer to middle of screen, then tapped.


I suggest smarter positioning of popup labels - if the label (normally below and/or to right of tap location) will be partially off the screen, then instead display the label above and/or to left of tap location.

Replies (10)

photo
1

Hm, on my device with Locus 3.13.1 after tapping on a waypoint near the right or buttom edge, the map is automatically moved a little so that the popup is fully visible. Can you describe more precisely how to reproduce?

photo
1

Extra description is not needed I think. This problem happen not on all devices, depend on screen size. I have a problem to compute precise size of small dialog before it is fully visible, so I cannot move map immediately to exact position. Currently solution move map a little bit to +- make popup visible. But it is not perfect now, I'm well aware of it.

photo
1

The map moves to the left, a little bit more and it would be perfect

e9f273359c630064edacb6b41e4db7cc

photo
1

Hello guys,


in next version, this "feature" will be improved. It won't still be perfect, but a lot better I hope.


New system will be based on predefined maximum sizes of these labels and test if this "max" label is able to be fully visible. To compute will be also considered left and bottom buttons, so labels should not be hidden behind them.


Let me know after some time of using, if results are better. Thank you.

photo
2

Ah, I did some more improvements and now it will be perfect I hope ;). So in next version (probably next week).

photo
1

A great little news years gift to us all. Happy New Year Menion and all the hard working Locus team.

photo
1

fixed in 3.14.2 - just beautiful.

photo
1

Perfect :)

photo
1

Sorry but for me is this in 3.14.2 NOT perfekt

See the steps

1. the initial state

afb24b98283dd69bd5c17d20d0f23c01


2. now the first tab on the track, the maps move and the popup is full visible

08e622bed01aa1fa1d025b50d664dddc


3. fine, now the second tab on the track, NO move of the map and the popup is NOT full visible

f12b4c75d77b0158f22c2cae05278825

photo
1

Map is not moving in this case, it is an intent. But not sure now if correct.

I think that main reason was to prevent some accident movement of map.

EDIT: "fixed"

photo
1

confirm behavior

you have to deselect label (click anywhere on map) so next label is centered again, but no further

photo
2

With testversion 3.14.2.4 it is now perfekt.

Thanks Menion

photo
1


  1. Menion


    Ah, I did some more improvements and now it will be perfect I hope


nearly perfect ;-)

if rotate screen is activated and point is near edge, label is not centered enough

45ede1c4bc0ead53cb1c6162df8408ab

photo
1

Hmm I though you won't be angry on me, if I leave this as is. Mainly I want's to keep map center in center of screen after rotate and do not modify popup position in all cases. Thanks

photo
1

no i´m not angry ;-)

Replies have been locked on this page!