Skip to content

Commit 3219e9a

Browse files
Update dist folder [skip ci] (#1461)
1 parent dfec2c4 commit 3219e9a

26 files changed

Lines changed: 139 additions & 18 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,19 @@ async function init() {
3737
};
3838

3939
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
40+
// [START maps_3d_camera_to_around_flyto]
4041
map.flyCameraTo({
4142
// Where we are going to.
4243
endCamera: flyToCamera,
4344
// How long we want the flight to take.
4445
durationMillis: 30000,
4546
});
46-
47+
// [END maps_3d_camera_to_around_flyto]
4748
// When the animation has completed, fly around the location.
4849
map.addEventListener(
4950
'gmp-animationend',
5051
() => {
52+
// [START maps_3d_camera_to_around_flyaround]
5153
map.flyCameraAround({
5254
// Location to fly around.
5355
camera: flyToCamera,
@@ -56,6 +58,7 @@ async function init() {
5658
// Number of rotations to make in the specified time.
5759
repeatCount: 1,
5860
});
61+
// [END maps_3d_camera_to_around_flyaround]
5962
},
6063
{ once: true }
6164
); // Stop animation after flying around.

dist/samples/3d-camera-to-around/docs/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ async function init() {
3838
};
3939

4040
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
41+
// [START maps_3d_camera_to_around_flyto]
4142
map.flyCameraTo({
4243
// Where we are going to.
4344
endCamera: flyToCamera,
4445
// How long we want the flight to take.
4546
durationMillis: 30000,
4647
});
47-
48+
// [END maps_3d_camera_to_around_flyto]
4849
// When the animation has completed, fly around the location.
4950
map.addEventListener(
5051
'gmp-animationend',
5152
() => {
53+
// [START maps_3d_camera_to_around_flyaround]
5254
map.flyCameraAround({
5355
// Location to fly around.
5456
camera: flyToCamera,
@@ -57,6 +59,7 @@ async function init() {
5759
// Number of rotations to make in the specified time.
5860
repeatCount: 1,
5961
});
62+
// [END maps_3d_camera_to_around_flyaround]
6063
},
6164
{ once: true }
6265
); // Stop animation after flying around.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,19 @@ async function init() {
3737
};
3838

3939
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
40+
// [START maps_3d_camera_to_around_flyto]
4041
map.flyCameraTo({
4142
// Where we are going to.
4243
endCamera: flyToCamera,
4344
// How long we want the flight to take.
4445
durationMillis: 30000,
4546
});
46-
47+
// [END maps_3d_camera_to_around_flyto]
4748
// When the animation has completed, fly around the location.
4849
map.addEventListener(
4950
'gmp-animationend',
5051
() => {
52+
// [START maps_3d_camera_to_around_flyaround]
5153
map.flyCameraAround({
5254
// Location to fly around.
5355
camera: flyToCamera,
@@ -56,6 +58,7 @@ async function init() {
5658
// Number of rotations to make in the specified time.
5759
repeatCount: 1,
5860
});
61+
// [END maps_3d_camera_to_around_flyaround]
5962
},
6063
{ once: true }
6164
); // Stop animation after flying around.

dist/samples/3d-camera-to-around/jsfiddle/demo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async function init() {
3737
};
3838

3939
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
40+
4041
map.flyCameraTo({
4142
// Where we are going to.
4243
endCamera: flyToCamera,

dist/samples/3d-marker-collision-behavior/app/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ async function init() {
2020
});
2121

2222
for (const [lng, lat] of positions) {
23+
// [START maps_3d_marker_collision_behavior_setbehavior]
2324
const marker = new Marker3DElement({
2425
position: { lat, lng },
2526
// Try setting a different collision behavior here.
2627
collisionBehavior: 'REQUIRED',
2728
});
29+
// [END maps_3d_marker_collision_behavior_setbehavior]
2830

2931
markers.push(marker);
3032
map.append(marker);
@@ -59,7 +61,7 @@ dropdown.addEventListener('change', drawMap);
5961
function drawMap() {
6062
for (const marker of markers) {
6163
marker.collisionBehavior =
62-
(dropdown.value as google.maps.CollisionBehavior) || 'REQUIRED';
64+
dropdown.value as google.maps.CollisionBehavior;
6365
}
6466
}
6567

dist/samples/3d-marker-collision-behavior/dist/assets/index-Bksae6wd.js renamed to dist/samples/3d-marker-collision-behavior/dist/assets/index-DdMMonGb.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/samples/3d-marker-collision-behavior/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"
1616
});
1717
</script>
18-
<script type="module" crossorigin src="./assets/index-Bksae6wd.js"></script>
18+
<script type="module" crossorigin src="./assets/index-DdMMonGb.js"></script>
1919
<link rel="stylesheet" crossorigin href="./assets/index-Cbor2Vab.css">
2020
</head>
2121
<body>

dist/samples/3d-marker-collision-behavior/docs/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ async function init() {
2121
});
2222

2323
for (const [lng, lat] of positions) {
24+
// [START maps_3d_marker_collision_behavior_setbehavior]
2425
const marker = new Marker3DElement({
2526
position: { lat, lng },
2627
// Try setting a different collision behavior here.
2728
collisionBehavior: 'REQUIRED',
2829
});
30+
// [END maps_3d_marker_collision_behavior_setbehavior]
2931

3032
markers.push(marker);
3133
map.append(marker);
@@ -57,7 +59,7 @@ dropdown.addEventListener('change', drawMap);
5759

5860
function drawMap() {
5961
for (const marker of markers) {
60-
marker.collisionBehavior = dropdown.value || 'REQUIRED';
62+
marker.collisionBehavior = dropdown.value;
6163
}
6264
}
6365

dist/samples/3d-marker-collision-behavior/docs/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ async function init() {
2020
});
2121

2222
for (const [lng, lat] of positions) {
23+
// [START maps_3d_marker_collision_behavior_setbehavior]
2324
const marker = new Marker3DElement({
2425
position: { lat, lng },
2526
// Try setting a different collision behavior here.
2627
collisionBehavior: 'REQUIRED',
2728
});
29+
// [END maps_3d_marker_collision_behavior_setbehavior]
2830

2931
markers.push(marker);
3032
map.append(marker);
@@ -59,7 +61,7 @@ dropdown.addEventListener('change', drawMap);
5961
function drawMap() {
6062
for (const marker of markers) {
6163
marker.collisionBehavior =
62-
(dropdown.value as google.maps.CollisionBehavior) || 'REQUIRED';
64+
dropdown.value as google.maps.CollisionBehavior;
6365
}
6466
}
6567

dist/samples/3d-marker-collision-behavior/jsfiddle/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ dropdown.addEventListener('change', drawMap);
5656

5757
function drawMap() {
5858
for (const marker of markers) {
59-
marker.collisionBehavior = dropdown.value || 'REQUIRED';
59+
marker.collisionBehavior = dropdown.value;
6060
}
6161
}

0 commit comments

Comments
 (0)