Manos Chorianopoulos

fix coupon map pins

......@@ -475,14 +475,11 @@ import MapKit
let currentMerchant = merchantModel
if (self.isMarket == true) {
if let parent = self.parentMerchantsArray.first(where: {($0._uuid == currentMerchant._parent)}) {
let currentMerchantParent = parent
if (self.isMarket == true) {
logoImageView.load(link: currentMerchantParent._img_preview , placeholder: UIImage(), cache: URLCache())
} else {
logoImageView.load(link: currentMerchant._img_preview , placeholder: UIImage(), cache: URLCache())
}
pinImageView.addSubview(logoImageView)
annotationView?.addSubview(pinImageView)
......@@ -493,6 +490,15 @@ import MapKit
}
} else {
logoImageView.load(link: currentMerchant._img_preview , placeholder: UIImage(), cache: URLCache())
pinImageView.addSubview(logoImageView)
annotationView?.addSubview(pinImageView)
return annotationView
}
} else {
return nil
}
}
......