Showing
1 changed file
with
9 additions
and
5 deletions
| ... | @@ -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 | + pinImageView.addSubview(logoImageView) | ||
| 488 | + annotationView?.addSubview(pinImageView) | ||
| 489 | + | ||
| 490 | + return annotationView | ||
| 491 | + } else { | ||
| 492 | + return nil | ||
| 486 | } | 493 | } |
| 487 | 494 | ||
| 495 | + } else { | ||
| 496 | + return nil | ||
| 488 | } | 497 | } |
| 489 | - | ||
| 490 | - pinImageView.addSubview(logoImageView) | ||
| 491 | - annotationView?.addSubview(pinImageView) | ||
| 492 | - | ||
| 493 | - return annotationView | ||
| 494 | } | 498 | } |
| 495 | 499 | ||
| 496 | public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { | 500 | public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { | ... | ... |
-
Please register or login to post a comment