Skip to content

Commit 67220f5

Browse files
committed
updated fly camera to / around sample
1 parent d1c2024 commit 67220f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function init() {
1818
const { Map3DElement } = await google.maps.importLibrary("maps3d");
1919

2020
const map = new Map3DElement(
21-
{ center: { lat: 37.79810773998413, lng : -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272 ,heading: -56.047035719765596, }
21+
{ center: { lat: 37.79810773998413, lng : -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, }
2222
);
2323

2424
map.mode = "SATELLITE";
@@ -52,8 +52,8 @@ async function init() {
5252
}, {once: true}); // Stop after the flying around.
5353

5454
// At any time stop the animation.
55-
map3DElement.addEventListener('gmp-click', (event) => {
56-
map3DElement.stopCameraAnimation();
55+
map.addEventListener('gmp-click', (event) => {
56+
map.stopCameraAnimation();
5757
});
5858
}
5959

0 commit comments

Comments
 (0)