Skip to content

Commit

Permalink
- ios: fix assigning icon not only on scale change
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Vasin committed Oct 25, 2017
1 parent 52d3136 commit 9470869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/AirGoogleMaps/AIRGoogleMapBadgeMarker.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (void)updateOverlay {

- (void)assignIcon {
dispatch_async(dispatch_get_main_queue(), ^{
if (_currentIcon && (_badgeScale != _currentBadgeScale)) {
if (_currentIcon || (_badgeScale != _currentBadgeScale)) {
if (_currentIcon) {
_realMarker.icon = [UIImage imageWithCGImage:_currentIcon.CGImage
scale:_currentIcon.scale / _badgeScale
Expand Down

0 comments on commit 9470869

Please sign in to comment.