forked from organicmaps/organicmaps
[ios] Hide bookmark on the click outside of it
This commit is contained in:
parent
897b617645
commit
72df6a9c28
1 changed files with 7 additions and 5 deletions
|
@ -139,11 +139,13 @@
|
|||
{
|
||||
if (m_bookmark.isDisplayed)
|
||||
[m_bookmark hide];
|
||||
|
||||
CGPoint const pixelPos = [point CGPointValue];
|
||||
CGPoint const globalPos = [self viewPoint2GlobalPoint:pixelPos];
|
||||
m_bookmark.globalPosition = globalPos;
|
||||
[m_bookmark showInView:self.view atPoint:pixelPos];
|
||||
else
|
||||
{
|
||||
CGPoint const pixelPos = [point CGPointValue];
|
||||
CGPoint const globalPos = [self viewPoint2GlobalPoint:pixelPos];
|
||||
m_bookmark.globalPosition = globalPos;
|
||||
[m_bookmark showInView:self.view atPoint:pixelPos];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
Loading…
Add table
Reference in a new issue