viewportCenter property

Point<int> get viewportCenter

The center point of the current viewport of the map view.

Returns

  • The center point of the current viewport

Implementation

Point<int> get viewportCenter {
  final Rectangle<int> rc = viewport;
  return Point<int>(
      rc.left + (rc.width / 2).round(), rc.top + (rc.height / 2).round());
}