Skip to content

Class NCPolyLineMapObject

PavelTychinin edited this page Nov 15, 2021 · 1 revision

NCPolylineMapObject class is used for showing polyline objects on the map.

Referenced from: NCLocationView.

Public methods

Function setPolyLine

- (BOOL)setPolyLine:(nonnull NCLocationPolyline *)polyline;

Function sets the positions of polyline object on the map.

Parameters
  • polyline — location polyline in metric coordinates.
Return value
  • true if success false if smth was wrong

Function setWidth

- (BOOL)setWidth:(float)width;

Function sets the width of polyline map object.

Parameters
  • width — width of the polyline object in meters

Function setVisible

- (BOOL)setVisible:(BOOL)visible;

Function is used for setting the visibility of polyline object on the map.

Function setColor

- (BOOL)setColor:(float)red
           green:(float)green
            blue:(float)blue
           alpha:(float)alpha;

Function is used for setting the color of map object.

Parameters
  • 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.
Clone this wiki locally