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

This commit is contained in:
Fabian Guerra
2017-11-02 19:22:14 -04:00
committed by Fabian Guerra Soto
parent da7759a273
commit 91521fa106

View File

@@ -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.