[ios] Do not draw native pin over cross-platform one.

This commit is contained in:
Alex Zolotarev 2012-09-01 21:20:47 +03:00 committed by Alex Zolotarev
parent 580797ec73
commit 554139c7b9

View file

@ -134,6 +134,9 @@
CGFloat const w = self.pinImage.bounds.size.width;
CGFloat const h = self.pinImage.bounds.size.height;
self.pinImage.frame = CGRectMake(pt.x - w/2, pt.y - h, w, h);
// Do not show pin if we're editing existing bookmark.
// @TODO move pin (and probably balloon drawing) to cross-platform code
self.pinImage.hidden = (m_rawBookmark.second != 0);
[view addSubview:self.pinImage];