Class NCCircleMapObject - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki

NCCircleMapObject class is used for showing circle objects on the map.

Referenced from: NCLocationView.

Public methods

Functions setPosition / setPositionAnimated

- (boolean)setPosition:(nonnull LocationPoint *)point;

Function sets the position of circle object on the map.

Parameters
  • point — location point in metric coordinates.
Return value
  • true if success false if smth was wrong
- (BOOL)setPositionAnimated:(nonnull NCLocationPoint *)point
                   duration:(float)duration
                       type:(NCAnimationType)type;

Function sets the position of circle object on the map with animation

Parameters
  • point — location point in metric coordinates.
  • duration — animation duration in sec
  • typeNCAnimationType type of animation
Return value
  • true if success false if smth was wrong

Function setRadius

- (BOOL)setRadius:(float)radius;

Function sets the radius of circle object.

Parameters
  • radius — radius of the circle object in meters

Function setVisible

- (BOOL)setVisible:(BOOL)visible;

Function is used for setting the visibility of circle 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.