forked from organicmaps/organicmaps-tmp
Add padding on the bounding box generated when ShowTrack framework function is called.
This commit is contained in:
parent
d3d31901b1
commit
573dcc5c5d
1 changed files with 6 additions and 1 deletions
|
@ -815,8 +815,13 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc)
|
|||
|
||||
void Framework::ShowTrack(Track const & track)
|
||||
{
|
||||
double const kPaddingScale = 1.2;
|
||||
|
||||
StopLocationFollow();
|
||||
ShowRect(track.GetLimitRect());
|
||||
auto rect = track.GetLimitRect();
|
||||
rect.Scale(kPaddingScale);
|
||||
|
||||
ShowRect(rect);
|
||||
}
|
||||
|
||||
void Framework::ClearBookmarks()
|
||||
|
|
Loading…
Add table
Reference in a new issue