Manos Chorianopoulos

map pins fix

...@@ -483,14 +483,18 @@ import MapKit ...@@ -483,14 +483,18 @@ import MapKit
483 } else { 483 } else {
484 logoImageView.load(link: currentMerchant._img_preview , placeholder: UIImage(), cache: URLCache()) 484 logoImageView.load(link: currentMerchant._img_preview , placeholder: UIImage(), cache: URLCache())
485 } 485 }
486 - }
487 -
488 - }
489 486
490 pinImageView.addSubview(logoImageView) 487 pinImageView.addSubview(logoImageView)
491 annotationView?.addSubview(pinImageView) 488 annotationView?.addSubview(pinImageView)
492 489
493 return annotationView 490 return annotationView
491 + } else {
492 + return nil
493 + }
494 +
495 + } else {
496 + return nil
497 + }
494 } 498 }
495 499
496 public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { 500 public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {
......