setCamera method

void setCamera(
  1. Camera camera
)

Animate the map's Camera.

  • NOTE: Calling this method repeatedly within a short period of time might result in unexpected behaviours with the camera animations, so make sure you leave at least 1000 ms between subsequent calls to this method.

Implementation

void setCamera(Camera camera) async {
  _sendMessage(WV_MESSAGE_CAMERA_SET, jsonEncode(camera.toMap()));
}