目录

CameraPosition

Encapsulates all camera attributes.

Properties

Name

Type

Description

bearing

double

Direction that the camera is pointing at.

target

LatLng

Longitude and latitude of the location that the camera is pointing at.

tilt

double

Angle of the camera from the nadir (directly facing the Earth's surface).

zoom

double

Zoom level near the center of the screen.

Constructor Summary

Constructor

Definition

CameraPosition({double bearing, required LatLng target, double tilt, double zoom})

Creates a CameraPosition object.

CameraPosition.fromMap(dynamic json)

Creates a CameraPosition object from a map.

Constructors

[h2]CameraPosition

Creates a CameraPosition object.

Parameter

Type

Description

bearing

double

Direction that the camera is pointing at.

target

LatLng

Longitude and latitude of the location that the camera is pointing at.

tilt

double

Angle of the camera from the nadir (directly facing the Earth's surface).

zoom

double

Zoom level near the center of the screen.

[h2]CameraPosition.fromMap

Creates a CameraPosition object from a map.

Parameter

Type

Description

json

dynamic

Map as a source.