setAnchor abstract method

void setAnchor(
  1. Point<double> anchor
)

Sets anchor point for user indicator in screen pixels.

Example:

ScreenPoint anchor = ScreenPoint(100.0, 200.0);
_userLocationLayer!.setAnchor(anchor);
print("Set user location anchor to: (${anchor.x}, ${anchor.y})");

Implementation

void setAnchor(math.Point<double> anchor);