Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorFILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>2016-09-23 16:02:16 +0300
committerFILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>2016-09-23 16:32:45 +0300
commit573dcc5c5d57f667e789e506612a7cc3ae3e396e (patch)
tree6989aef2c44870673738156ba13e73544071112a /map
parentd3d31901b1b98c7dc1f6cebb6d5be69decd34710 (diff)
Add padding on the bounding box generated when ShowTrack framework function is called.
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 09e428f08e..3f1df6d483 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -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()