zoomWithCenter method

Future<void> zoomWithCenter(
  1. double zoom,
  2. int x,
  3. int y
)

Zooms the viewer to the given scale using the given coordinate as the center.

The zoom center (x,y) is represented in the screen space, whose origin is at the upper-left corner of the screen region.

Implementation

Future<void> zoomWithCenter(double zoom, int x, int y) {
  return _channel.invokeMethod(Functions.zoomWithCenter,
      <String, dynamic>{"zoom": zoom, "x": x, "y": y});
}