hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Wrong positions of markers if the MapView frame is modify. #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Each time the MapView frame is modified (like Portrait <-> Landscape) we should 
update the 
markers positions I guess.

A possible way to fix this :

--- RMMapView.m (revision 217)
+++ RMMapView.m (working copy)
@@ -548,6 +548,8 @@
   // only change if the frame changes AND there is contents
   if (!CGRectEqualToRect(r, frame) && contents) {
     [contents setFrame:frame];
+    [[contents overlay] correctPositionOfAllSublayers];
   }
 }

Original issue reported on code.google.com by amne...@mac.com on 4 Mar 2009 at 1:51

GoogleCodeExporter commented 8 years ago
Wouldn't this make more sense to be called inside the RMMapContent's setFrame?

Original comment by Quazie on 4 Mar 2009 at 2:06

GoogleCodeExporter commented 8 years ago
I wonder if Issue 43 and Issue 54 are the same bug as this one?

Original comment by halmuel...@gmail.com on 4 Mar 2009 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by halmuel...@gmail.com on 4 Mar 2009 at 6:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
That is definitely the same problem as Issue 40

Original comment by josephhu...@gmail.com on 4 Mar 2009 at 6:27

GoogleCodeExporter commented 8 years ago
Fix is in issue63 branch, r230

Original comment by Quazie on 4 Mar 2009 at 8:43

GoogleCodeExporter commented 8 years ago
Multiple issues may be resolved by r231. Please do a checkout of 
/svn/branches/issue63 and test 
against that branch.

Original comment by halmuel...@gmail.com on 4 Mar 2009 at 9:41

GoogleCodeExporter commented 8 years ago
corrected by r241

Original comment by halmuel...@gmail.com on 6 Mar 2009 at 5:07