Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Fix image property of MGLAnnotationImage does not update.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-guerra committed Nov 30, 2017
1 parent 787c782 commit 1354a71
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4526,11 +4526,6 @@ - (void)annotationImageNeedsRedisplay:(MGLAnnotationImage *)annotationImage
NSString *fallbackReuseIdentifier = MGLDefaultStyleMarkerSymbolName;
NSString *fallbackIconIdentifier = [MGLAnnotationSpritePrefix stringByAppendingString:fallbackReuseIdentifier];

// Remove the old icon from the style.
if ( ! [iconIdentifier isEqualToString:fallbackIconIdentifier]) {
_mbglMap->removeAnnotationImage(iconIdentifier.UTF8String);
}

if (annotationImage.image)
{
// Add the new icon to the style.
Expand Down

0 comments on commit 1354a71

Please sign in to comment.