GMSCircle.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // GMSCircle.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2013 Google Inc.
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <GoogleMaps/GMSOverlay.h>
  11. #import <Foundation/Foundation.h>
  12. #if __has_feature(modules)
  13. @import GoogleMapsBase;
  14. #else
  15. #import <GoogleMapsBase/GoogleMapsBase.h>
  16. #endif
  17. GMS_ASSUME_NONNULL_BEGIN
  18. /**
  19. * A circle on the Earth's surface (spherical cap).
  20. */
  21. @interface GMSCircle : GMSOverlay
  22. /** Position on Earth of circle center. */
  23. @property(nonatomic, assign) CLLocationCoordinate2D position;
  24. /** Radius of the circle in meters; must be positive. */
  25. @property(nonatomic, assign) CLLocationDistance radius;
  26. /**
  27. * The width of the circle's outline in screen points. Defaults to 1. As per
  28. * GMSPolygon, the width does not scale when the map is zoomed.
  29. * Setting strokeWidth to 0 results in no stroke.
  30. */
  31. @property(nonatomic, assign) CGFloat strokeWidth;
  32. /** The color of this circle's outline. The default value is black. */
  33. @property(nonatomic, strong) UIColor *GMS_NULLABLE_PTR strokeColor;
  34. /**
  35. * The interior of the circle is painted with fillColor.
  36. * The default value is nil, resulting in no fill.
  37. */
  38. @property(nonatomic, strong) UIColor *GMS_NULLABLE_PTR fillColor;
  39. /**
  40. * Convenience constructor for GMSCircle for a particular position and radius.
  41. * Other properties will have default values.
  42. */
  43. + (instancetype)circleWithPosition:(CLLocationCoordinate2D)position
  44. radius:(CLLocationDistance)radius;
  45. @end
  46. GMS_ASSUME_NONNULL_END