GMSPolygon.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // GMSPolygon.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. @class GMSPath;
  12. /**
  13. * GMSPolygon defines a polygon that appears on the map. A polygon (like a polyline) defines a
  14. * series of connected coordinates in an ordered sequence; additionally, polygons form a closed loop
  15. * and define a filled region.
  16. */
  17. @interface GMSPolygon : GMSOverlay
  18. /** The path that describes this polygon. The coordinates composing the path must be valid. */
  19. @property(nonatomic, copy) GMSPath *path;
  20. /** The width of the polygon outline in screen points. Defaults to 1. */
  21. @property(nonatomic, assign) CGFloat strokeWidth;
  22. /** The color of the polygon outline. Defaults to nil. */
  23. @property(nonatomic, strong) UIColor *strokeColor;
  24. /** The fill color. Defaults to blueColor. */
  25. @property(nonatomic, strong) UIColor *fillColor;
  26. /** Whether this polygon should be rendered with geodesic correction. */
  27. @property(nonatomic, assign) BOOL geodesic;
  28. /**
  29. * Convenience constructor for GMSPolygon for a particular path. Other properties will have default
  30. * values.
  31. */
  32. + (instancetype)polygonWithPath:(GMSPath *)path;
  33. @end