You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -570,7 +570,8 @@ The `MapViewController` is provided via the `onMapViewControllerCreated` callbac
570
570
|`removePolygon(id: string)`|`void`| Remove a polygon by its ID |
571
571
|`removeCircle(id: string)`|`void`| Remove a circle by its ID |
572
572
|`removeGroundOverlay(id: string)`|`void`| Remove a ground overlay by its ID |
573
-
|`moveCamera(position: CameraPosition)`|`void`| Move camera to a new position |
573
+
|`moveCamera(position: CameraPosition)`|`Promise<void>`| Move camera to a new position |
574
+
|`animateCamera(position: CameraPosition, duration?: number \| null)`|`Promise<void>`| Animate camera to a new position. Defaults to 500 ms when duration is omitted |
574
575
|`setZoomLevel(level: number)`|`void`| Set the map zoom level |
575
576
|`setPadding(padding: Padding)`|`void`| Set padding on the map |
576
577
|`getCameraPosition()`|`Promise<CameraPosition>`| Get the current camera position |
0 commit comments