class NCPolylineMapObject - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki
NCPolylineMapObject class is used for showing polyline objects on the map.
Referenced from: NCLocationView.
- (BOOL)setPolyLine:(nonnull NCLocationPolyline *)polyline;
Function sets the positions of polyline object on the map.
-
polyline
— location polyline in metric coordinates.
-
true
if successfalse
if smth was wrong
- (BOOL)setWidth:(float)width;
Function sets the width of polyline map object.
-
width
— width of the polyline object in meters
- (BOOL)setVisible:(BOOL)visible;
Function is used for setting the visibility of polyline object on the map.
- (BOOL)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.