GMSCircle.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /**
  13. * A circle on the Earth's surface (spherical cap).
  14. */
  15. @interface GMSCircle : GMSOverlay
  16. /** Position on Earth of circle center. */
  17. @property(nonatomic, assign) CLLocationCoordinate2D position;
  18. /** Radius of the circle in meters; must be positive. */
  19. @property(nonatomic, assign) CLLocationDistance radius;
  20. /**
  21. * The width of the circle's outline in screen points. Defaults to 1. As per
  22. * GMSPolygon, the width does not scale when the map is zoomed.
  23. * Setting strokeWidth to 0 results in no stroke.
  24. */
  25. @property(nonatomic, assign) CGFloat strokeWidth;
  26. /** The color of this circle's outline. The default value is black. */
  27. @property(nonatomic, strong) UIColor *strokeColor;
  28. /**
  29. * The interior of the circle is painted with fillColor.
  30. * The default value is nil, resulting in no fill.
  31. */
  32. @property(nonatomic, strong) UIColor *fillColor;
  33. /**
  34. * Convenience constructor for GMSCircle for a particular position and radius.
  35. * Other properties will have default values.
  36. */
  37. + (instancetype)circleWithPosition:(CLLocationCoordinate2D)position
  38. radius:(CLLocationDistance)radius;
  39. @end