GoogleMaps Framework Reference

  • GMSMutableCameraPosition is a mutable version of GMSCameraPosition, allowing for modification of camera properties.

  • It provides properties to control the camera's target location (target), zoom level (zoom), bearing/rotation (bearing), and viewing angle (viewingAngle).

  • Developers can use this class to create and manipulate camera positions within a map view dynamically.

GMSMutableCameraPosition

@interface GMSMutableCameraPosition : GMSCameraPosition

Mutable version of GMSCameraPosition.

  • Declaration

    Swift

    var target: CLLocationCoordinate2D { get set }

    Objective-C

    @property(nonatomic) CLLocationCoordinate2D target
  • Declaration

    Swift

    var zoom: Float { get set }

    Objective-C

    @property(nonatomic) float zoom
  • Declaration

    Swift

    var bearing: CLLocationDirection { get set }

    Objective-C

    @property(nonatomic) CLLocationDirection bearing
  • Declaration

    Swift

    var viewingAngle: Double { get set }

    Objective-C

    @property(nonatomic) double viewingAngle