newCameraPosition static method

CameraUpdate newCameraPosition(
  1. CameraPosition cameraPosition
)

返回根据新的CameraPosition移动后的CameraUpdate.

主要用于改变地图的中心点、缩放级别、倾斜角、角度等信息

Implementation

static CameraUpdate newCameraPosition(CameraPosition cameraPosition) {
  return CameraUpdate._(
    <dynamic>['newCameraPosition', cameraPosition.toMap()],
  );
}