TTCircle
A circular overlay with a configurable radius and centered on a specific geographic coordinate.
-
Creates and returns a TTCircle object using the specified coordinate and radius.
Declaration
Objective-C
+ (instancetype _Nonnull)circleWithCenterCoordinate: (CLLocationCoordinate2D)coordinate radius:(CLLocationDistance)radius opacity:(float)opacity width:(float)width color:(id)color fill:(BOOL)fill colorOutlet:(id)colorOutline;
Swift
convenience init(center coordinate: CLLocationCoordinate2D, radius: CLLocationDistance, opacity: Float, width: Float, color: Any!, fill: Bool, colorOutlet colorOutline: Any!)
Parameters
coordinate
The center point of the circle, specified as a latitude and longitude value.
radius
The radius of the circle in meters.
opacity
opacity for the circle.
width
width for the circle.
color
color for the circle.
fill
fill for the circle.
colorOutline
colorOutline for the circle.
Return Value
TTCircle
-
Creates and returns a TTCircle object using the specified coordinate and radius.
Declaration
Objective-C
+ (instancetype _Nonnull)circleWithCenterCoordinate: (CLLocationCoordinate2D)coordinate radius:(CLLocationDistance)radius width:(float)width color:(id)color fill:(BOOL)fill colorOutlet:(id)colorOutline;
Swift
convenience init(center coordinate: CLLocationCoordinate2D, radius: CLLocationDistance, width: Float, color: Any!, fill: Bool, colorOutlet colorOutline: Any!)
Parameters
coordinate
The center point of the circle, specified as a latitude and longitude value.
radius
The radius of the circle in meters.
width
width for the circle.
color
color for the circle.
fill
fill for the circle.
colorOutline
colorOutline for the circle.
Return Value
TTCircle
-
Creates and returns a TTCircle object using the specified coordinate and radius. The circle color and colorOutline are set a default value WHITE color. The width path is set a default value 5.0.
Declaration
Objective-C
+ (instancetype _Nonnull)circleWithCenterCoordinate: (CLLocationCoordinate2D)coordinate radius:(CLLocationDistance)radius;
Swift
convenience init(center coordinate: CLLocationCoordinate2D, radius: CLLocationDistance)
Parameters
coordinate
The center point of the circle, specified as a latitude and longitude value.
radius
The radius of the circle in meters.
Return Value
TTCircle
-
The center point of the circle, specified as a latitude and longitude value.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
Swift
var coordinate: CLLocationCoordinate2D { get }
-
The radius of the circle in meters.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationDistance radius;
Swift
var radius: CLLocationDistance { get }
-
The opacity color to use for the circle.
Declaration
Objective-C
@property (nonatomic, readonly) float opacity;
Swift
var opacity: Float { get }
-
The width to use for the circle in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) float width;
Swift
var width: Float { get }
-
The fill color to use for the circle.
Declaration
Objective-C
@property(nonatomic, strong, readonly) UIColor *_Nonnull color
Swift
var color: UnsafeMutablePointer<Int32> { get }
-
The flag YES/NO for fill to use for the circle.
Declaration
Objective-C
@property (nonatomic, readonly) _Bool fill;
Swift
var fill: Bool { get }
-
The color of the circle’s outline.
Declaration
Objective-C
@property(nonatomic, strong, readonly) UIColor *_Nonnull colorOutline
Swift
var colorOutline: UnsafeMutablePointer<Int32> { get }