From 67b9eb94d26303f86adf71c7db1ce8f207808099 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Thu, 2 Nov 2017 19:22:14 -0400 Subject: [ios] Fix image property of MGLAnnotationImage does not update. --- platform/ios/src/MGLMapView.mm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 31eac056e5..1cbbc22871 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -4548,11 +4548,6 @@ public: 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. -- cgit v1.2.1