zoomWithCenter method
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});
}