Skip to content

Commit 947b3d0

Browse files
committed
docs: document animateCamera
1 parent 7decdad commit 947b3d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ The `MapViewController` is provided via the `onMapViewControllerCreated` callbac
571571
| `removeCircle(id: string)` | `void` | Remove a circle by its ID |
572572
| `removeGroundOverlay(id: string)` | `void` | Remove a ground overlay by its ID |
573573
| `moveCamera(position: CameraPosition)` | `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)