Skip to content

Commit

Permalink
Fixed missing self assignment to circle subview.map. (react-native-ma…
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Hunt authored and rostislav-simonik committed Jul 4, 2018
1 parent 106f0ca commit cffb50a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ios/AirMaps/AIRMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ - (void)insertReactSubview:(id<RCTComponent>)subview atIndex:(NSInteger)atIndex
((AIRMapPolygon *)subview).map = self;
[self addOverlay:(id<MKOverlay>)subview];
} else if ([subview isKindOfClass:[AIRMapCircle class]]) {
((AIRMapCircle *)subview).map = self;
[self addOverlay:(id<MKOverlay>)subview];
} else if ([subview isKindOfClass:[AIRMapUrlTile class]]) {
((AIRMapUrlTile *)subview).map = self;
Expand Down

1 comment on commit cffb50a

@sefatunckanat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else if ([subview isKindOfClass:[AIRGoogleMapCircle class]]) {
    AIRGoogleMapCircle *circle = (AIRGoogleMapCircle*)subview;
    circle.circle.map = self;
    [self.circles addObject:circle];
} 

My AIRGoogleMap.h is like this but don't update change distance or position.
React-native-maps: 0.20.1
React-native: 0.55.4

react-native-maps#2101

Please sign in to comment.