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/iphone
diff options
context:
space:
mode:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-02-18 14:02:02 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:52 +0300
commit0c5c34041577d15208edd4270389e7dc75ede74c (patch)
treee13306033b5a940cd493f372072f0816bb2d9667 /iphone
parentc7cf812d7b7be015079407d87636e907a5d18285 (diff)
[iOS] balloon position fix, while auto follow mode
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/MapViewController.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm
index 032f349b53..03548bd3ba 100644
--- a/iphone/Maps/Classes/MapViewController.mm
+++ b/iphone/Maps/Classes/MapViewController.mm
@@ -78,6 +78,9 @@
{
[m_myPositionButton setImage:[UIImage imageNamed:@"location-selected.png"] forState:UIControlStateSelected];
}
+
+ f.OnLocationUpdate(info);
+
if (m_balloonView.isCurrentPosition && m_balloonView.isDisplayed)
{
m2::PointD newCenter(MercatorBounds::LonToX(info.m_longitude),
@@ -85,7 +88,6 @@
m_balloonView.globalPosition = CGPointMake(newCenter.x, newCenter.y);
[m_balloonView updatePosition:self.view atPoint:[(EAGLView *)self.view globalPoint2ViewPoint:m_balloonView.globalPosition]];
}
- f.OnLocationUpdate(info);
}
- (void) onCompassUpdate:(location::CompassInfo const &)info