Class NCLineMapObject - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki
NCLineMapObject class is used for showing line objects on the map.
Referenced from: NCLocationView.
- (void)setPoints:(nonnull NSArray<NCPoint *> *)points;
Function sets the points for poly line object on the map. Points should be in metric coordinates. (For simple line just pass the start and end coordinates).
-
points
— array of x and y metric coordinates for your poly line object.
- (void)setWidth:(float)width;
Function sets the width of line object.
-
width
— width of the line object, should be evaluated considering the fact that location view's width is from -1 to 1.
- (float)getWidth;
Function returns the width of line object.
Width of the line map object.
- (void)setData:(nonnull NSData *)data;
Function sets the data for line map object which could be used for distinguishing different objects on map.
-
data
— byte array of data.
- (nonnull NSData *)getData;
Function returns the data attached to the line object.
Byte array of data.
- (void)setEnabled:(BOOL)visibility;
Function is used for setting the visibility of line object on the map.
- (void)setColor:(float)red
green:(float)green
blue:(float)blue
alpha:(float)alpha;
Function is used for setting the color of map object.
-
red
— red color in range 0..1. -
green
— green color in range 0..1. -
blue
— blue color in range 0..1. -
alpha
— alpha color in range 0..1.