We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fab5d74 commit e3fb6e3Copy full SHA for e3fb6e3
ios/RCTBaiduMap/RCTBaiduMapView.m
@@ -69,9 +69,8 @@ -(void)setMarkers:(NSArray *)markers {
69
NSLog(sannotationsCount);
70
71
if(markersCount < _annotationsCount) {
72
- int start = _annotationsCount - markersCount;
73
- for(int i = start; i < _annotationsCount; i++) {
74
- NSLog(@"forforforfor");
+ int start = _annotationsCount - 1;
+ for(int i = start; i >= markersCount; i--) {
75
BMKPointAnnotation *annotation = [_annotations objectAtIndex:i];
76
[self removeAnnotation:annotation];
77
[_annotations removeObject:annotation];
@@ -108,4 +107,4 @@ -(void)updateMarker:(BMKPointAnnotation *)annotation option:(NSDictionary *)opti
108
107
}
109
110
111
-@end
+@end
0 commit comments