TTPolyline Class Reference
Inherits from | TTOverlay : NSObject |
---|---|
Conforms to | TTCoordinatesData |
Declared in | TTPolyline.h |
+ polylineWithCoordinates:count:opacity:width:color:
Creates and returns an TTPolyline object from the specified set of coordinates.
+ (instancetype _Nonnull)polylineWithCoordinates:(CLLocationCoordinate2D *_Nonnull)coordinates count:(NSUInteger)count opacity:(float)opacity width:(float)width color:(UIColor *_Nonnull)color
Parameters
coordinates |
The array of coordinates defining the shape. |
---|---|
count |
The number of items in the coordinates array. |
opacity |
The opacity for the path. |
width |
The width for the path. Should be greater than 0. |
color |
The color for the path. |
Return Value
TTPolyline
Discussion
Creates and returns an TTPolyline object from the specified set of coordinates.
Declared In
TTPolyline.h
+ polylineWithCoordinates:count:
Creates and returns an TTPolyline object from the specified set of coordinates. The polyline color and colorOutline are set a default value WHITE color. The width path is set a default value 5.0.
+ (instancetype _Nonnull)polylineWithCoordinates:(CLLocationCoordinate2D *_Nonnull)coordinates count:(NSUInteger)count
Parameters
coordinates |
The array of coordinates defining the shape. |
---|---|
count |
The number of items in the coordinates array. |
Return Value
TTPolyline
Discussion
Creates and returns an TTPolyline object from the specified set of coordinates. The polyline color and colorOutline are set a default value WHITE color. The width path is set a default value 5.0.
Declared In
TTPolyline.h
coordinates
The array of coordinates defining the shape.
@property (nonatomic, readonly) CLLocationCoordinate2D *coordinates
Discussion
The array of coordinates defining the shape.
Declared In
TTPolyline.h
count
The number of items in the coordinates array.
@property (nonatomic, assign, readonly) NSUInteger count
Discussion
The number of items in the coordinates array.
Declared In
TTPolyline.h
opacity
The opacity for the path.
@property (nonatomic, assign, readonly) float opacity
Discussion
The opacity for the path.
Declared In
TTPolyline.h
width
The width for the path. Should be greater than 0.
@property (nonatomic, assign, readonly) float width
Discussion
The width for the path. Should be greater than 0.
Declared In
TTPolyline.h
color
The fill color to use for the path.
@property (nonatomic, strong, readonly) UIColor *color
Discussion
The fill color to use for the path.
Declared In
TTPolyline.h