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

[ios] Fix image property of MGLAnnotationImage does not update. #10372

Merged
merged 1 commit into from
Jan 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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