Skip to content

Class IconMapObject

PavelTychinin edited this page Oct 29, 2021 · 2 revisions

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

Referenced from: LocationView.

Public methods

Functions setPosition / setPositionAnimated

public boolean setPosition(LocationPoint 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
public boolean setPositionAnimated(LocationPoint point, float duration, AnimationType 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
  • typeAnimationType type of animation
Return value
  • true if success false if smth was wrong

Function setSize

public boolean setSize(float width, 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

public void setVisible(boolean visible)

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

Function setBitmap

public void setBitmap(android.graphics.Bitmap bitmap)

Function is used for setting bitmap of map object.

Parameters
  • bitmap — android.graphics.Bitmap raster object

Clone this wiki locally