Manos Chorianopoulos

fix coupon map pins

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