moveCamera method

Future<void> moveCamera({
  1. required double latitude,
  2. required double longitude,
  3. double zoom = 18.0,
  4. double left = 0.0,
  5. double top = 0.0,
  6. double right = 0.0,
  7. double bottom = 0.0,
})

move the camera with the given options

the padding option attributes are in percentage, it starts from 0.0 to 1.0

Implementation

Future<void> moveCamera(
    {required double latitude,
    required double longitude,
    double zoom = 18.0,
    double left = 0.0,
    double top = 0.0,
    double right = 0.0,
    double bottom = 0.0}) async {
  await _channel.invokeMethod('moveCamera', {
    "latitude": latitude,
    "longitude": longitude,
    "zoom": zoom,
    "left": left,
    "top": top,
    "right": right,
    "bottom": bottom,
  });
}