Skip to content

Commit 96923ce

Browse files
committed
docs: document animateCamera
1 parent 7decdad commit 96923ce

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,8 @@ The `MapViewController` is provided via the `onMapViewControllerCreated` callbac
570570
| `removePolygon(id: string)` | `void` | Remove a polygon by its ID |
571571
| `removeCircle(id: string)` | `void` | Remove a circle by its ID |
572572
| `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 |
574575
| `setZoomLevel(level: number)` | `void` | Set the map zoom level |
575576
| `setPadding(padding: Padding)` | `void` | Set padding on the map |
576577
| `getCameraPosition()` | `Promise<CameraPosition>` | Get the current camera position |

0 commit comments

Comments
 (0)