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 Jan 25, 2018
1 parent da7759a commit 67b9eb9
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 @@ -4548,11 +4548,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 67b9eb9

Please sign in to comment.