# moveCamera method

Future <void> moveCamera (

1. CameraUpdate cameraUpdate,
2. {bool animated,
3. int duration}

)

改变地图视角

通过CameraUpdate对象设置新的中心点、缩放比例、放大缩小、显示区域等内容

可选属性`animated`用于控制是否执行动画移动

可选属性`duration`用于控制执行动画的时长,单位:毫秒

## Implementation

    Future<void> moveCamera(CameraUpdate cameraUpdate,
        {bool animated, int duration}) {
      assert(cameraUpdate != null);
      return _methodChannel.moveCamera(cameraUpdate,
          mapId: mapId, animated: animated, duration: duration);
    }