Skip to content

Commit e5249eb

Browse files
Update dist folder [skip ci]
1 parent 9249841 commit e5249eb

381 files changed

Lines changed: 1744 additions & 1416 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/samples/3d-camera-position/app/index.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ async function initMap(): Promise<void> {
2121
const fovSlider = document.getElementById('fov') as HTMLInputElement;
2222
const rollSlider = document.getElementById('roll') as HTMLInputElement;
2323

24-
const headingVal = document.getElementById('heading-val') as HTMLElement;
25-
const tiltVal = document.getElementById('tilt-val') as HTMLElement;
26-
const rangeVal = document.getElementById('range-val') as HTMLElement;
27-
const altitudeVal = document.getElementById('altitude-val') as HTMLElement;
28-
const fovVal = document.getElementById('fov-val') as HTMLElement;
29-
const rollVal = document.getElementById('roll-val') as HTMLElement;
30-
const codeElem = document.getElementById('generated-code') as HTMLElement;
24+
const headingVal = document.getElementById('heading-val')!;
25+
const tiltVal = document.getElementById('tilt-val')!;
26+
const rangeVal = document.getElementById('range-val')!;
27+
const altitudeVal = document.getElementById('altitude-val')!;
28+
const fovVal = document.getElementById('fov-val')!;
29+
const rollVal = document.getElementById('roll-val')!;
30+
const codeElem = document.getElementById('generated-code')!;
3131
const copyBtn = document.getElementById('copy-btn') as HTMLButtonElement;
3232

3333
let currentAltitude = 30;
@@ -82,7 +82,7 @@ async function initMap(): Promise<void> {
8282
});
8383

8484
// Listen to slider changes using event delegation.
85-
const panel = document.querySelector('.panel') as HTMLElement;
85+
const panel = document.querySelector('.panel')!;
8686

8787
panel.addEventListener('input', (e) => {
8888
const target = e.target as HTMLInputElement;
@@ -121,7 +121,8 @@ async function initMap(): Promise<void> {
121121
};
122122
}
123123
} else {
124-
map3DElement[prop] = val;
124+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
125+
(map3DElement as any)[prop] = val;
125126
}
126127
updateUI();
127128
});

dist/samples/3d-camera-position/docs/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ async function initMap() {
109109
}
110110
}
111111
else {
112+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
112113
map3DElement[prop] = val;
113114
}
114115
updateUI();

dist/samples/3d-camera-position/docs/index.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ async function initMap(): Promise<void> {
2121
const fovSlider = document.getElementById('fov') as HTMLInputElement;
2222
const rollSlider = document.getElementById('roll') as HTMLInputElement;
2323

24-
const headingVal = document.getElementById('heading-val') as HTMLElement;
25-
const tiltVal = document.getElementById('tilt-val') as HTMLElement;
26-
const rangeVal = document.getElementById('range-val') as HTMLElement;
27-
const altitudeVal = document.getElementById('altitude-val') as HTMLElement;
28-
const fovVal = document.getElementById('fov-val') as HTMLElement;
29-
const rollVal = document.getElementById('roll-val') as HTMLElement;
30-
const codeElem = document.getElementById('generated-code') as HTMLElement;
24+
const headingVal = document.getElementById('heading-val')!;
25+
const tiltVal = document.getElementById('tilt-val')!;
26+
const rangeVal = document.getElementById('range-val')!;
27+
const altitudeVal = document.getElementById('altitude-val')!;
28+
const fovVal = document.getElementById('fov-val')!;
29+
const rollVal = document.getElementById('roll-val')!;
30+
const codeElem = document.getElementById('generated-code')!;
3131
const copyBtn = document.getElementById('copy-btn') as HTMLButtonElement;
3232

3333
let currentAltitude = 30;
@@ -82,7 +82,7 @@ async function initMap(): Promise<void> {
8282
});
8383

8484
// Listen to slider changes using event delegation.
85-
const panel = document.querySelector('.panel') as HTMLElement;
85+
const panel = document.querySelector('.panel')!;
8686

8787
panel.addEventListener('input', (e) => {
8888
const target = e.target as HTMLInputElement;
@@ -121,7 +121,8 @@ async function initMap(): Promise<void> {
121121
};
122122
}
123123
} else {
124-
map3DElement[prop] = val;
124+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
125+
(map3DElement as any)[prop] = val;
125126
}
126127
updateUI();
127128
});

dist/samples/3d-camera-position/jsfiddle/demo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ async function initMap() {
105105
};
106106
}
107107
} else {
108+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
108109
map3DElement[prop] = val;
109110
}
110111
updateUI();

dist/samples/3d-clamp-mode/app/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// [START maps_3d_clamp_mode]
8-
let polyline;
8+
let polyline: google.maps.maps3d.Polyline3DElement;
99

1010
async function init() {
1111
const { Map3DElement, Polyline3DElement } =
@@ -56,7 +56,8 @@ const dropdown = document.getElementById(
5656
) as HTMLSelectElement;
5757
dropdown.addEventListener('change', () => {
5858
if (polyline && dropdown.value) {
59-
polyline.altitudeMode = dropdown.value;
59+
polyline.altitudeMode =
60+
dropdown.value as google.maps.maps3d.AltitudeModeString;
6061
}
6162
});
6263

dist/samples/3d-clamp-mode/docs/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
// [START maps_3d_clamp_mode]
8-
let polyline;
8+
let polyline: google.maps.maps3d.Polyline3DElement;
99

1010
async function init() {
1111
const { Map3DElement, Polyline3DElement } =
@@ -56,7 +56,8 @@ const dropdown = document.getElementById(
5656
) as HTMLSelectElement;
5757
dropdown.addEventListener('change', () => {
5858
if (polyline && dropdown.value) {
59-
polyline.altitudeMode = dropdown.value;
59+
polyline.altitudeMode =
60+
dropdown.value as google.maps.maps3d.AltitudeModeString;
6061
}
6162
});
6263

dist/samples/3d-label-toggle/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ async function init() {
2727

2828
// Get the button element by its ID
2929
const toggleButton = document.getElementById('toggleButton')!;
30-
toggleButton.addEventListener('click', function () {
30+
toggleButton.addEventListener('click', () => {
3131
// Toggle the labels.
32-
if (map.mode == 'SATELLITE') {
32+
if (map.mode === 'SATELLITE') {
3333
// Setting the map mode to HYBRID turns the labels on.
3434
map.mode = 'HYBRID';
3535
toggleButton.innerText = 'Labels are on. (HYBRID)';

dist/samples/3d-label-toggle/dist/assets/index-E8DBn9fK.js renamed to dist/samples/3d-label-toggle/dist/assets/index-D9pWrcCl.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-label-toggle/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-E8DBn9fK.js"></script>
18+
<script type="module" crossorigin src="./assets/index-D9pWrcCl.js"></script>
1919
<link rel="stylesheet" crossorigin href="./assets/index-LHSP-L_e.css">
2020
</head>
2121
<body>

dist/samples/3d-label-toggle/docs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ async function init() {
2828

2929
// Get the button element by its ID
3030
const toggleButton = document.getElementById('toggleButton');
31-
toggleButton.addEventListener('click', function () {
31+
toggleButton.addEventListener('click', () => {
3232
// Toggle the labels.
33-
if (map.mode == 'SATELLITE') {
33+
if (map.mode === 'SATELLITE') {
3434
// Setting the map mode to HYBRID turns the labels on.
3535
map.mode = 'HYBRID';
3636
toggleButton.innerText = 'Labels are on. (HYBRID)';

0 commit comments

Comments
 (0)