Skip to content

Class CircleMapObject

PavelTychinin edited this page Oct 29, 2021 · 5 revisions

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

Referenced from: LocationView.

Public methods

Functions setPosition / setPositionAnimated

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

Function setRadius

public void setRadius(float radius)

Function sets the radius of circle object.

Parameters
  • radius — radius of the circle object in meters

Function setVisible

public void setVisible(boolean visible)

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

Function setColor

public void setColor(float red, float green, float blue, 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