setPosition method

void setPosition(
  1. double x,
  2. double y
)

Sets a custom position for the description text in pixels on the screen.

@param x - xcoordinate @param y - ycoordinate

Implementation

void setPosition(double x, double y) {
  if (_position == null) {
    _position = MPPointF.getInstance1(x, y);
  } else {
    _position?.x = x;
    _position?.y = y;
  }
}