A circle on the Earth's surface (spherical cap).
|Convenience constructor for GMSCircle for a particular position and radius. |
|Position on Earth of circle center. |
|Radius of the circle in meters; must be positive. |
|The width of the circle's outline in screen points. |
|The color of this circle's outline. |
|The interior of the circle is painted with fillColor. |
|Title, a short description of the overlay. |
|The map this overlay is on. |
|If this overlay should cause tap notifications. |
|Overlay data. |
Member Function Documentation
|+ (instancetype) circleWithPosition:||(CLLocationCoordinate2D)||position|
Convenience constructor for GMSCircle for a particular position and radius.
Other properties will have default values. An invalid position will result in an overlay object that cannot be drawn on the map.
|- (CLLocationCoordinate2D) position
Position on Earth of circle center.
Ignores invalid positions.
|- (CLLocationDistance) radius
Radius of the circle in meters; must be positive.
|- (CGFloat) strokeWidth
The width of the circle's outline in screen points.
Defaults to 1. As per GMSPolygon, the width does not scale when the map is zoomed.
Setting strokeWidth to 0 results in no stroke.
|- (UIColor*) strokeColor
The color of this circle's outline.
The default value is black.
|- (UIColor*) fillColor
The interior of the circle is painted with fillColor.
The default value is nil, resulting in no fill.
|- (NSString*) title
Title, a short description of the overlay.
Some overlays, such as markers, will display the title on the map. The title is also the default accessibility text.
The map this overlay is on.
Setting this property will add the overlay to the map. Setting it to nil removes this overlay from the map. An overlay may be active on at most one map at any given time.
|- (BOOL) tappable
If this overlay should cause tap notifications.
Some overlays, such as markers, will default to being tappable.
|- (int) zIndex
zIndex value overlays will be drawn on top of lower
zIndex value tile layers and overlays.
Equal values result in undefined draw ordering. Markers are an exception that regardless of
zIndex, they will always be drawn above tile layers and other non-marker overlays; they are effectively considered to be in a separate z-index group compared to other overlays.
|- (id) userData
You can use this property to associate an arbitrary object with this overlay. Google Maps SDK for iOS neither reads nor writes this property.
Note that userData should not hold any strong references to any Maps objects, otherwise a retain cycle may be created (preventing objects from being released).