Closed GoogleCodeExporter closed 8 years ago
Hi, i think this is a good work around:
- (void) removeMarkers
{
//[[contents overlay] setSublayers:[NSArray arrayWithObjects:nil]];
NSMutableArray *layers = [[NSMutableArray alloc] init];
for (CALayer *layer in [[contents overlay] sublayers]) {
if (![layer isMemberOfClass:[RMMarker class]]) {
[layers addObject:layer];
}
}
[[contents overlay] setSublayers:[layers autorelease]];
}
Original comment by m.krause...@googlemail.com
on 6 Jul 2010 at 10:13
Original issue reported on code.google.com by
halmuel...@gmail.com
on 8 Mar 2009 at 11:30