IHAnotation.swift 727 B

12345678910111213141516171819202122232425262728
  1. //
  2. // IHAnotation.swift
  3. // Inhealth
  4. //
  5. // Created by weclouds on 2019/12/13.
  6. // Copyright © 2019 weclouds. All rights reserved.
  7. //
  8. import UIKit
  9. import MapKit
  10. class IHAnotation: NSObject ,MKAnnotation{
  11. //需要一个初始值
  12. var coordinate: CLLocationCoordinate2D = CLLocationCoordinate2DMake(0, 0)
  13. var icon : UIImage?
  14. var id :String?
  15. var name:String?
  16. var hotelData:HotelMapData?
  17. init(coordinate:CLLocationCoordinate2D,icon:UIImage?,id:String?,name:String?,hotelData:HotelMapData?) {
  18. self.coordinate = coordinate
  19. self.icon = icon
  20. self.id = id
  21. self.name = name
  22. self.hotelData = hotelData
  23. }
  24. deinit {
  25. log.debug("IHAnotation销毁")
  26. }
  27. }