forked from organicmaps/organicmaps
Merge pull request #4190 from Mapotempo/mt-bbox-padding
Add padding on the bounding box when focus on a track.
This commit is contained in:
commit
39b80288db
1 changed files with 6 additions and 1 deletions
|
@ -817,8 +817,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