Skip to content

Class NCIconMapObject

PavelTychinin edited this page Nov 15, 2021 · 1 revision

NCIconMapObject class is used for showing icon objects on the map.

Referenced from: LocationView.

Public methods

Functions setPosition / setPositionAnimated

- (BOOL)setPosition:(nonnull NCLocationPoint *)point;

Function sets the position of icon 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 icon 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 setSize

- (BOOL)setSize:(float)width
         height:(float)height;

Function sets the size of icon object in pixels.

Parameters
  • width — width of the icon object in pixels
  • height — height of the icon object in pixels

Function setVisible

- (BOOL)setVisible:(BOOL)visible;

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

Function setBitmap

- (BOOL)setBitmap:(nullable UIImage *)bitmap;

Function is used for setting bitmap of map object.

Parameters
  • bitmap — UIImage raster object
Clone this wiki locally