setCenter method

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

Sets the center of the mapmodel to the given coordinates in mappixel. There must already be a position set.

Implementation

void setCenter(double x, double y) {
  MapPosition newPosition = _lastPosition!.setCenter(x, y);
  setPosition(newPosition);
}