SYMapObject in the shape of a route that can be displayed on a map. In order to display the route object on the map, the route object needs to be added to an SYMapView by calling addMapObject:. More...
#import <SYMapObjects.h>
Instance Methods | |
(nonnull instancetype) | - initWithRoute:type: |
Initializes a SYMapRoute instance with the specified SYRoute and SYMapRouteType for the displayed route. More... | |
(void) | - useCustomColor:borderColor: |
Sets custom color to use for displaying this route object. More... | |
Properties | |
SYMapRouteType | routeType |
Type of SYMapRoute. See the available SYMapRouteTypes. More... | |
SYRoute * | route |
SYRoute represented by the SYMapRoute. More... | |
BOOL | useCustomColor |
Indicates whether the route object is using custom colors. More... | |
UIColor * | innerColor |
Inner color of the route. More... | |
UIColor * | borderColor |
Route's border color. More... | |
UIColor *color | DEPRECATED_ATTRIBUTE |
Route color. More... | |
BOOL | trafficVisible |
Indicates whether the route object is displaying traffic information. More... | |
Properties inherited from SYMapObject | |
NSInteger | tag |
An integer that you can use to identify view objects in your application. Default value is 0. More... | |
SYMapObjectType | mapObjectType |
Map object type. See the available SYMapObjectTypes. More... | |
NSUInteger | zIndex |
Z-index (stacking order) for the SYMapObject. Objects with the highest value are placed at the top of the stacking order. More... | |
BOOL | visibility |
Visibility of the SYMapObject. Can be shown or hidden. More... | |
Properties inherited from SYViewObject | |
SYGeoCoordinate * | coordinate |
Geographical location of the SYViewObject. The meaning of the location for a particular object depends on that object's type. Objects that don't have a location will return nil. The meaning of the location for certain view objects is as follows: More... | |
CGPoint | screenPosition |
Position of the SYViewObject on the screen. More... | |
SYViewObjectType | baseType |
Determines which type of this ViewObject it is. More... | |
id< NSCoding > | payload |
Optional payload for storing custom data. More... | |
SYMapObject in the shape of a route that can be displayed on a map. In order to display the route object on the map, the route object needs to be added to an SYMapView by calling addMapObject:.
- (nonnull instancetype) initWithRoute: | (nonnull SYRoute *) | route | |
type: | (SYMapRouteType) | type | |
Initializes a SYMapRoute instance with the specified SYRoute and SYMapRouteType for the displayed route.
- (void) useCustomColor: | (nonnull UIColor *) | innerColor | |
borderColor: | (nonnull UIColor *) | borderColor | |
Sets custom color to use for displaying this route object.
|
readnonatomicassign |
Type of SYMapRoute. See the available SYMapRouteTypes.
|
readnonatomicassign |
SYRoute represented by the SYMapRoute.
|
readnonatomicassign |
Indicates whether the route object is using custom colors.
|
readnonatomicstrong |
Inner color of the route.
|
readnonatomicstrong |
Route's border color.
|
readwritenonatomicstrong |
Route color.
|
readwritenonatomicassign |
Indicates whether the route object is displaying traffic information.