CalloutMapAnnotation.m 519 B

123456789101112131415161718192021222324252627
  1. #import "CalloutMapAnnotation.h"
  2. @implementation CalloutMapAnnotation
  3. - (id)initWithLatitude:(CLLocationDegrees)latitude
  4. andLongitude:(CLLocationDegrees)longitude
  5. tag:(int)tag
  6. {
  7. if (self = [super init])
  8. {
  9. self.latitude = latitude;
  10. self.longitude = longitude;
  11. self.tag = tag;
  12. }
  13. return self;
  14. }
  15. - (CLLocationCoordinate2D)coordinate
  16. {
  17. CLLocationCoordinate2D coordinate;
  18. coordinate.latitude = self.latitude;
  19. coordinate.longitude = self.longitude;
  20. return coordinate;
  21. }
  22. @end