SYMapRouteLabel Class Reference

Represents the class implementation for route label object of SYMapObject. SYMapRouteLabel is used to display a label on a route on a map. The map handles proper placement of icons on the screen as well as panning and rotation. More...

#import <SYMapObjects.h>

Inheritance diagram for SYMapRouteLabel:
Collaboration diagram for SYMapRouteLabel:

Instance Methods

(nonnull instancetype) - initWithText:textStyle:placeOnRoute:
 Initializes a SYMapRouteLabel instance with the specified text, style and route. More...
 
(instancetype) - initWithSdkRouteLabel: [implementation]
 
- Instance Methods inherited from SYMapObject
(instancetype) - initWithCoordinate:type:payload: [implementation]
 
(Sygic::Map::MapObject *) - sdkMapObject [implementation]
 
- Instance Methods inherited from SYViewObject
(instancetype) - initWithCoordinate:baseType: [implementation]
 
(instancetype) - initWithCoordinate:baseType:payload: [implementation]
 

Properties

NSString * text
 Label text. More...
 
SYMapObjectTextStyletextStyle
 Label text style. More...
 
UIImage * image
 Image that will be drawn on label surface. More...
 
UIImage * styleImage
 Label style image, that defines color, shape, and ninepatch properties. More...
 
CGPoint anchorPosition
 The relative CGPoint position of the SYMapRouteLabel from its anchored location. Value of 0,0 is top left location of SYMapRouteLabel, 1,1 is bottom right. Default value is 0.0,0.0. More...
 
CGSize forcedSize
 Forced route label size. More...
 
CGSize maxImageSize
 Maximum label image size. More...
 
CGSize maxTextSize
 Maximum text size. More...
 
BOOL horizontalImageMirroringEnabled
 Enables horizontal mirroring of label image. Default value is NO. More...
 
BOOL verticalImageMirroringEnabled
 Enables vertical mirroring of label image. Default value is NO. More...
 
SYRouteroute
 Label's route. Once SYMapRouteLabel is added to SYMapView, it's position is calculated to be displayed on this route. More...
 
CGFloat minZoomLevel
 Minimum zoom level, at which SYMapRouteLabel is displayed. More...
 
CGFloat maxZoomLevel
 Maximum zoom level, at which SYMapRouteLabel is displayed. More...
 
std::shared_ptr< Sygic::Map::MapSmartLabel > ptrMapRouteLabel [implementation]
 
- 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
SYGeoCoordinatecoordinate
 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...
 
SYViewObjectType baseType
 Determines which type of this ViewObject it is. More...
 
id< NSCoding > payload
 Optional payload for storing custom data. More...
 

Additional Inherited Members

- Class Methods inherited from SYViewObject
(std::vector< uint8_t >) + serializePayload: [implementation]
 
(id< NSCoding >) + deserializePayload: [implementation]
 

Detailed Description

Represents the class implementation for route label object of SYMapObject. SYMapRouteLabel is used to display a label on a route on a map. The map handles proper placement of icons on the screen as well as panning and rotation.

Method Documentation

◆ initWithSdkRouteLabel:()

- (instancetype) initWithSdkRouteLabel: (std::shared_ptr< Sygic::Map::MapSmartLabel >)  sdkRouteLabel
implementation

◆ initWithText:textStyle:placeOnRoute:()

- (nonnull instancetype) initWithText: (nonnull NSString *)  text
textStyle: (nullable SYMapObjectTextStyle *)  style
placeOnRoute: (nonnull SYRoute *)  route 

Initializes a SYMapRouteLabel instance with the specified text, style and route.

Parameters
styleCan be nil - default SYMapObjectTextStyle will be used.

Property Documentation

◆ anchorPosition

- (CGPoint) anchorPosition
readwritenonatomicassign

The relative CGPoint position of the SYMapRouteLabel from its anchored location. Value of 0,0 is top left location of SYMapRouteLabel, 1,1 is bottom right. Default value is 0.0,0.0.

◆ forcedSize

- (CGSize) forcedSize
readwritenonatomicassign

Forced route label size.

◆ horizontalImageMirroringEnabled

- (BOOL) horizontalImageMirroringEnabled
readwritenonatomicassign

Enables horizontal mirroring of label image. Default value is NO.

◆ image

- (UIImage*) image
readwritenonatomicstrong

Image that will be drawn on label surface.

◆ maxImageSize

- (CGSize) maxImageSize
readwritenonatomicassign

Maximum label image size.

◆ maxTextSize

- (CGSize) maxTextSize
readwritenonatomicassign

Maximum text size.

◆ maxZoomLevel

- (CGFloat) maxZoomLevel
readwritenonatomicassign

Maximum zoom level, at which SYMapRouteLabel is displayed.

◆ minZoomLevel

- (CGFloat) minZoomLevel
readwritenonatomicassign

Minimum zoom level, at which SYMapRouteLabel is displayed.

◆ ptrMapRouteLabel

- (shared_ptr<)Sygic:
readwritenonatomicassignimplementation

◆ route

- (SYRoute*) route
readnonatomicassign

Label's route. Once SYMapRouteLabel is added to SYMapView, it's position is calculated to be displayed on this route.

◆ styleImage

- (UIImage*) styleImage
readwritenonatomicstrong

Label style image, that defines color, shape, and ninepatch properties.

◆ text

- (NSString*) text
readwritenonatomicstrong

Label text.

◆ textStyle

- (SYMapObjectTextStyle*) textStyle
readwritenonatomicstrong

Label text style.

◆ verticalImageMirroringEnabled

- (BOOL) verticalImageMirroringEnabled
readwritenonatomicassign

Enables vertical mirroring of label image. Default value is NO.


The documentation for this class was generated from the following file: