yy20111011659 / route-me

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

If you pan around the earth, markers disappear #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Pan right around the earth when there's a marker on the map.

What is the expected output? What do you see instead?

Markers disappear. [overlay correctPositionOfAllSublayers] should be called
when the map wraps around.

Original issue reported on code.google.com by jose...@gmail.com on 20 Nov 2008 at 2:43

GoogleCodeExporter commented 8 years ago
Hi Joseph,

Can you figure this one out? As a backup I am applying the [overlay
correctPositionOfAllSublayers] but I imagine it is a very expensice operation as
markers increases in number.

Olivier

Original comment by obrand69@gmail.com on 31 Dec 2008 at 6:58

GoogleCodeExporter commented 8 years ago

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

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
[deleted comment]
GoogleCodeExporter commented 8 years ago
The RMProjection does the wrapping, but the contents never check when wrapping 
occurs.

The three move functions in RMMapContents are:

- (void)moveToLatLong: (CLLocationCoordinate2D)latlong
{
    RMXYPoint aPoint = [projection latLongToPoint:latlong];
    [self moveToXYPoint: aPoint];
}
- (void)moveToXYPoint: (RMXYPoint)aPoint
{
    [mercatorToScreenProjection setXYCenter:aPoint];
    [overlay correctPositionOfAllSublayers];
    [tileLoader reload];
    [renderer setNeedsDisplay];
}

- (void)moveBy: (CGSize) delta
{
    [mercatorToScreenProjection moveScreenBy:delta];
    [imagesOnScreen moveBy:delta];
    [tileLoader moveBy:delta];
    [overlay moveBy:delta];
    [renderer setNeedsDisplay];
}

I'm unsure why moveToXYPoint has a correctPositionOfAllSublayers but moveBy 
doesn't.

Original comment by Quazie on 6 Mar 2009 at 4:38

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Incorrect results from RMMercatorToScreenProjection's projectXYPoint:withScale: 
method are the 
root cause of Issue 20, Issue 43, Issue 54, Issue 103.

Original comment by halmuel...@gmail.com on 7 Apr 2009 at 10:59

GoogleCodeExporter commented 8 years ago
Fixed in r621

Original comment by dbainbri...@gmail.com on 15 Apr 2010 at 3:09