Skip to content

Commit ca8da91

Browse files
refactor: Replace rounds with repeatCount in flyCameraAround calls (#804)
Update all 3D samples to use the repeatCount parameter instead of rounds in flyCameraAround function calls for consistency with the updated API. Co-authored-by: William French <[email protected]>
1 parent 4324198 commit ca8da91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/3d-camera-to-around/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function init() {
3939
// Length of time to fly to the location.
4040
durationMillis: 50000,
4141
// Number of rotations to make in the specified time.
42-
rounds: 1
42+
repeatCount: 1
4343
});
4444
}, {once: true}); // Stop animation after flying around.
4545

samples/3d-marker-click-event/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function initMap() {
3333
map.flyCameraAround({
3434
camera: originalCamera,
3535
durationMillis: 50000,
36-
rounds: 1
36+
repeatCount: 1
3737
});
3838
});
3939

0 commit comments

Comments
 (0)