Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion samples/3d-accessibility-features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
tilt: 67.44,
heading: 0.01,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

// Set LatLng and title text for the markers. The first marker (Boynton Pass)
Expand Down Expand Up @@ -51,16 +50,16 @@

tourStops.forEach(({ position, title }, i) => {
const pin = new PinElement({
glyphText: `${i + 1}`,

Check warning on line 53 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression

Check warning on line 53 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression
scale: 1.5,
glyphColor: '#FFFFFF',
});
const popover = new PopoverElement();

const content = `${i + 1}. ${title}`;

Check warning on line 59 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression

Check warning on line 59 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression
const header = document.createElement('span');
// Include the label for screen readers.
header.ariaLabel = `This is marker ${i + 1}. ${title}`;

Check warning on line 62 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression

Check warning on line 62 in samples/3d-accessibility-features/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "number" of template literal expression
header.slot = 'header';

popover.append(header);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-camera-boundary/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ async function init() {
tilt: 67.5,
mode: 'HYBRID',
bounds: { south: -48.3, west: 163.56, north: -32.86, east: -180 },
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-camera-to-around/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async function init() {
range: 6062.016931506805,
tilt: 81.17100663963272,
heading: -56.047035719765596,
gestureHandling: 'COOPERATIVE',
});

map.mode = 'SATELLITE';
Expand Down
1 change: 0 additions & 1 deletion samples/3d-clamp-mode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
range: 4800,
heading: 31,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

polyline = new Polyline3DElement({
Expand Down Expand Up @@ -55,7 +54,7 @@
'selectElementId'
) as HTMLSelectElement;
dropdown.addEventListener('change', () => {
if (polyline && dropdown.value) {

Check warning on line 57 in samples/3d-clamp-mode/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Unnecessary conditional, value is always truthy
polyline.altitudeMode =
dropdown.value as google.maps.maps3d.AltitudeModeString;
}
Expand Down
1 change: 0 additions & 1 deletion samples/3d-label-toggle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function init() {
range: 6062.016931506805,
tilt: 81.17100663963272,
heading: -56.047035719765596,
gestureHandling: 'COOPERATIVE',
});

map.mode = 'SATELLITE';
Expand Down
1 change: 0 additions & 1 deletion samples/3d-localization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async function init() {
language: 'ZH',
region: 'CN',
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-map-styling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ async function init() {
range: 6605.57279990986,
mapId: 'bcce776b92de1336e22c569f', // Styles are associated with map IDs.
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-marker-click-event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ async function init() {
const map = new Map3DElement({
...originalCamera,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

// Create the interactive marker and set the attributes.
Expand Down
1 change: 0 additions & 1 deletion samples/3d-marker-collision-behavior/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
center: { lat: 47.6094, lng: -122.339, altitude: 0 },
range: 1000,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

for (const [lng, lat] of positions) {
Expand Down
1 change: 0 additions & 1 deletion samples/3d-marker-customization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async function init() {
tilt: 67.5,
range: 7000,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

map.mode = 'SATELLITE';
Expand Down
1 change: 0 additions & 1 deletion samples/3d-marker-graphics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ async function init() {
tilt: 67.5,
range: 4000,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

// [START maps_3d_marker_graphics_png]
Expand Down
1 change: 0 additions & 1 deletion samples/3d-marker-interactive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ async function init() {
tilt: 67.5,
range: 45000,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

map.mode = 'SATELLITE';
Expand Down
1 change: 0 additions & 1 deletion samples/3d-model-interactive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
tilt: 74,
heading: 0,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

const model = new Model3DInteractiveElement({
Expand Down
1 change: 0 additions & 1 deletion samples/3d-model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
tilt: 74,
heading: 0,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

const model = new Model3DElement({
Expand Down
1 change: 0 additions & 1 deletion samples/3d-places-autocomplete/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
heading: 0,
roll: 0,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand All @@ -34,11 +33,11 @@
await google.maps.importLibrary('places');

const placeAutocomplete = new PlaceAutocompleteElement();
placeAutocomplete.id = 'place-autocomplete-input';

Check warning on line 36 in samples/3d-places-autocomplete/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Unsafe member access .id on a type that cannot be resolved
const card = document.getElementById('pac-container')!;
card.appendChild(placeAutocomplete);

placeAutocomplete.addEventListener(

Check warning on line 40 in samples/3d-places-autocomplete/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Unsafe member access .addEventListener on a type that cannot be resolved
'gmp-select',
async ({
placePrediction,
Expand All @@ -49,7 +48,7 @@
});
// If the place has a geometry, then present it on a map.
if (!place.location) {
window.alert('No viewport for input: ' + place.displayName);

Check warning on line 51 in samples/3d-places-autocomplete/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid operand for a '+' operation. Operands must each be a number or string. Got `string | null | undefined`
return;
}
void flyToPlace(place);
Expand Down Expand Up @@ -107,9 +106,9 @@
locations: [location],
});

if (!elevationResponse?.results.length) {

Check warning on line 109 in samples/3d-places-autocomplete/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Unnecessary optional chain on a non-nullish value
window.alert(
`Insufficient elevation data for place: ${place.displayName}`

Check warning on line 111 in samples/3d-places-autocomplete/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid type "string | null | undefined" of template literal expression
);
return defaultElevation;
}
Expand Down
1 change: 0 additions & 1 deletion samples/3d-places/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
tilt: 64,
heading: -5,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map3DElement);
Expand All @@ -29,7 +28,7 @@

// Display place details.
document.getElementById('placeName')!.innerHTML =
'<b>Name :</b><br>&nbsp;' + place.displayName;

Check warning on line 31 in samples/3d-places/index.ts

View workflow job for this annotation

GitHub Actions / Playwright PR/Push Tests

Invalid operand for a '+' operation. Operands must each be a number or string. Got `string | null | undefined`
document.getElementById('placeId')!.innerHTML =
'<b>Id :</b><br>&nbsp;' + place.id;
document.getElementById('placeType')!.innerHTML = '<b>Types :<b/>';
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polygon-click-event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function init() {
heading: 340,
tilt: 70,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polygon-extruded-hole/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function init() {
heading: 340,
tilt: 70,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

const polygonOptions: google.maps.maps3d.Polygon3DElementOptions = {
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polygon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function init() {
heading: 340,
tilt: 70,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

const polygonOptions = {
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polyline-click-event/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
tilt: 64.01,
heading: 25.0,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polyline-extruded/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
tilt: 64.01,
heading: 25.0,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-polyline/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async function init() {
tilt: 64.01,
heading: 25.0,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-popover-location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ async function init() {
tilt: 74,
heading: 38,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

const popover = new PopoverElement({
Expand Down
1 change: 0 additions & 1 deletion samples/3d-popover-marker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ async function init() {
tilt: 74,
heading: 38,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

// Popovers can only be added to interactive Markers
Expand Down
1 change: 0 additions & 1 deletion samples/3d-simple-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ async function init() {
center: { lat: 37.7704, lng: -122.3985, altitude: 500 },
tilt: 67.5,
mode: 'HYBRID',
gestureHandling: 'COOPERATIVE',
});

document.body.append(map);
Expand Down
1 change: 0 additions & 1 deletion samples/3d-simple-marker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async function init() {
tilt: 67.5,
range: 1000,
mode: 'SATELLITE',
gestureHandling: 'COOPERATIVE',
});

const marker = new Marker3DElement({
Expand Down
Loading