diff --git a/dist/samples/3d-accessibility-features/app/README.md b/dist/samples/3d-accessibility-features/app/README.md
index daa30216..f8ed1e1f 100644
--- a/dist/samples/3d-accessibility-features/app/README.md
+++ b/dist/samples/3d-accessibility-features/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-accessibility-features/app/index.html b/dist/samples/3d-accessibility-features/app/index.html
index df1c00cf..c13c0233 100644
--- a/dist/samples/3d-accessibility-features/app/index.html
+++ b/dist/samples/3d-accessibility-features/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-accessibility-features/app/index.ts b/dist/samples/3d-accessibility-features/app/index.ts
index df652e4b..fd1b0fb5 100644
--- a/dist/samples/3d-accessibility-features/app/index.ts
+++ b/dist/samples/3d-accessibility-features/app/index.ts
@@ -1,78 +1,82 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_accessibility_features]
async function initMap() {
- const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
+ await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
- const map = new Map3DElement({
- center: { lat: 34.8405, lng : -111.7909, altitude: 1322.70 }, range: 13279.50, tilt: 67.44 ,heading: 0.01,
- mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
- });
+ const map = new Map3DElement({
+ center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
+ range: 13279.5,
+ tilt: 67.44,
+ heading: 0.01,
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
+ });
- // Set LatLng and title text for the markers. The first marker (Boynton Pass)
- // receives the initial focus when tab is pressed. Use arrow keys to move
- // between markers; press tab again to cycle through the map controls.
- const tourStops = [
- {
- position: { lat: 34.8791806, lng: -111.8265049 },
- title: "Boynton Pass",
- },
- {
- position: { lat: 34.8559195, lng: -111.7988186 },
- title: "Airport Mesa",
- },
- {
- position: { lat: 34.832149, lng: -111.7695277 },
- title: "Chapel of the Holy Cross",
- },
- {
- position: { lat: 34.823736, lng: -111.8001857 },
- title: "Red Rock Crossing",
- },
- {
- position: { lat: 34.800326, lng: -111.7665047 },
- title: "Bell Rock",
- },
- ];
+ // Set LatLng and title text for the markers. The first marker (Boynton Pass)
+ // receives the initial focus when tab is pressed. Use arrow keys to move
+ // between markers; press tab again to cycle through the map controls.
+ const tourStops = [
+ {
+ position: { lat: 34.8791806, lng: -111.8265049 },
+ title: 'Boynton Pass',
+ },
+ {
+ position: { lat: 34.8559195, lng: -111.7988186 },
+ title: 'Airport Mesa',
+ },
+ {
+ position: { lat: 34.832149, lng: -111.7695277 },
+ title: 'Chapel of the Holy Cross',
+ },
+ {
+ position: { lat: 34.823736, lng: -111.8001857 },
+ title: 'Red Rock Crossing',
+ },
+ {
+ position: { lat: 34.800326, lng: -111.7665047 },
+ title: 'Bell Rock',
+ },
+ ];
- tourStops.forEach(({ position, title }, i) => {
- const pin = new PinElement({
- glyphText: `${i + 1}`,
- scale: 1.5,
- glyphColor: "#FFFFFF"
- });
- const popover = new PopoverElement();
+ tourStops.forEach(({ position, title }, i) => {
+ const pin = new PinElement({
+ glyphText: `${i + 1}`,
+ scale: 1.5,
+ glyphColor: '#FFFFFF',
+ });
+ const popover = new PopoverElement();
- const content = `${i + 1}. ${title}`;
- const header = document.createElement('span');
- // Include the label for screen readers.
- header.ariaLabel = `This is marker ${i + 1}. ${title}`;
- header.slot = 'header';
+ const content = `${i + 1}. ${title}`;
+ const header = document.createElement('span');
+ // Include the label for screen readers.
+ header.ariaLabel = `This is marker ${i + 1}. ${title}`;
+ header.slot = 'header';
- popover.append(header);
- popover.append(content);
+ popover.append(header);
+ popover.append(content);
- const interactiveMarker = new Marker3DInteractiveElement({
- // Include a title, used for accessibility text for use by screen readers.
- title,
- position,
- gmpPopoverTargetElement: popover
- });
+ const interactiveMarker = new Marker3DInteractiveElement({
+ // Include a title, used for accessibility text for use by screen readers.
+ title,
+ position,
+ gmpPopoverTargetElement: popover,
+ });
- interactiveMarker.append(pin);
+ interactiveMarker.append(pin);
- map.append(interactiveMarker);
- map.append(popover);
- });
+ map.append(interactiveMarker);
+ map.append(popover);
+ });
- document.body.append(map);
+ document.body.append(map);
}
initMap();
diff --git a/dist/samples/3d-accessibility-features/app/style.css b/dist/samples/3d-accessibility-features/app/style.css
index c4adcecb..f3967a21 100644
--- a/dist/samples/3d-accessibility-features/app/style.css
+++ b/dist/samples/3d-accessibility-features/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_accessibility_features] */
diff --git a/dist/samples/3d-accessibility-features/dist/index.html b/dist/samples/3d-accessibility-features/dist/index.html
index d3beebd7..225373e3 100644
--- a/dist/samples/3d-accessibility-features/dist/index.html
+++ b/dist/samples/3d-accessibility-features/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-accessibility-features/docs/index.html b/dist/samples/3d-accessibility-features/docs/index.html
index df1c00cf..c13c0233 100644
--- a/dist/samples/3d-accessibility-features/docs/index.html
+++ b/dist/samples/3d-accessibility-features/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-accessibility-features/docs/index.js b/dist/samples/3d-accessibility-features/docs/index.js
index 498f695d..b8e0bcec 100644
--- a/dist/samples/3d-accessibility-features/docs/index.js
+++ b/dist/samples/3d-accessibility-features/docs/index.js
@@ -1,18 +1,21 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_accessibility_features]
async function initMap() {
- const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
- center: { lat: 34.8405, lng: -111.7909, altitude: 1322.70 }, range: 13279.50, tilt: 67.44, heading: 0.01,
+ center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
+ range: 13279.5,
+ tilt: 67.44,
+ heading: 0.01,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
// receives the initial focus when tab is pressed. Use arrow keys to move
@@ -20,30 +23,30 @@ async function initMap() {
const tourStops = [
{
position: { lat: 34.8791806, lng: -111.8265049 },
- title: "Boynton Pass",
+ title: 'Boynton Pass',
},
{
position: { lat: 34.8559195, lng: -111.7988186 },
- title: "Airport Mesa",
+ title: 'Airport Mesa',
},
{
position: { lat: 34.832149, lng: -111.7695277 },
- title: "Chapel of the Holy Cross",
+ title: 'Chapel of the Holy Cross',
},
{
position: { lat: 34.823736, lng: -111.8001857 },
- title: "Red Rock Crossing",
+ title: 'Red Rock Crossing',
},
{
position: { lat: 34.800326, lng: -111.7665047 },
- title: "Bell Rock",
+ title: 'Bell Rock',
},
];
tourStops.forEach(({ position, title }, i) => {
const pin = new PinElement({
glyphText: `${i + 1}`,
scale: 1.5,
- glyphColor: "#FFFFFF"
+ glyphColor: '#FFFFFF',
});
const popover = new PopoverElement();
const content = `${i + 1}. ${title}`;
@@ -57,7 +60,7 @@ async function initMap() {
// Include a title, used for accessibility text for use by screen readers.
title,
position,
- gmpPopoverTargetElement: popover
+ gmpPopoverTargetElement: popover,
});
interactiveMarker.append(pin);
map.append(interactiveMarker);
diff --git a/dist/samples/3d-accessibility-features/docs/index.ts b/dist/samples/3d-accessibility-features/docs/index.ts
index df652e4b..fd1b0fb5 100644
--- a/dist/samples/3d-accessibility-features/docs/index.ts
+++ b/dist/samples/3d-accessibility-features/docs/index.ts
@@ -1,78 +1,82 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_accessibility_features]
async function initMap() {
- const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
+ await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
- const map = new Map3DElement({
- center: { lat: 34.8405, lng : -111.7909, altitude: 1322.70 }, range: 13279.50, tilt: 67.44 ,heading: 0.01,
- mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
- });
+ const map = new Map3DElement({
+ center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
+ range: 13279.5,
+ tilt: 67.44,
+ heading: 0.01,
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
+ });
- // Set LatLng and title text for the markers. The first marker (Boynton Pass)
- // receives the initial focus when tab is pressed. Use arrow keys to move
- // between markers; press tab again to cycle through the map controls.
- const tourStops = [
- {
- position: { lat: 34.8791806, lng: -111.8265049 },
- title: "Boynton Pass",
- },
- {
- position: { lat: 34.8559195, lng: -111.7988186 },
- title: "Airport Mesa",
- },
- {
- position: { lat: 34.832149, lng: -111.7695277 },
- title: "Chapel of the Holy Cross",
- },
- {
- position: { lat: 34.823736, lng: -111.8001857 },
- title: "Red Rock Crossing",
- },
- {
- position: { lat: 34.800326, lng: -111.7665047 },
- title: "Bell Rock",
- },
- ];
+ // Set LatLng and title text for the markers. The first marker (Boynton Pass)
+ // receives the initial focus when tab is pressed. Use arrow keys to move
+ // between markers; press tab again to cycle through the map controls.
+ const tourStops = [
+ {
+ position: { lat: 34.8791806, lng: -111.8265049 },
+ title: 'Boynton Pass',
+ },
+ {
+ position: { lat: 34.8559195, lng: -111.7988186 },
+ title: 'Airport Mesa',
+ },
+ {
+ position: { lat: 34.832149, lng: -111.7695277 },
+ title: 'Chapel of the Holy Cross',
+ },
+ {
+ position: { lat: 34.823736, lng: -111.8001857 },
+ title: 'Red Rock Crossing',
+ },
+ {
+ position: { lat: 34.800326, lng: -111.7665047 },
+ title: 'Bell Rock',
+ },
+ ];
- tourStops.forEach(({ position, title }, i) => {
- const pin = new PinElement({
- glyphText: `${i + 1}`,
- scale: 1.5,
- glyphColor: "#FFFFFF"
- });
- const popover = new PopoverElement();
+ tourStops.forEach(({ position, title }, i) => {
+ const pin = new PinElement({
+ glyphText: `${i + 1}`,
+ scale: 1.5,
+ glyphColor: '#FFFFFF',
+ });
+ const popover = new PopoverElement();
- const content = `${i + 1}. ${title}`;
- const header = document.createElement('span');
- // Include the label for screen readers.
- header.ariaLabel = `This is marker ${i + 1}. ${title}`;
- header.slot = 'header';
+ const content = `${i + 1}. ${title}`;
+ const header = document.createElement('span');
+ // Include the label for screen readers.
+ header.ariaLabel = `This is marker ${i + 1}. ${title}`;
+ header.slot = 'header';
- popover.append(header);
- popover.append(content);
+ popover.append(header);
+ popover.append(content);
- const interactiveMarker = new Marker3DInteractiveElement({
- // Include a title, used for accessibility text for use by screen readers.
- title,
- position,
- gmpPopoverTargetElement: popover
- });
+ const interactiveMarker = new Marker3DInteractiveElement({
+ // Include a title, used for accessibility text for use by screen readers.
+ title,
+ position,
+ gmpPopoverTargetElement: popover,
+ });
- interactiveMarker.append(pin);
+ interactiveMarker.append(pin);
- map.append(interactiveMarker);
- map.append(popover);
- });
+ map.append(interactiveMarker);
+ map.append(popover);
+ });
- document.body.append(map);
+ document.body.append(map);
}
initMap();
diff --git a/dist/samples/3d-accessibility-features/docs/style.css b/dist/samples/3d-accessibility-features/docs/style.css
index c4adcecb..f3967a21 100644
--- a/dist/samples/3d-accessibility-features/docs/style.css
+++ b/dist/samples/3d-accessibility-features/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_accessibility_features] */
diff --git a/dist/samples/3d-accessibility-features/jsfiddle/demo.css b/dist/samples/3d-accessibility-features/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-accessibility-features/jsfiddle/demo.css
+++ b/dist/samples/3d-accessibility-features/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-accessibility-features/jsfiddle/demo.html b/dist/samples/3d-accessibility-features/jsfiddle/demo.html
index f80f4564..9501b596 100644
--- a/dist/samples/3d-accessibility-features/jsfiddle/demo.html
+++ b/dist/samples/3d-accessibility-features/jsfiddle/demo.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-accessibility-features/jsfiddle/demo.js b/dist/samples/3d-accessibility-features/jsfiddle/demo.js
index 0469ac74..83c32ab2 100644
--- a/dist/samples/3d-accessibility-features/jsfiddle/demo.js
+++ b/dist/samples/3d-accessibility-features/jsfiddle/demo.js
@@ -1,18 +1,21 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function initMap() {
- const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
- center: { lat: 34.8405, lng: -111.7909, altitude: 1322.70 }, range: 13279.50, tilt: 67.44, heading: 0.01,
+ center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
+ range: 13279.5,
+ tilt: 67.44,
+ heading: 0.01,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
// receives the initial focus when tab is pressed. Use arrow keys to move
@@ -20,30 +23,30 @@ async function initMap() {
const tourStops = [
{
position: { lat: 34.8791806, lng: -111.8265049 },
- title: "Boynton Pass",
+ title: 'Boynton Pass',
},
{
position: { lat: 34.8559195, lng: -111.7988186 },
- title: "Airport Mesa",
+ title: 'Airport Mesa',
},
{
position: { lat: 34.832149, lng: -111.7695277 },
- title: "Chapel of the Holy Cross",
+ title: 'Chapel of the Holy Cross',
},
{
position: { lat: 34.823736, lng: -111.8001857 },
- title: "Red Rock Crossing",
+ title: 'Red Rock Crossing',
},
{
position: { lat: 34.800326, lng: -111.7665047 },
- title: "Bell Rock",
+ title: 'Bell Rock',
},
];
tourStops.forEach(({ position, title }, i) => {
const pin = new PinElement({
glyphText: `${i + 1}`,
scale: 1.5,
- glyphColor: "#FFFFFF"
+ glyphColor: '#FFFFFF',
});
const popover = new PopoverElement();
const content = `${i + 1}. ${title}`;
@@ -57,7 +60,7 @@ async function initMap() {
// Include a title, used for accessibility text for use by screen readers.
title,
position,
- gmpPopoverTargetElement: popover
+ gmpPopoverTargetElement: popover,
});
interactiveMarker.append(pin);
map.append(interactiveMarker);
diff --git a/dist/samples/3d-camera-boundary/app/README.md b/dist/samples/3d-camera-boundary/app/README.md
index 0618acf2..ee92fb9b 100644
--- a/dist/samples/3d-camera-boundary/app/README.md
+++ b/dist/samples/3d-camera-boundary/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-camera-boundary/app/index.html b/dist/samples/3d-camera-boundary/app/index.html
index b5333c30..52200a1b 100644
--- a/dist/samples/3d-camera-boundary/app/index.html
+++ b/dist/samples/3d-camera-boundary/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-boundary/app/index.ts b/dist/samples/3d-camera-boundary/app/index.ts
index 66dc84f7..bab2ee26 100644
--- a/dist/samples/3d-camera-boundary/app/index.ts
+++ b/dist/samples/3d-camera-boundary/app/index.ts
@@ -1,20 +1,20 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_boundary]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
center: { lat: -36.86, lng: 174.76, altitude: 10000 },
tilt: 67.5,
mode: 'HYBRID',
- bounds: {south: -48.30, west: 163.56, north: -32.86, east: -180},
- gestureHandling: "COOPERATIVE"
+ bounds: { south: -48.3, west: 163.56, north: -32.86, east: -180 },
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-camera-boundary/app/style.css b/dist/samples/3d-camera-boundary/app/style.css
index 33d3c467..ef386783 100644
--- a/dist/samples/3d-camera-boundary/app/style.css
+++ b/dist/samples/3d-camera-boundary/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_camera_boundary] */
diff --git a/dist/samples/3d-camera-boundary/dist/index.html b/dist/samples/3d-camera-boundary/dist/index.html
index 05e18869..4f7931af 100644
--- a/dist/samples/3d-camera-boundary/dist/index.html
+++ b/dist/samples/3d-camera-boundary/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-boundary/docs/index.html b/dist/samples/3d-camera-boundary/docs/index.html
index b5333c30..52200a1b 100644
--- a/dist/samples/3d-camera-boundary/docs/index.html
+++ b/dist/samples/3d-camera-boundary/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-boundary/docs/index.js b/dist/samples/3d-camera-boundary/docs/index.js
index a0dcbdcc..b8da0541 100644
--- a/dist/samples/3d-camera-boundary/docs/index.js
+++ b/dist/samples/3d-camera-boundary/docs/index.js
@@ -1,19 +1,19 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_boundary]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
center: { lat: -36.86, lng: 174.76, altitude: 10000 },
tilt: 67.5,
mode: 'HYBRID',
- bounds: { south: -48.30, west: 163.56, north: -32.86, east: -180 },
- gestureHandling: "COOPERATIVE"
+ bounds: { south: -48.3, west: 163.56, north: -32.86, east: -180 },
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-camera-boundary/docs/index.ts b/dist/samples/3d-camera-boundary/docs/index.ts
index 66dc84f7..bab2ee26 100644
--- a/dist/samples/3d-camera-boundary/docs/index.ts
+++ b/dist/samples/3d-camera-boundary/docs/index.ts
@@ -1,20 +1,20 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_boundary]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
center: { lat: -36.86, lng: 174.76, altitude: 10000 },
tilt: 67.5,
mode: 'HYBRID',
- bounds: {south: -48.30, west: 163.56, north: -32.86, east: -180},
- gestureHandling: "COOPERATIVE"
+ bounds: { south: -48.3, west: 163.56, north: -32.86, east: -180 },
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-camera-boundary/docs/style.css b/dist/samples/3d-camera-boundary/docs/style.css
index 33d3c467..ef386783 100644
--- a/dist/samples/3d-camera-boundary/docs/style.css
+++ b/dist/samples/3d-camera-boundary/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_camera_boundary] */
diff --git a/dist/samples/3d-camera-boundary/jsfiddle/demo.css b/dist/samples/3d-camera-boundary/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-camera-boundary/jsfiddle/demo.css
+++ b/dist/samples/3d-camera-boundary/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-camera-boundary/jsfiddle/demo.html b/dist/samples/3d-camera-boundary/jsfiddle/demo.html
index f80f4564..9501b596 100644
--- a/dist/samples/3d-camera-boundary/jsfiddle/demo.html
+++ b/dist/samples/3d-camera-boundary/jsfiddle/demo.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-boundary/jsfiddle/demo.js b/dist/samples/3d-camera-boundary/jsfiddle/demo.js
index 1a2bde82..8a480249 100644
--- a/dist/samples/3d-camera-boundary/jsfiddle/demo.js
+++ b/dist/samples/3d-camera-boundary/jsfiddle/demo.js
@@ -1,19 +1,19 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
center: { lat: -36.86, lng: 174.76, altitude: 10000 },
tilt: 67.5,
mode: 'HYBRID',
- bounds: { south: -48.30, west: 163.56, north: -32.86, east: -180 },
- gestureHandling: "COOPERATIVE"
+ bounds: { south: -48.3, west: 163.56, north: -32.86, east: -180 },
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-camera-to-around/app/README.md b/dist/samples/3d-camera-to-around/app/README.md
index fb27622d..b3415365 100644
--- a/dist/samples/3d-camera-to-around/app/README.md
+++ b/dist/samples/3d-camera-to-around/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-camera-to-around/app/index.html b/dist/samples/3d-camera-to-around/app/index.html
index 3d87866b..f1158341 100644
--- a/dist/samples/3d-camera-to-around/app/index.html
+++ b/dist/samples/3d-camera-to-around/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-to-around/app/index.ts b/dist/samples/3d-camera-to-around/app/index.ts
index c5d60517..465710c5 100644
--- a/dist/samples/3d-camera-to-around/app/index.ts
+++ b/dist/samples/3d-camera-to-around/app/index.ts
@@ -1,27 +1,41 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_to_around]
async function init() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
- const map = new Map3DElement(
- { center: { lat: 37.79810773998413, lng : -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" }
- );
+ const map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
document.body.append(map);
// Used for both the fly to function and the location to fly around.
- const flyToCamera = {
- center: { lat: 21.263523536467105, lng : -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542 ,heading: -44.59196007522445,
- };
+ const flyToCamera = {
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
+ };
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
map.flyCameraTo({
@@ -32,16 +46,20 @@ async function init() {
});
// When the animation has completed, fly around the location.
- map.addEventListener('gmp-animationend', () => {
- map.flyCameraAround({
- // Location to fly around.
- camera: flyToCamera,
- // Length of time to fly to the location.
- durationMillis: 50000,
- // Number of rotations to make in the specified time.
- repeatCount: 1
- });
- }, {once: true}); // Stop animation after flying around.
+ map.addEventListener(
+ 'gmp-animationend',
+ () => {
+ map.flyCameraAround({
+ // Location to fly around.
+ camera: flyToCamera,
+ // Length of time to fly to the location.
+ durationMillis: 50000,
+ // Number of rotations to make in the specified time.
+ repeatCount: 1,
+ });
+ },
+ { once: true }
+ ); // Stop animation after flying around.
// At any time stop the animation.
map.addEventListener('gmp-click', (event) => {
diff --git a/dist/samples/3d-camera-to-around/app/style.css b/dist/samples/3d-camera-to-around/app/style.css
index 5557b807..f035eae3 100644
--- a/dist/samples/3d-camera-to-around/app/style.css
+++ b/dist/samples/3d-camera-to-around/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_camera_to_around] */
diff --git a/dist/samples/3d-camera-to-around/dist/index.html b/dist/samples/3d-camera-to-around/dist/index.html
index 739236e5..eb6ba6cb 100644
--- a/dist/samples/3d-camera-to-around/dist/index.html
+++ b/dist/samples/3d-camera-to-around/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-to-around/docs/index.html b/dist/samples/3d-camera-to-around/docs/index.html
index 3d87866b..f1158341 100644
--- a/dist/samples/3d-camera-to-around/docs/index.html
+++ b/dist/samples/3d-camera-to-around/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-to-around/docs/index.js b/dist/samples/3d-camera-to-around/docs/index.js
index b024c484..80485e36 100644
--- a/dist/samples/3d-camera-to-around/docs/index.js
+++ b/dist/samples/3d-camera-to-around/docs/index.js
@@ -1,20 +1,36 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_to_around]
async function init() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
- const map = new Map3DElement({ center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" });
- map.mode = "SATELLITE";
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
+ const map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
+ map.mode = 'SATELLITE';
document.body.append(map);
// Used for both the fly to function and the location to fly around.
const flyToCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
map.flyCameraTo({
@@ -31,7 +47,7 @@ async function init() {
// Length of time to fly to the location.
durationMillis: 50000,
// Number of rotations to make in the specified time.
- repeatCount: 1
+ repeatCount: 1,
});
}, { once: true }); // Stop animation after flying around.
// At any time stop the animation.
diff --git a/dist/samples/3d-camera-to-around/docs/index.ts b/dist/samples/3d-camera-to-around/docs/index.ts
index c5d60517..465710c5 100644
--- a/dist/samples/3d-camera-to-around/docs/index.ts
+++ b/dist/samples/3d-camera-to-around/docs/index.ts
@@ -1,27 +1,41 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_camera_to_around]
async function init() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
- const map = new Map3DElement(
- { center: { lat: 37.79810773998413, lng : -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" }
- );
+ const map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
document.body.append(map);
// Used for both the fly to function and the location to fly around.
- const flyToCamera = {
- center: { lat: 21.263523536467105, lng : -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542 ,heading: -44.59196007522445,
- };
+ const flyToCamera = {
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
+ };
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
map.flyCameraTo({
@@ -32,16 +46,20 @@ async function init() {
});
// When the animation has completed, fly around the location.
- map.addEventListener('gmp-animationend', () => {
- map.flyCameraAround({
- // Location to fly around.
- camera: flyToCamera,
- // Length of time to fly to the location.
- durationMillis: 50000,
- // Number of rotations to make in the specified time.
- repeatCount: 1
- });
- }, {once: true}); // Stop animation after flying around.
+ map.addEventListener(
+ 'gmp-animationend',
+ () => {
+ map.flyCameraAround({
+ // Location to fly around.
+ camera: flyToCamera,
+ // Length of time to fly to the location.
+ durationMillis: 50000,
+ // Number of rotations to make in the specified time.
+ repeatCount: 1,
+ });
+ },
+ { once: true }
+ ); // Stop animation after flying around.
// At any time stop the animation.
map.addEventListener('gmp-click', (event) => {
diff --git a/dist/samples/3d-camera-to-around/docs/style.css b/dist/samples/3d-camera-to-around/docs/style.css
index 5557b807..f035eae3 100644
--- a/dist/samples/3d-camera-to-around/docs/style.css
+++ b/dist/samples/3d-camera-to-around/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_camera_to_around] */
diff --git a/dist/samples/3d-camera-to-around/jsfiddle/demo.css b/dist/samples/3d-camera-to-around/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-camera-to-around/jsfiddle/demo.css
+++ b/dist/samples/3d-camera-to-around/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-camera-to-around/jsfiddle/demo.html b/dist/samples/3d-camera-to-around/jsfiddle/demo.html
index f80f4564..9501b596 100644
--- a/dist/samples/3d-camera-to-around/jsfiddle/demo.html
+++ b/dist/samples/3d-camera-to-around/jsfiddle/demo.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-camera-to-around/jsfiddle/demo.js b/dist/samples/3d-camera-to-around/jsfiddle/demo.js
index 62845d70..c8ab09cf 100644
--- a/dist/samples/3d-camera-to-around/jsfiddle/demo.js
+++ b/dist/samples/3d-camera-to-around/jsfiddle/demo.js
@@ -1,20 +1,36 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function init() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
- const map = new Map3DElement({ center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" });
- map.mode = "SATELLITE";
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
+ const map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
+ map.mode = 'SATELLITE';
document.body.append(map);
// Used for both the fly to function and the location to fly around.
const flyToCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Fly the camera from San Francisco to Hawaii, can be controlled by a button alternatively.
map.flyCameraTo({
@@ -31,7 +47,7 @@ async function init() {
// Length of time to fly to the location.
durationMillis: 50000,
// Number of rotations to make in the specified time.
- repeatCount: 1
+ repeatCount: 1,
});
}, { once: true }); // Stop animation after flying around.
// At any time stop the animation.
diff --git a/dist/samples/3d-clamp-mode/app/README.md b/dist/samples/3d-clamp-mode/app/README.md
index de1b53f2..d15bc13d 100644
--- a/dist/samples/3d-clamp-mode/app/README.md
+++ b/dist/samples/3d-clamp-mode/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-clamp-mode/app/index.html b/dist/samples/3d-clamp-mode/app/index.html
index 0f8c36a7..ae29397d 100644
--- a/dist/samples/3d-clamp-mode/app/index.html
+++ b/dist/samples/3d-clamp-mode/app/index.html
@@ -6,27 +6,29 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-clamp-mode/app/index.ts b/dist/samples/3d-clamp-mode/app/index.ts
index e0887fba..e969361a 100644
--- a/dist/samples/3d-clamp-mode/app/index.ts
+++ b/dist/samples/3d-clamp-mode/app/index.ts
@@ -1,38 +1,43 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_clamp_mode]
let polyline;
async function init() {
- const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, AltitudeMode, Polyline3DElement } =
+ await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.660545553614604, lng: -122.4196302033452, altitude: 100 },
+ center: {
+ lat: 47.660545553614604,
+ lng: -122.4196302033452,
+ altitude: 100,
+ },
tilt: 61,
range: 4800,
heading: 31,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
polyline = new Polyline3DElement({
path: [
- { lat: 47.65890, lng: -122.43012, altitude: 10 },
- { lat: 47.65598, lng: -122.42500, altitude: 10 },
+ { lat: 47.6589, lng: -122.43012, altitude: 10 },
+ { lat: 47.65598, lng: -122.425, altitude: 10 },
{ lat: 47.65515, lng: -122.42219, altitude: 10 },
{ lat: 47.65623, lng: -122.41895, altitude: 10 },
{ lat: 47.65775, lng: -122.41426, altitude: 10 },
- { lat: 47.65770, lng: -122.41089, altitude: 10 },
+ { lat: 47.6577, lng: -122.41089, altitude: 10 },
{ lat: 47.66206, lng: -122.40507, altitude: 10 },
- { lat: 47.66370, lng: -122.40547, altitude: 10 },
+ { lat: 47.6637, lng: -122.40547, altitude: 10 },
{ lat: 47.66488, lng: -122.41075, altitude: 10 },
- { lat: 47.66620, lng: -122.40877, altitude: 10 },
- { lat: 47.67166, lng: -122.40812, altitude: 10 }
+ { lat: 47.6662, lng: -122.40877, altitude: 10 },
+ { lat: 47.67166, lng: -122.40812, altitude: 10 },
],
strokeColor: 'red',
strokeWidth: 5,
diff --git a/dist/samples/3d-clamp-mode/app/style.css b/dist/samples/3d-clamp-mode/app/style.css
index 7aa053ab..bdbb7bd7 100644
--- a/dist/samples/3d-clamp-mode/app/style.css
+++ b/dist/samples/3d-clamp-mode/app/style.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
position: absolute;
diff --git a/dist/samples/3d-clamp-mode/dist/index.html b/dist/samples/3d-clamp-mode/dist/index.html
index 2c8d53df..bc7b024e 100644
--- a/dist/samples/3d-clamp-mode/dist/index.html
+++ b/dist/samples/3d-clamp-mode/dist/index.html
@@ -6,27 +6,29 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-clamp-mode/docs/index.html b/dist/samples/3d-clamp-mode/docs/index.html
index 0f8c36a7..ae29397d 100644
--- a/dist/samples/3d-clamp-mode/docs/index.html
+++ b/dist/samples/3d-clamp-mode/docs/index.html
@@ -6,27 +6,29 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-clamp-mode/docs/index.js b/dist/samples/3d-clamp-mode/docs/index.js
index 47adbda5..83f2c579 100644
--- a/dist/samples/3d-clamp-mode/docs/index.js
+++ b/dist/samples/3d-clamp-mode/docs/index.js
@@ -1,35 +1,39 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_clamp_mode]
let polyline;
async function init() {
- const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.660545553614604, lng: -122.4196302033452, altitude: 100 },
+ center: {
+ lat: 47.660545553614604,
+ lng: -122.4196302033452,
+ altitude: 100,
+ },
tilt: 61,
range: 4800,
heading: 31,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
polyline = new Polyline3DElement({
path: [
- { lat: 47.65890, lng: -122.43012, altitude: 10 },
- { lat: 47.65598, lng: -122.42500, altitude: 10 },
+ { lat: 47.6589, lng: -122.43012, altitude: 10 },
+ { lat: 47.65598, lng: -122.425, altitude: 10 },
{ lat: 47.65515, lng: -122.42219, altitude: 10 },
{ lat: 47.65623, lng: -122.41895, altitude: 10 },
{ lat: 47.65775, lng: -122.41426, altitude: 10 },
- { lat: 47.65770, lng: -122.41089, altitude: 10 },
+ { lat: 47.6577, lng: -122.41089, altitude: 10 },
{ lat: 47.66206, lng: -122.40507, altitude: 10 },
- { lat: 47.66370, lng: -122.40547, altitude: 10 },
+ { lat: 47.6637, lng: -122.40547, altitude: 10 },
{ lat: 47.66488, lng: -122.41075, altitude: 10 },
- { lat: 47.66620, lng: -122.40877, altitude: 10 },
- { lat: 47.67166, lng: -122.40812, altitude: 10 }
+ { lat: 47.6662, lng: -122.40877, altitude: 10 },
+ { lat: 47.67166, lng: -122.40812, altitude: 10 },
],
strokeColor: 'red',
strokeWidth: 5,
diff --git a/dist/samples/3d-clamp-mode/docs/index.ts b/dist/samples/3d-clamp-mode/docs/index.ts
index e0887fba..e969361a 100644
--- a/dist/samples/3d-clamp-mode/docs/index.ts
+++ b/dist/samples/3d-clamp-mode/docs/index.ts
@@ -1,38 +1,43 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_clamp_mode]
let polyline;
async function init() {
- const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, AltitudeMode, Polyline3DElement } =
+ await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.660545553614604, lng: -122.4196302033452, altitude: 100 },
+ center: {
+ lat: 47.660545553614604,
+ lng: -122.4196302033452,
+ altitude: 100,
+ },
tilt: 61,
range: 4800,
heading: 31,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
polyline = new Polyline3DElement({
path: [
- { lat: 47.65890, lng: -122.43012, altitude: 10 },
- { lat: 47.65598, lng: -122.42500, altitude: 10 },
+ { lat: 47.6589, lng: -122.43012, altitude: 10 },
+ { lat: 47.65598, lng: -122.425, altitude: 10 },
{ lat: 47.65515, lng: -122.42219, altitude: 10 },
{ lat: 47.65623, lng: -122.41895, altitude: 10 },
{ lat: 47.65775, lng: -122.41426, altitude: 10 },
- { lat: 47.65770, lng: -122.41089, altitude: 10 },
+ { lat: 47.6577, lng: -122.41089, altitude: 10 },
{ lat: 47.66206, lng: -122.40507, altitude: 10 },
- { lat: 47.66370, lng: -122.40547, altitude: 10 },
+ { lat: 47.6637, lng: -122.40547, altitude: 10 },
{ lat: 47.66488, lng: -122.41075, altitude: 10 },
- { lat: 47.66620, lng: -122.40877, altitude: 10 },
- { lat: 47.67166, lng: -122.40812, altitude: 10 }
+ { lat: 47.6662, lng: -122.40877, altitude: 10 },
+ { lat: 47.67166, lng: -122.40812, altitude: 10 },
],
strokeColor: 'red',
strokeWidth: 5,
diff --git a/dist/samples/3d-clamp-mode/docs/style.css b/dist/samples/3d-clamp-mode/docs/style.css
index 7aa053ab..bdbb7bd7 100644
--- a/dist/samples/3d-clamp-mode/docs/style.css
+++ b/dist/samples/3d-clamp-mode/docs/style.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
position: absolute;
diff --git a/dist/samples/3d-clamp-mode/jsfiddle/demo.css b/dist/samples/3d-clamp-mode/jsfiddle/demo.css
index 66f79708..c2a677b7 100644
--- a/dist/samples/3d-clamp-mode/jsfiddle/demo.css
+++ b/dist/samples/3d-clamp-mode/jsfiddle/demo.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
position: absolute;
diff --git a/dist/samples/3d-clamp-mode/jsfiddle/demo.html b/dist/samples/3d-clamp-mode/jsfiddle/demo.html
index 66e66325..bc8ac7b1 100644
--- a/dist/samples/3d-clamp-mode/jsfiddle/demo.html
+++ b/dist/samples/3d-clamp-mode/jsfiddle/demo.html
@@ -6,27 +6,29 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-clamp-mode/jsfiddle/demo.js b/dist/samples/3d-clamp-mode/jsfiddle/demo.js
index e93b5032..fb9a2522 100644
--- a/dist/samples/3d-clamp-mode/jsfiddle/demo.js
+++ b/dist/samples/3d-clamp-mode/jsfiddle/demo.js
@@ -1,35 +1,39 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
let polyline;
async function init() {
- const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.660545553614604, lng: -122.4196302033452, altitude: 100 },
+ center: {
+ lat: 47.660545553614604,
+ lng: -122.4196302033452,
+ altitude: 100,
+ },
tilt: 61,
range: 4800,
heading: 31,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
polyline = new Polyline3DElement({
path: [
- { lat: 47.65890, lng: -122.43012, altitude: 10 },
- { lat: 47.65598, lng: -122.42500, altitude: 10 },
+ { lat: 47.6589, lng: -122.43012, altitude: 10 },
+ { lat: 47.65598, lng: -122.425, altitude: 10 },
{ lat: 47.65515, lng: -122.42219, altitude: 10 },
{ lat: 47.65623, lng: -122.41895, altitude: 10 },
{ lat: 47.65775, lng: -122.41426, altitude: 10 },
- { lat: 47.65770, lng: -122.41089, altitude: 10 },
+ { lat: 47.6577, lng: -122.41089, altitude: 10 },
{ lat: 47.66206, lng: -122.40507, altitude: 10 },
- { lat: 47.66370, lng: -122.40547, altitude: 10 },
+ { lat: 47.6637, lng: -122.40547, altitude: 10 },
{ lat: 47.66488, lng: -122.41075, altitude: 10 },
- { lat: 47.66620, lng: -122.40877, altitude: 10 },
- { lat: 47.67166, lng: -122.40812, altitude: 10 }
+ { lat: 47.6662, lng: -122.40877, altitude: 10 },
+ { lat: 47.67166, lng: -122.40812, altitude: 10 },
],
strokeColor: 'red',
strokeWidth: 5,
diff --git a/dist/samples/3d-label-toggle/app/README.md b/dist/samples/3d-label-toggle/app/README.md
index 373383de..14c6e5f4 100644
--- a/dist/samples/3d-label-toggle/app/README.md
+++ b/dist/samples/3d-label-toggle/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-label-toggle/app/index.html b/dist/samples/3d-label-toggle/app/index.html
index 897b664f..aa108ebb 100644
--- a/dist/samples/3d-label-toggle/app/index.html
+++ b/dist/samples/3d-label-toggle/app/index.html
@@ -6,20 +6,22 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
diff --git a/dist/samples/3d-label-toggle/app/index.ts b/dist/samples/3d-label-toggle/app/index.ts
index 39fc214c..98be3841 100644
--- a/dist/samples/3d-label-toggle/app/index.ts
+++ b/dist/samples/3d-label-toggle/app/index.ts
@@ -1,26 +1,40 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_label_toggle]
let map;
async function init() {
- const { Map3DElement, MapMode } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode } = await google.maps.importLibrary('maps3d');
- map = new Map3DElement(
- { center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" }
- );
+ map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
map.mode = MapMode.SATELLITE;
document.body.append(map);
const locationCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Get the button element by its ID
@@ -30,11 +44,13 @@ async function init() {
if (map.mode == MapMode.SATELLITE) {
// Setting the map mode to HYBRID turns the labels on.
map.mode = MapMode.HYBRID;
- document.getElementById('toggleButton').innerText = "Labels are on. (HYBRID)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are on. (HYBRID)';
} else {
// Setting the map mode to SATELLITE turns the labels on.
map.mode = MapMode.SATELLITE;
- document.getElementById('toggleButton').innerText = "Labels are off. (SATELLITE)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are off. (SATELLITE)';
}
});
}
diff --git a/dist/samples/3d-label-toggle/app/style.css b/dist/samples/3d-label-toggle/app/style.css
index 9c8246fc..3313da47 100644
--- a/dist/samples/3d-label-toggle/app/style.css
+++ b/dist/samples/3d-label-toggle/app/style.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
.toggleButton {
background: rgb(235, 235, 235);
diff --git a/dist/samples/3d-label-toggle/dist/index.html b/dist/samples/3d-label-toggle/dist/index.html
index 22488a68..b724904c 100644
--- a/dist/samples/3d-label-toggle/dist/index.html
+++ b/dist/samples/3d-label-toggle/dist/index.html
@@ -6,20 +6,22 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
diff --git a/dist/samples/3d-label-toggle/docs/index.html b/dist/samples/3d-label-toggle/docs/index.html
index 897b664f..aa108ebb 100644
--- a/dist/samples/3d-label-toggle/docs/index.html
+++ b/dist/samples/3d-label-toggle/docs/index.html
@@ -6,20 +6,22 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
diff --git a/dist/samples/3d-label-toggle/docs/index.js b/dist/samples/3d-label-toggle/docs/index.js
index 342e3af1..f9c95aa0 100644
--- a/dist/samples/3d-label-toggle/docs/index.js
+++ b/dist/samples/3d-label-toggle/docs/index.js
@@ -1,20 +1,36 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_label_toggle]
let map;
async function init() {
- const { Map3DElement, MapMode } = await google.maps.importLibrary("maps3d");
- map = new Map3DElement({ center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" });
+ const { Map3DElement, MapMode } = await google.maps.importLibrary('maps3d');
+ map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
map.mode = MapMode.SATELLITE;
document.body.append(map);
const locationCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Get the button element by its ID
const toggleButton = document.getElementById('toggleButton');
@@ -23,12 +39,14 @@ async function init() {
if (map.mode == MapMode.SATELLITE) {
// Setting the map mode to HYBRID turns the labels on.
map.mode = MapMode.HYBRID;
- document.getElementById('toggleButton').innerText = "Labels are on. (HYBRID)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are on. (HYBRID)';
}
else {
// Setting the map mode to SATELLITE turns the labels on.
map.mode = MapMode.SATELLITE;
- document.getElementById('toggleButton').innerText = "Labels are off. (SATELLITE)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are off. (SATELLITE)';
}
});
}
diff --git a/dist/samples/3d-label-toggle/docs/index.ts b/dist/samples/3d-label-toggle/docs/index.ts
index 39fc214c..98be3841 100644
--- a/dist/samples/3d-label-toggle/docs/index.ts
+++ b/dist/samples/3d-label-toggle/docs/index.ts
@@ -1,26 +1,40 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_label_toggle]
let map;
async function init() {
- const { Map3DElement, MapMode } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode } = await google.maps.importLibrary('maps3d');
- map = new Map3DElement(
- { center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" }
- );
+ map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
map.mode = MapMode.SATELLITE;
document.body.append(map);
const locationCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Get the button element by its ID
@@ -30,11 +44,13 @@ async function init() {
if (map.mode == MapMode.SATELLITE) {
// Setting the map mode to HYBRID turns the labels on.
map.mode = MapMode.HYBRID;
- document.getElementById('toggleButton').innerText = "Labels are on. (HYBRID)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are on. (HYBRID)';
} else {
// Setting the map mode to SATELLITE turns the labels on.
map.mode = MapMode.SATELLITE;
- document.getElementById('toggleButton').innerText = "Labels are off. (SATELLITE)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are off. (SATELLITE)';
}
});
}
diff --git a/dist/samples/3d-label-toggle/docs/style.css b/dist/samples/3d-label-toggle/docs/style.css
index 9c8246fc..3313da47 100644
--- a/dist/samples/3d-label-toggle/docs/style.css
+++ b/dist/samples/3d-label-toggle/docs/style.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
.toggleButton {
background: rgb(235, 235, 235);
diff --git a/dist/samples/3d-label-toggle/jsfiddle/demo.css b/dist/samples/3d-label-toggle/jsfiddle/demo.css
index c9ba50cd..15454bf3 100644
--- a/dist/samples/3d-label-toggle/jsfiddle/demo.css
+++ b/dist/samples/3d-label-toggle/jsfiddle/demo.css
@@ -9,12 +9,12 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
.toggleButton {
background: rgb(235, 235, 235);
diff --git a/dist/samples/3d-label-toggle/jsfiddle/demo.html b/dist/samples/3d-label-toggle/jsfiddle/demo.html
index 51f9b15f..d11a6fbb 100644
--- a/dist/samples/3d-label-toggle/jsfiddle/demo.html
+++ b/dist/samples/3d-label-toggle/jsfiddle/demo.html
@@ -6,20 +6,22 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
diff --git a/dist/samples/3d-label-toggle/jsfiddle/demo.js b/dist/samples/3d-label-toggle/jsfiddle/demo.js
index 24944fbb..2d1559d1 100644
--- a/dist/samples/3d-label-toggle/jsfiddle/demo.js
+++ b/dist/samples/3d-label-toggle/jsfiddle/demo.js
@@ -1,20 +1,36 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
let map;
async function init() {
- const { Map3DElement, MapMode } = await google.maps.importLibrary("maps3d");
- map = new Map3DElement({ center: { lat: 37.79810773998413, lng: -122.41784275049939, altitude: 89.08476932205978 }, range: 6062.016931506805, tilt: 81.17100663963272, heading: -56.047035719765596, gestureHandling: "COOPERATIVE" });
+ const { Map3DElement, MapMode } = await google.maps.importLibrary('maps3d');
+ map = new Map3DElement({
+ center: {
+ lat: 37.79810773998413,
+ lng: -122.41784275049939,
+ altitude: 89.08476932205978,
+ },
+ range: 6062.016931506805,
+ tilt: 81.17100663963272,
+ heading: -56.047035719765596,
+ gestureHandling: 'COOPERATIVE',
+ });
map.mode = MapMode.SATELLITE;
document.body.append(map);
const locationCamera = {
- center: { lat: 21.263523536467105, lng: -157.80663691939296, altitude: 80.28936069489404 },
- range: 1500.8202963253427, tilt: 76.9173260789542, heading: -44.59196007522445,
+ center: {
+ lat: 21.263523536467105,
+ lng: -157.80663691939296,
+ altitude: 80.28936069489404,
+ },
+ range: 1500.8202963253427,
+ tilt: 76.9173260789542,
+ heading: -44.59196007522445,
};
// Get the button element by its ID
const toggleButton = document.getElementById('toggleButton');
@@ -23,12 +39,14 @@ async function init() {
if (map.mode == MapMode.SATELLITE) {
// Setting the map mode to HYBRID turns the labels on.
map.mode = MapMode.HYBRID;
- document.getElementById('toggleButton').innerText = "Labels are on. (HYBRID)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are on. (HYBRID)';
}
else {
// Setting the map mode to SATELLITE turns the labels on.
map.mode = MapMode.SATELLITE;
- document.getElementById('toggleButton').innerText = "Labels are off. (SATELLITE)";
+ document.getElementById('toggleButton').innerText =
+ 'Labels are off. (SATELLITE)';
}
});
}
diff --git a/dist/samples/3d-localization/app/README.md b/dist/samples/3d-localization/app/README.md
index 19e62098..bdc9ffd5 100644
--- a/dist/samples/3d-localization/app/README.md
+++ b/dist/samples/3d-localization/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-localization/app/index.html b/dist/samples/3d-localization/app/index.html
index 2cc71617..0b942b61 100644
--- a/dist/samples/3d-localization/app/index.html
+++ b/dist/samples/3d-localization/app/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d localization
+
+ 3d localization
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-localization/app/index.ts b/dist/samples/3d-localization/app/index.ts
index 7ab8c911..b7a95d12 100644
--- a/dist/samples/3d-localization/app/index.ts
+++ b/dist/samples/3d-localization/app/index.ts
@@ -1,23 +1,27 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_localization]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 49.75371685807847, lng: -123.13227141171181, altitude: 30 },
+ center: {
+ lat: 49.75371685807847,
+ lng: -123.13227141171181,
+ altitude: 30,
+ },
tilt: 50.64793990040634,
heading: 44.480020261589154,
range: 51618.36056532338,
- language: "ZH",
- region: "CN",
+ language: 'ZH',
+ region: 'CN',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-localization/app/style.css b/dist/samples/3d-localization/app/style.css
index 2e64d2e8..0f530b12 100644
--- a/dist/samples/3d-localization/app/style.css
+++ b/dist/samples/3d-localization/app/style.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-localization/dist/index.html b/dist/samples/3d-localization/dist/index.html
index 7dc12b65..128c9bb1 100644
--- a/dist/samples/3d-localization/dist/index.html
+++ b/dist/samples/3d-localization/dist/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d localization
+
+ 3d localization
-
-
-
-
-
-
-
+
+
+
+
+
-
+
diff --git a/dist/samples/3d-localization/docs/index.html b/dist/samples/3d-localization/docs/index.html
index 2cc71617..0b942b61 100644
--- a/dist/samples/3d-localization/docs/index.html
+++ b/dist/samples/3d-localization/docs/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d localization
+
+ 3d localization
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-localization/docs/index.js b/dist/samples/3d-localization/docs/index.js
index a818c261..d8de4f7f 100644
--- a/dist/samples/3d-localization/docs/index.js
+++ b/dist/samples/3d-localization/docs/index.js
@@ -1,22 +1,26 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_localization]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 49.75371685807847, lng: -123.13227141171181, altitude: 30 },
+ center: {
+ lat: 49.75371685807847,
+ lng: -123.13227141171181,
+ altitude: 30,
+ },
tilt: 50.64793990040634,
heading: 44.480020261589154,
range: 51618.36056532338,
- language: "ZH",
- region: "CN",
+ language: 'ZH',
+ region: 'CN',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-localization/docs/index.ts b/dist/samples/3d-localization/docs/index.ts
index 7ab8c911..b7a95d12 100644
--- a/dist/samples/3d-localization/docs/index.ts
+++ b/dist/samples/3d-localization/docs/index.ts
@@ -1,23 +1,27 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_localization]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 49.75371685807847, lng: -123.13227141171181, altitude: 30 },
+ center: {
+ lat: 49.75371685807847,
+ lng: -123.13227141171181,
+ altitude: 30,
+ },
tilt: 50.64793990040634,
heading: 44.480020261589154,
range: 51618.36056532338,
- language: "ZH",
- region: "CN",
+ language: 'ZH',
+ region: 'CN',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-localization/docs/style.css b/dist/samples/3d-localization/docs/style.css
index 2e64d2e8..0f530b12 100644
--- a/dist/samples/3d-localization/docs/style.css
+++ b/dist/samples/3d-localization/docs/style.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-localization/jsfiddle/demo.css b/dist/samples/3d-localization/jsfiddle/demo.css
index 76f40072..c50e5fa5 100644
--- a/dist/samples/3d-localization/jsfiddle/demo.css
+++ b/dist/samples/3d-localization/jsfiddle/demo.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-localization/jsfiddle/demo.html b/dist/samples/3d-localization/jsfiddle/demo.html
index 7412dc4c..6d00e1f6 100644
--- a/dist/samples/3d-localization/jsfiddle/demo.html
+++ b/dist/samples/3d-localization/jsfiddle/demo.html
@@ -6,17 +6,16 @@
-->
-
- 3d localization
+
+ 3d localization
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-localization/jsfiddle/demo.js b/dist/samples/3d-localization/jsfiddle/demo.js
index 37a32d73..e72645b3 100644
--- a/dist/samples/3d-localization/jsfiddle/demo.js
+++ b/dist/samples/3d-localization/jsfiddle/demo.js
@@ -1,22 +1,26 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 49.75371685807847, lng: -123.13227141171181, altitude: 30 },
+ center: {
+ lat: 49.75371685807847,
+ lng: -123.13227141171181,
+ altitude: 30,
+ },
tilt: 50.64793990040634,
heading: 44.480020261589154,
range: 51618.36056532338,
- language: "ZH",
- region: "CN",
+ language: 'ZH',
+ region: 'CN',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-map-styling/app/README.md b/dist/samples/3d-map-styling/app/README.md
index c04920b0..b9d19a11 100644
--- a/dist/samples/3d-map-styling/app/README.md
+++ b/dist/samples/3d-map-styling/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-map-styling/app/index.html b/dist/samples/3d-map-styling/app/index.html
index 16841ab5..5ba90005 100644
--- a/dist/samples/3d-map-styling/app/index.html
+++ b/dist/samples/3d-map-styling/app/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d map styling
+
+ 3d map styling
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-map-styling/app/index.ts b/dist/samples/3d-map-styling/app/index.ts
index 4fc4c7b6..5bd8fc7d 100644
--- a/dist/samples/3d-map-styling/app/index.ts
+++ b/dist/samples/3d-map-styling/app/index.ts
@@ -1,22 +1,26 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_map_styling]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 37.75183154601466, lng: -119.52369070507672, altitude: 2200 },
+ center: {
+ lat: 37.75183154601466,
+ lng: -119.52369070507672,
+ altitude: 2200,
+ },
tilt: 67.5,
heading: 108.94057782079429,
range: 6605.57279990986,
mapId: 'bcce776b92de1336e22c569f',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-map-styling/app/style.css b/dist/samples/3d-map-styling/app/style.css
index ee63e98e..338a52ae 100644
--- a/dist/samples/3d-map-styling/app/style.css
+++ b/dist/samples/3d-map-styling/app/style.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-map-styling/dist/index.html b/dist/samples/3d-map-styling/dist/index.html
index aece735b..3939217a 100644
--- a/dist/samples/3d-map-styling/dist/index.html
+++ b/dist/samples/3d-map-styling/dist/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d map styling
+
+ 3d map styling
-
-
-
-
-
-
-
+
+
+
+
+
-
+
diff --git a/dist/samples/3d-map-styling/docs/index.html b/dist/samples/3d-map-styling/docs/index.html
index 16841ab5..5ba90005 100644
--- a/dist/samples/3d-map-styling/docs/index.html
+++ b/dist/samples/3d-map-styling/docs/index.html
@@ -6,17 +6,16 @@
-->
-
- 3d map styling
+
+ 3d map styling
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-map-styling/docs/index.js b/dist/samples/3d-map-styling/docs/index.js
index 40fb9d6f..f7415234 100644
--- a/dist/samples/3d-map-styling/docs/index.js
+++ b/dist/samples/3d-map-styling/docs/index.js
@@ -1,21 +1,25 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_map_styling]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 37.75183154601466, lng: -119.52369070507672, altitude: 2200 },
+ center: {
+ lat: 37.75183154601466,
+ lng: -119.52369070507672,
+ altitude: 2200,
+ },
tilt: 67.5,
heading: 108.94057782079429,
range: 6605.57279990986,
mapId: 'bcce776b92de1336e22c569f',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-map-styling/docs/index.ts b/dist/samples/3d-map-styling/docs/index.ts
index 4fc4c7b6..5bd8fc7d 100644
--- a/dist/samples/3d-map-styling/docs/index.ts
+++ b/dist/samples/3d-map-styling/docs/index.ts
@@ -1,22 +1,26 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
// [START maps_3d_map_styling]
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 37.75183154601466, lng: -119.52369070507672, altitude: 2200 },
+ center: {
+ lat: 37.75183154601466,
+ lng: -119.52369070507672,
+ altitude: 2200,
+ },
tilt: 67.5,
heading: 108.94057782079429,
range: 6605.57279990986,
mapId: 'bcce776b92de1336e22c569f',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
diff --git a/dist/samples/3d-map-styling/docs/style.css b/dist/samples/3d-map-styling/docs/style.css
index ee63e98e..338a52ae 100644
--- a/dist/samples/3d-map-styling/docs/style.css
+++ b/dist/samples/3d-map-styling/docs/style.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-map-styling/jsfiddle/demo.css b/dist/samples/3d-map-styling/jsfiddle/demo.css
index 76f40072..c50e5fa5 100644
--- a/dist/samples/3d-map-styling/jsfiddle/demo.css
+++ b/dist/samples/3d-map-styling/jsfiddle/demo.css
@@ -8,7 +8,7 @@
* that contains the map.
*/
#gmp-map-3d {
- height: 100%;
+ height: 100%;
}
html,
body {
diff --git a/dist/samples/3d-map-styling/jsfiddle/demo.html b/dist/samples/3d-map-styling/jsfiddle/demo.html
index 99715542..b6865b68 100644
--- a/dist/samples/3d-map-styling/jsfiddle/demo.html
+++ b/dist/samples/3d-map-styling/jsfiddle/demo.html
@@ -6,17 +6,16 @@
-->
-
- 3d map styling
+
+ 3d map styling
-
-
-
-
-
-
-
+
+
+
+
-
+
diff --git a/dist/samples/3d-map-styling/jsfiddle/demo.js b/dist/samples/3d-map-styling/jsfiddle/demo.js
index 069d161d..281e4aa7 100644
--- a/dist/samples/3d-map-styling/jsfiddle/demo.js
+++ b/dist/samples/3d-map-styling/jsfiddle/demo.js
@@ -1,21 +1,25 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
//@ts-nocheck
async function initMap() {
- const { Map3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 37.75183154601466, lng: -119.52369070507672, altitude: 2200 },
+ center: {
+ lat: 37.75183154601466,
+ lng: -119.52369070507672,
+ altitude: 2200,
+ },
tilt: 67.5,
heading: 108.94057782079429,
range: 6605.57279990986,
mapId: 'bcce776b92de1336e22c569f',
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
document.body.append(map);
}
diff --git a/dist/samples/3d-marker-click-event/app/README.md b/dist/samples/3d-marker-click-event/app/README.md
index 925e772d..633c755c 100644
--- a/dist/samples/3d-marker-click-event/app/README.md
+++ b/dist/samples/3d-marker-click-event/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-marker-click-event/app/index.html b/dist/samples/3d-marker-click-event/app/index.html
index b4073089..b325ee78 100644
--- a/dist/samples/3d-marker-click-event/app/index.html
+++ b/dist/samples/3d-marker-click-event/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-click-event/app/index.ts b/dist/samples/3d-marker-click-event/app/index.ts
index 44b55163..395a2e9c 100644
--- a/dist/samples/3d-marker-click-event/app/index.ts
+++ b/dist/samples/3d-marker-click-event/app/index.ts
@@ -1,32 +1,36 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_click_event]
async function initMap() {
// Include the interactive marker class
- const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, Marker3DInteractiveElement } =
+ await google.maps.importLibrary('maps3d');
// We will use this to place the camrea for the intial view but also to fly around the starting point.
const originalCamera = {
- center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0
+ center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 },
+ range: 1500,
+ tilt: 74,
+ heading: 0,
};
const map = new Map3DElement({
...originalCamera,
- mode: "SATELLITE",
- gestureHandling: "COOPERATIVE"
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
});
// Create the interactive marker and set the attributes.
const interactiveMarker = new Marker3DInteractiveElement({
position: { lat: 39.1178, lng: -106.4452, altitude: 100 },
- altitudeMode: "RELATIVE_TO_MESH",
+ altitudeMode: 'RELATIVE_TO_MESH',
extruded: true,
- label: "Mount Elbert"
+ label: 'Mount Elbert',
});
// Specify the action to take on click.
@@ -34,7 +38,7 @@ async function initMap() {
map.flyCameraAround({
camera: originalCamera,
durationMillis: 50000,
- repeatCount: 1
+ repeatCount: 1,
});
});
diff --git a/dist/samples/3d-marker-click-event/app/style.css b/dist/samples/3d-marker-click-event/app/style.css
index b6434892..a63da382 100644
--- a/dist/samples/3d-marker-click-event/app/style.css
+++ b/dist/samples/3d-marker-click-event/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_click_event] */
diff --git a/dist/samples/3d-marker-click-event/dist/index.html b/dist/samples/3d-marker-click-event/dist/index.html
index 75976a16..7d719d76 100644
--- a/dist/samples/3d-marker-click-event/dist/index.html
+++ b/dist/samples/3d-marker-click-event/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-click-event/docs/index.html b/dist/samples/3d-marker-click-event/docs/index.html
index b4073089..b325ee78 100644
--- a/dist/samples/3d-marker-click-event/docs/index.html
+++ b/dist/samples/3d-marker-click-event/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-click-event/docs/index.js b/dist/samples/3d-marker-click-event/docs/index.js
index 9ac0649f..0f369ad9 100644
--- a/dist/samples/3d-marker-click-event/docs/index.js
+++ b/dist/samples/3d-marker-click-event/docs/index.js
@@ -1,36 +1,39 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_click_event]
async function initMap() {
// Include the interactive marker class
- const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary('maps3d');
// We will use this to place the camrea for the intial view but also to fly around the starting point.
const originalCamera = {
- center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0
+ center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 },
+ range: 1500,
+ tilt: 74,
+ heading: 0,
};
const map = new Map3DElement({
...originalCamera,
- mode: "SATELLITE",
- gestureHandling: "COOPERATIVE"
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
});
// Create the interactive marker and set the attributes.
const interactiveMarker = new Marker3DInteractiveElement({
position: { lat: 39.1178, lng: -106.4452, altitude: 100 },
- altitudeMode: "RELATIVE_TO_MESH",
+ altitudeMode: 'RELATIVE_TO_MESH',
extruded: true,
- label: "Mount Elbert"
+ label: 'Mount Elbert',
});
// Specify the action to take on click.
interactiveMarker.addEventListener('gmp-click', (event) => {
map.flyCameraAround({
camera: originalCamera,
durationMillis: 50000,
- repeatCount: 1
+ repeatCount: 1,
});
});
map.append(interactiveMarker);
diff --git a/dist/samples/3d-marker-click-event/docs/index.ts b/dist/samples/3d-marker-click-event/docs/index.ts
index 44b55163..395a2e9c 100644
--- a/dist/samples/3d-marker-click-event/docs/index.ts
+++ b/dist/samples/3d-marker-click-event/docs/index.ts
@@ -1,32 +1,36 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_click_event]
async function initMap() {
// Include the interactive marker class
- const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, Marker3DInteractiveElement } =
+ await google.maps.importLibrary('maps3d');
// We will use this to place the camrea for the intial view but also to fly around the starting point.
const originalCamera = {
- center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0
+ center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 },
+ range: 1500,
+ tilt: 74,
+ heading: 0,
};
const map = new Map3DElement({
...originalCamera,
- mode: "SATELLITE",
- gestureHandling: "COOPERATIVE"
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
});
// Create the interactive marker and set the attributes.
const interactiveMarker = new Marker3DInteractiveElement({
position: { lat: 39.1178, lng: -106.4452, altitude: 100 },
- altitudeMode: "RELATIVE_TO_MESH",
+ altitudeMode: 'RELATIVE_TO_MESH',
extruded: true,
- label: "Mount Elbert"
+ label: 'Mount Elbert',
});
// Specify the action to take on click.
@@ -34,7 +38,7 @@ async function initMap() {
map.flyCameraAround({
camera: originalCamera,
durationMillis: 50000,
- repeatCount: 1
+ repeatCount: 1,
});
});
diff --git a/dist/samples/3d-marker-click-event/docs/style.css b/dist/samples/3d-marker-click-event/docs/style.css
index b6434892..a63da382 100644
--- a/dist/samples/3d-marker-click-event/docs/style.css
+++ b/dist/samples/3d-marker-click-event/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_click_event] */
diff --git a/dist/samples/3d-marker-click-event/jsfiddle/demo.css b/dist/samples/3d-marker-click-event/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-marker-click-event/jsfiddle/demo.css
+++ b/dist/samples/3d-marker-click-event/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-marker-click-event/jsfiddle/demo.html b/dist/samples/3d-marker-click-event/jsfiddle/demo.html
index f80f4564..9501b596 100644
--- a/dist/samples/3d-marker-click-event/jsfiddle/demo.html
+++ b/dist/samples/3d-marker-click-event/jsfiddle/demo.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-click-event/jsfiddle/demo.js b/dist/samples/3d-marker-click-event/jsfiddle/demo.js
index f506734e..f5090ac6 100644
--- a/dist/samples/3d-marker-click-event/jsfiddle/demo.js
+++ b/dist/samples/3d-marker-click-event/jsfiddle/demo.js
@@ -1,36 +1,39 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function initMap() {
// Include the interactive marker class
- const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, Marker3DInteractiveElement } = await google.maps.importLibrary('maps3d');
// We will use this to place the camrea for the intial view but also to fly around the starting point.
const originalCamera = {
- center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0
+ center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 },
+ range: 1500,
+ tilt: 74,
+ heading: 0,
};
const map = new Map3DElement({
...originalCamera,
- mode: "SATELLITE",
- gestureHandling: "COOPERATIVE"
+ mode: 'SATELLITE',
+ gestureHandling: 'COOPERATIVE',
});
// Create the interactive marker and set the attributes.
const interactiveMarker = new Marker3DInteractiveElement({
position: { lat: 39.1178, lng: -106.4452, altitude: 100 },
- altitudeMode: "RELATIVE_TO_MESH",
+ altitudeMode: 'RELATIVE_TO_MESH',
extruded: true,
- label: "Mount Elbert"
+ label: 'Mount Elbert',
});
// Specify the action to take on click.
interactiveMarker.addEventListener('gmp-click', (event) => {
map.flyCameraAround({
camera: originalCamera,
durationMillis: 50000,
- repeatCount: 1
+ repeatCount: 1,
});
});
map.append(interactiveMarker);
diff --git a/dist/samples/3d-marker-collision-behavior/app/README.md b/dist/samples/3d-marker-collision-behavior/app/README.md
index 52c25e59..72b7c79b 100644
--- a/dist/samples/3d-marker-collision-behavior/app/README.md
+++ b/dist/samples/3d-marker-collision-behavior/app/README.md
@@ -33,4 +33,3 @@ From `samples/`:
For feedback related to this sample, please open a new issue on
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
-
diff --git a/dist/samples/3d-marker-collision-behavior/app/index.html b/dist/samples/3d-marker-collision-behavior/app/index.html
index ad4d498d..ae4d73e5 100644
--- a/dist/samples/3d-marker-collision-behavior/app/index.html
+++ b/dist/samples/3d-marker-collision-behavior/app/index.html
@@ -6,27 +6,31 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-marker-collision-behavior/app/index.ts b/dist/samples/3d-marker-collision-behavior/app/index.ts
index 020629af..679820c4 100644
--- a/dist/samples/3d-marker-collision-behavior/app/index.ts
+++ b/dist/samples/3d-marker-collision-behavior/app/index.ts
@@ -1,8 +1,8 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_collision_behavior]
@@ -10,23 +10,24 @@ const markers = [];
async function init() {
// Request needed libraries.
- const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.6094, lng: -122.3390, altitude: 0 },
+ center: { lat: 47.6094, lng: -122.339, altitude: 0 },
range: 1000,
mode: MapMode.HYBRID,
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
for (const [lng, lat] of positions) {
const marker = new Marker3DElement({
- position: {lat, lng},
+ position: { lat, lng },
// Try setting a different collision behavior here.
- collisionBehavior: google.maps.CollisionBehavior.REQUIRED
+ collisionBehavior: google.maps.CollisionBehavior.REQUIRED,
});
- markers.push(marker)
+ markers.push(marker);
map.append(marker);
}
@@ -56,7 +57,8 @@ dropdown.addEventListener('change', drawMap);
function drawMap(event) {
for (const marker of markers) {
- marker.collisionBehavior = dropdown.value || google.maps.CollisionBehavior.REQUIRED;
+ marker.collisionBehavior =
+ dropdown.value || google.maps.CollisionBehavior.REQUIRED;
}
}
diff --git a/dist/samples/3d-marker-collision-behavior/app/style.css b/dist/samples/3d-marker-collision-behavior/app/style.css
index 6dfc5e12..6594b260 100644
--- a/dist/samples/3d-marker-collision-behavior/app/style.css
+++ b/dist/samples/3d-marker-collision-behavior/app/style.css
@@ -9,15 +9,15 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
padding: 2px;
float: right;
-}
+}
/* [END maps_3d_marker_collision_behavior] */
diff --git a/dist/samples/3d-marker-collision-behavior/dist/index.html b/dist/samples/3d-marker-collision-behavior/dist/index.html
index d9399062..9f231e12 100644
--- a/dist/samples/3d-marker-collision-behavior/dist/index.html
+++ b/dist/samples/3d-marker-collision-behavior/dist/index.html
@@ -6,27 +6,31 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-marker-collision-behavior/docs/index.html b/dist/samples/3d-marker-collision-behavior/docs/index.html
index ad4d498d..ae4d73e5 100644
--- a/dist/samples/3d-marker-collision-behavior/docs/index.html
+++ b/dist/samples/3d-marker-collision-behavior/docs/index.html
@@ -6,27 +6,31 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-marker-collision-behavior/docs/index.js b/dist/samples/3d-marker-collision-behavior/docs/index.js
index 921b8552..fc1ecba4 100644
--- a/dist/samples/3d-marker-collision-behavior/docs/index.js
+++ b/dist/samples/3d-marker-collision-behavior/docs/index.js
@@ -1,26 +1,26 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_collision_behavior]
const markers = [];
async function init() {
// Request needed libraries.
- const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.6094, lng: -122.3390, altitude: 0 },
+ center: { lat: 47.6094, lng: -122.339, altitude: 0 },
range: 1000,
mode: MapMode.HYBRID,
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
for (const [lng, lat] of positions) {
const marker = new Marker3DElement({
position: { lat, lng },
// Try setting a different collision behavior here.
- collisionBehavior: google.maps.CollisionBehavior.REQUIRED
+ collisionBehavior: google.maps.CollisionBehavior.REQUIRED,
});
markers.push(marker);
map.append(marker);
@@ -47,7 +47,8 @@ const dropdown = document.getElementById('selectElementId');
dropdown.addEventListener('change', drawMap);
function drawMap(event) {
for (const marker of markers) {
- marker.collisionBehavior = dropdown.value || google.maps.CollisionBehavior.REQUIRED;
+ marker.collisionBehavior =
+ dropdown.value || google.maps.CollisionBehavior.REQUIRED;
}
}
// [END maps_3d_marker_collision_behavior]
diff --git a/dist/samples/3d-marker-collision-behavior/docs/index.ts b/dist/samples/3d-marker-collision-behavior/docs/index.ts
index 020629af..679820c4 100644
--- a/dist/samples/3d-marker-collision-behavior/docs/index.ts
+++ b/dist/samples/3d-marker-collision-behavior/docs/index.ts
@@ -1,8 +1,8 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_collision_behavior]
@@ -10,23 +10,24 @@ const markers = [];
async function init() {
// Request needed libraries.
- const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.6094, lng: -122.3390, altitude: 0 },
+ center: { lat: 47.6094, lng: -122.339, altitude: 0 },
range: 1000,
mode: MapMode.HYBRID,
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
for (const [lng, lat] of positions) {
const marker = new Marker3DElement({
- position: {lat, lng},
+ position: { lat, lng },
// Try setting a different collision behavior here.
- collisionBehavior: google.maps.CollisionBehavior.REQUIRED
+ collisionBehavior: google.maps.CollisionBehavior.REQUIRED,
});
- markers.push(marker)
+ markers.push(marker);
map.append(marker);
}
@@ -56,7 +57,8 @@ dropdown.addEventListener('change', drawMap);
function drawMap(event) {
for (const marker of markers) {
- marker.collisionBehavior = dropdown.value || google.maps.CollisionBehavior.REQUIRED;
+ marker.collisionBehavior =
+ dropdown.value || google.maps.CollisionBehavior.REQUIRED;
}
}
diff --git a/dist/samples/3d-marker-collision-behavior/docs/style.css b/dist/samples/3d-marker-collision-behavior/docs/style.css
index 6dfc5e12..6594b260 100644
--- a/dist/samples/3d-marker-collision-behavior/docs/style.css
+++ b/dist/samples/3d-marker-collision-behavior/docs/style.css
@@ -9,15 +9,15 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
padding: 2px;
float: right;
-}
+}
/* [END maps_3d_marker_collision_behavior] */
diff --git a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.css b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.css
index 1576844e..9544a69d 100644
--- a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.css
+++ b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.css
@@ -9,15 +9,15 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
selector {
padding: 2px;
float: right;
-}
+}
diff --git a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.html b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.html
index 8888aeb0..b0a43e15 100644
--- a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.html
+++ b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.html
@@ -6,27 +6,31 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
diff --git a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.js b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.js
index 0f532828..d2ebebfa 100644
--- a/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.js
+++ b/dist/samples/3d-marker-collision-behavior/jsfiddle/demo.js
@@ -1,26 +1,26 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
const markers = [];
async function init() {
// Request needed libraries.
- const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary("maps3d");
+ const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary('maps3d');
const map = new Map3DElement({
- center: { lat: 47.6094, lng: -122.3390, altitude: 0 },
+ center: { lat: 47.6094, lng: -122.339, altitude: 0 },
range: 1000,
mode: MapMode.HYBRID,
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
for (const [lng, lat] of positions) {
const marker = new Marker3DElement({
position: { lat, lng },
// Try setting a different collision behavior here.
- collisionBehavior: google.maps.CollisionBehavior.REQUIRED
+ collisionBehavior: google.maps.CollisionBehavior.REQUIRED,
});
markers.push(marker);
map.append(marker);
@@ -47,7 +47,8 @@ const dropdown = document.getElementById('selectElementId');
dropdown.addEventListener('change', drawMap);
function drawMap(event) {
for (const marker of markers) {
- marker.collisionBehavior = dropdown.value || google.maps.CollisionBehavior.REQUIRED;
+ marker.collisionBehavior =
+ dropdown.value || google.maps.CollisionBehavior.REQUIRED;
}
}
diff --git a/dist/samples/3d-marker-customization/app/README.md b/dist/samples/3d-marker-customization/app/README.md
index d00593d7..58e90e67 100644
--- a/dist/samples/3d-marker-customization/app/README.md
+++ b/dist/samples/3d-marker-customization/app/README.md
@@ -32,4 +32,4 @@ From `samples/`:
## Feedback
For feedback related to this sample, please open a new issue on
-[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
\ No newline at end of file
+[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
diff --git a/dist/samples/3d-marker-customization/app/index.html b/dist/samples/3d-marker-customization/app/index.html
index 4eab5754..027d5995 100644
--- a/dist/samples/3d-marker-customization/app/index.html
+++ b/dist/samples/3d-marker-customization/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
-
\ No newline at end of file
+
diff --git a/dist/samples/3d-marker-customization/app/index.ts b/dist/samples/3d-marker-customization/app/index.ts
index 2ff7405e..f0118f82 100644
--- a/dist/samples/3d-marker-customization/app/index.ts
+++ b/dist/samples/3d-marker-customization/app/index.ts
@@ -1,24 +1,25 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_customization]
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
tilt: 67.5,
range: 7000,
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
// Change the border color.
const pinBorder = new PinElement({
@@ -32,7 +33,7 @@ async function init() {
// Add a label.
const markerWithLabel = new Marker3DElement({
position: { lat: 37.419, lng: -122.03 },
- label: 'Simple label'
+ label: 'Simple label',
});
// Adjust the scale.
@@ -63,7 +64,7 @@ async function init() {
const markerWithGlyphText = new Marker3DElement({
position: { lat: 37.415, lng: -122.015, altitude: 50 },
extruded: true,
- altitudeMode: "RELATIVE_TO_GROUND",
+ altitudeMode: 'RELATIVE_TO_GROUND',
});
markerWithGlyphText.append(pinTextGlyph);
diff --git a/dist/samples/3d-marker-customization/app/style.css b/dist/samples/3d-marker-customization/app/style.css
index efbeb555..caa73d3b 100644
--- a/dist/samples/3d-marker-customization/app/style.css
+++ b/dist/samples/3d-marker-customization/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_customization] */
diff --git a/dist/samples/3d-marker-customization/dist/index.html b/dist/samples/3d-marker-customization/dist/index.html
index ed57765f..e7f25f2d 100644
--- a/dist/samples/3d-marker-customization/dist/index.html
+++ b/dist/samples/3d-marker-customization/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
-
\ No newline at end of file
+
diff --git a/dist/samples/3d-marker-customization/docs/index.html b/dist/samples/3d-marker-customization/docs/index.html
index 4eab5754..027d5995 100644
--- a/dist/samples/3d-marker-customization/docs/index.html
+++ b/dist/samples/3d-marker-customization/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
-
\ No newline at end of file
+
diff --git a/dist/samples/3d-marker-customization/docs/index.js b/dist/samples/3d-marker-customization/docs/index.js
index 5a834dc0..3edda008 100644
--- a/dist/samples/3d-marker-customization/docs/index.js
+++ b/dist/samples/3d-marker-customization/docs/index.js
@@ -1,22 +1,22 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_customization]
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
tilt: 67.5,
range: 7000,
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
// Change the border color.
const pinBorder = new PinElement({
borderColor: '#FFFFFF',
@@ -28,7 +28,7 @@ async function init() {
// Add a label.
const markerWithLabel = new Marker3DElement({
position: { lat: 37.419, lng: -122.03 },
- label: 'Simple label'
+ label: 'Simple label',
});
// Adjust the scale.
const pinScaled = new PinElement({
@@ -56,7 +56,7 @@ async function init() {
const markerWithGlyphText = new Marker3DElement({
position: { lat: 37.415, lng: -122.015, altitude: 50 },
extruded: true,
- altitudeMode: "RELATIVE_TO_GROUND",
+ altitudeMode: 'RELATIVE_TO_GROUND',
});
markerWithGlyphText.append(pinTextGlyph);
// Hide the glyph.
diff --git a/dist/samples/3d-marker-customization/docs/index.ts b/dist/samples/3d-marker-customization/docs/index.ts
index 2ff7405e..f0118f82 100644
--- a/dist/samples/3d-marker-customization/docs/index.ts
+++ b/dist/samples/3d-marker-customization/docs/index.ts
@@ -1,24 +1,25 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_customization]
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
tilt: 67.5,
range: 7000,
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
// Change the border color.
const pinBorder = new PinElement({
@@ -32,7 +33,7 @@ async function init() {
// Add a label.
const markerWithLabel = new Marker3DElement({
position: { lat: 37.419, lng: -122.03 },
- label: 'Simple label'
+ label: 'Simple label',
});
// Adjust the scale.
@@ -63,7 +64,7 @@ async function init() {
const markerWithGlyphText = new Marker3DElement({
position: { lat: 37.415, lng: -122.015, altitude: 50 },
extruded: true,
- altitudeMode: "RELATIVE_TO_GROUND",
+ altitudeMode: 'RELATIVE_TO_GROUND',
});
markerWithGlyphText.append(pinTextGlyph);
diff --git a/dist/samples/3d-marker-customization/docs/style.css b/dist/samples/3d-marker-customization/docs/style.css
index efbeb555..caa73d3b 100644
--- a/dist/samples/3d-marker-customization/docs/style.css
+++ b/dist/samples/3d-marker-customization/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_customization] */
diff --git a/dist/samples/3d-marker-customization/jsfiddle/demo.css b/dist/samples/3d-marker-customization/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-marker-customization/jsfiddle/demo.css
+++ b/dist/samples/3d-marker-customization/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-marker-customization/jsfiddle/demo.html b/dist/samples/3d-marker-customization/jsfiddle/demo.html
index 587eabf5..9501b596 100644
--- a/dist/samples/3d-marker-customization/jsfiddle/demo.html
+++ b/dist/samples/3d-marker-customization/jsfiddle/demo.html
@@ -6,17 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
diff --git a/dist/samples/3d-marker-customization/jsfiddle/demo.js b/dist/samples/3d-marker-customization/jsfiddle/demo.js
index 709ed580..309c6d57 100644
--- a/dist/samples/3d-marker-customization/jsfiddle/demo.js
+++ b/dist/samples/3d-marker-customization/jsfiddle/demo.js
@@ -1,22 +1,22 @@
"use strict";
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d");
- const { PinElement } = await google.maps.importLibrary("marker");
+ const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d');
+ const { PinElement } = await google.maps.importLibrary('marker');
const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
tilt: 67.5,
range: 7000,
mode: 'HYBRID',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
- map.mode = "SATELLITE";
+ map.mode = 'SATELLITE';
// Change the border color.
const pinBorder = new PinElement({
borderColor: '#FFFFFF',
@@ -28,7 +28,7 @@ async function init() {
// Add a label.
const markerWithLabel = new Marker3DElement({
position: { lat: 37.419, lng: -122.03 },
- label: 'Simple label'
+ label: 'Simple label',
});
// Adjust the scale.
const pinScaled = new PinElement({
@@ -56,7 +56,7 @@ async function init() {
const markerWithGlyphText = new Marker3DElement({
position: { lat: 37.415, lng: -122.015, altitude: 50 },
extruded: true,
- altitudeMode: "RELATIVE_TO_GROUND",
+ altitudeMode: 'RELATIVE_TO_GROUND',
});
markerWithGlyphText.append(pinTextGlyph);
// Hide the glyph.
diff --git a/dist/samples/3d-marker-graphics/app/README.md b/dist/samples/3d-marker-graphics/app/README.md
index 4ad15ad6..2f84f557 100644
--- a/dist/samples/3d-marker-graphics/app/README.md
+++ b/dist/samples/3d-marker-graphics/app/README.md
@@ -32,4 +32,4 @@ From `samples/`:
## Feedback
For feedback related to this sample, please open a new issue on
-[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
\ No newline at end of file
+[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
diff --git a/dist/samples/3d-marker-graphics/app/index.html b/dist/samples/3d-marker-graphics/app/index.html
index 02aa8579..cd71d1d0 100644
--- a/dist/samples/3d-marker-graphics/app/index.html
+++ b/dist/samples/3d-marker-graphics/app/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-graphics/app/index.ts b/dist/samples/3d-marker-graphics/app/index.ts
index e74a9132..b96060e7 100644
--- a/dist/samples/3d-marker-graphics/app/index.ts
+++ b/dist/samples/3d-marker-graphics/app/index.ts
@@ -1,13 +1,14 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_graphics]
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d');
+ const { Map3DElement, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const { Place } = await google.maps.importLibrary('places');
@@ -16,7 +17,7 @@ async function init() {
tilt: 67.5,
range: 4000,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// A marker with a with a URL pointing to a PNG.
@@ -33,7 +34,8 @@ async function init() {
map.append(beachFlagMarker);
// A marker with a custom SVG glyph and white background.
- const glyphImgUrl = 'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
+ const glyphImgUrl =
+ 'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
const glyphSvgPinElement = new PinElement({
background: 'white',
glyphSrc: new URL(glyphImgUrl),
@@ -41,7 +43,7 @@ async function init() {
const glyphSvgMarker = new Marker3DElement({
position: { lat: 37.425, lng: -122.07, altitude: 100 },
extruded: true,
- altitudeMode: "ABSOLUTE"
+ altitudeMode: 'ABSOLUTE',
});
glyphSvgMarker.append(glyphSvgPinElement);
@@ -57,7 +59,14 @@ async function init() {
});
// Call fetchFields, passing the desired data fields.
- await place.fetchFields({ fields: ['location', 'displayName', 'svgIconMaskURI', 'iconBackgroundColor'] });
+ await place.fetchFields({
+ fields: [
+ 'location',
+ 'displayName',
+ 'svgIconMaskURI',
+ 'iconBackgroundColor',
+ ],
+ });
const pinElement = new PinElement({
background: place.iconBackgroundColor,
@@ -74,11 +83,14 @@ async function init() {
const parser = new DOMParser();
// A marker with a custom inline SVG.
- const pinSvgString = '';
+ const pinSvgString =
+ '';
// Read the svg string.
- const pinSvg =
- parser.parseFromString(pinSvgString, 'image/svg+xml').documentElement;
+ const pinSvg = parser.parseFromString(
+ pinSvgString,
+ 'image/svg+xml'
+ ).documentElement;
const markerWithCustomSvg = new Marker3DElement({
position: { lat: 37.425, lng: -122.094 },
diff --git a/dist/samples/3d-marker-graphics/app/style.css b/dist/samples/3d-marker-graphics/app/style.css
index 824704a3..8c488040 100644
--- a/dist/samples/3d-marker-graphics/app/style.css
+++ b/dist/samples/3d-marker-graphics/app/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_graphics] */
diff --git a/dist/samples/3d-marker-graphics/dist/index.html b/dist/samples/3d-marker-graphics/dist/index.html
index 42490ac9..450ad673 100644
--- a/dist/samples/3d-marker-graphics/dist/index.html
+++ b/dist/samples/3d-marker-graphics/dist/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-graphics/docs/index.html b/dist/samples/3d-marker-graphics/docs/index.html
index 02aa8579..cd71d1d0 100644
--- a/dist/samples/3d-marker-graphics/docs/index.html
+++ b/dist/samples/3d-marker-graphics/docs/index.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-graphics/docs/index.js b/dist/samples/3d-marker-graphics/docs/index.js
index b6792788..27045d72 100644
--- a/dist/samples/3d-marker-graphics/docs/index.js
+++ b/dist/samples/3d-marker-graphics/docs/index.js
@@ -1,8 +1,8 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_graphics]
async function init() {
@@ -14,7 +14,7 @@ async function init() {
tilt: 67.5,
range: 4000,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// A marker with a with a URL pointing to a PNG.
const beachFlagImg = document.createElement('img');
@@ -35,7 +35,7 @@ async function init() {
const glyphSvgMarker = new Marker3DElement({
position: { lat: 37.425, lng: -122.07, altitude: 100 },
extruded: true,
- altitudeMode: "ABSOLUTE"
+ altitudeMode: 'ABSOLUTE',
});
glyphSvgMarker.append(glyphSvgPinElement);
try {
@@ -49,7 +49,14 @@ async function init() {
id: 'ChIJN5Nz71W3j4ARhx5bwpTQEGg',
});
// Call fetchFields, passing the desired data fields.
- await place.fetchFields({ fields: ['location', 'displayName', 'svgIconMaskURI', 'iconBackgroundColor'] });
+ await place.fetchFields({
+ fields: [
+ 'location',
+ 'displayName',
+ 'svgIconMaskURI',
+ 'iconBackgroundColor',
+ ],
+ });
const pinElement = new PinElement({
background: place.iconBackgroundColor,
glyphSrc: new URL(String(place.svgIconMaskURI)),
diff --git a/dist/samples/3d-marker-graphics/docs/index.ts b/dist/samples/3d-marker-graphics/docs/index.ts
index e74a9132..b96060e7 100644
--- a/dist/samples/3d-marker-graphics/docs/index.ts
+++ b/dist/samples/3d-marker-graphics/docs/index.ts
@@ -1,13 +1,14 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
// [START maps_3d_marker_graphics]
async function init() {
- const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d');
+ const { Map3DElement, Marker3DElement } =
+ await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const { Place } = await google.maps.importLibrary('places');
@@ -16,7 +17,7 @@ async function init() {
tilt: 67.5,
range: 4000,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// A marker with a with a URL pointing to a PNG.
@@ -33,7 +34,8 @@ async function init() {
map.append(beachFlagMarker);
// A marker with a custom SVG glyph and white background.
- const glyphImgUrl = 'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
+ const glyphImgUrl =
+ 'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
const glyphSvgPinElement = new PinElement({
background: 'white',
glyphSrc: new URL(glyphImgUrl),
@@ -41,7 +43,7 @@ async function init() {
const glyphSvgMarker = new Marker3DElement({
position: { lat: 37.425, lng: -122.07, altitude: 100 },
extruded: true,
- altitudeMode: "ABSOLUTE"
+ altitudeMode: 'ABSOLUTE',
});
glyphSvgMarker.append(glyphSvgPinElement);
@@ -57,7 +59,14 @@ async function init() {
});
// Call fetchFields, passing the desired data fields.
- await place.fetchFields({ fields: ['location', 'displayName', 'svgIconMaskURI', 'iconBackgroundColor'] });
+ await place.fetchFields({
+ fields: [
+ 'location',
+ 'displayName',
+ 'svgIconMaskURI',
+ 'iconBackgroundColor',
+ ],
+ });
const pinElement = new PinElement({
background: place.iconBackgroundColor,
@@ -74,11 +83,14 @@ async function init() {
const parser = new DOMParser();
// A marker with a custom inline SVG.
- const pinSvgString = '';
+ const pinSvgString =
+ '';
// Read the svg string.
- const pinSvg =
- parser.parseFromString(pinSvgString, 'image/svg+xml').documentElement;
+ const pinSvg = parser.parseFromString(
+ pinSvgString,
+ 'image/svg+xml'
+ ).documentElement;
const markerWithCustomSvg = new Marker3DElement({
position: { lat: 37.425, lng: -122.094 },
diff --git a/dist/samples/3d-marker-graphics/docs/style.css b/dist/samples/3d-marker-graphics/docs/style.css
index 824704a3..8c488040 100644
--- a/dist/samples/3d-marker-graphics/docs/style.css
+++ b/dist/samples/3d-marker-graphics/docs/style.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
/* [END maps_3d_marker_graphics] */
diff --git a/dist/samples/3d-marker-graphics/jsfiddle/demo.css b/dist/samples/3d-marker-graphics/jsfiddle/demo.css
index a74f30bc..d6ec582a 100644
--- a/dist/samples/3d-marker-graphics/jsfiddle/demo.css
+++ b/dist/samples/3d-marker-graphics/jsfiddle/demo.css
@@ -9,11 +9,11 @@
*/
html,
map {
- height: 100%;
+ height: 100%;
}
body {
- height: 100%;
- margin: 0;
- padding: 0;
+ height: 100%;
+ margin: 0;
+ padding: 0;
}
diff --git a/dist/samples/3d-marker-graphics/jsfiddle/demo.html b/dist/samples/3d-marker-graphics/jsfiddle/demo.html
index f80f4564..9501b596 100644
--- a/dist/samples/3d-marker-graphics/jsfiddle/demo.html
+++ b/dist/samples/3d-marker-graphics/jsfiddle/demo.html
@@ -6,18 +6,18 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
+
+
+
+
+
-
-
-
+
diff --git a/dist/samples/3d-marker-graphics/jsfiddle/demo.js b/dist/samples/3d-marker-graphics/jsfiddle/demo.js
index 717138dc..f3810a30 100644
--- a/dist/samples/3d-marker-graphics/jsfiddle/demo.js
+++ b/dist/samples/3d-marker-graphics/jsfiddle/demo.js
@@ -1,8 +1,8 @@
/*
-* @license
-* Copyright 2025 Google LLC. All Rights Reserved.
-* SPDX-License-Identifier: Apache-2.0
-*/
+ * @license
+ * Copyright 2025 Google LLC. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ */
// @ts-nocheck
async function init() {
@@ -14,7 +14,7 @@ async function init() {
tilt: 67.5,
range: 4000,
mode: 'SATELLITE',
- gestureHandling: "COOPERATIVE"
+ gestureHandling: 'COOPERATIVE',
});
// A marker with a with a URL pointing to a PNG.
const beachFlagImg = document.createElement('img');
@@ -35,7 +35,7 @@ async function init() {
const glyphSvgMarker = new Marker3DElement({
position: { lat: 37.425, lng: -122.07, altitude: 100 },
extruded: true,
- altitudeMode: "ABSOLUTE"
+ altitudeMode: 'ABSOLUTE',
});
glyphSvgMarker.append(glyphSvgPinElement);
try {
@@ -49,7 +49,14 @@ async function init() {
id: 'ChIJN5Nz71W3j4ARhx5bwpTQEGg',
});
// Call fetchFields, passing the desired data fields.
- await place.fetchFields({ fields: ['location', 'displayName', 'svgIconMaskURI', 'iconBackgroundColor'] });
+ await place.fetchFields({
+ fields: [
+ 'location',
+ 'displayName',
+ 'svgIconMaskURI',
+ 'iconBackgroundColor',
+ ],
+ });
const pinElement = new PinElement({
background: place.iconBackgroundColor,
glyphSrc: new URL(String(place.svgIconMaskURI)),
diff --git a/dist/samples/3d-marker-interactive/app/README.md b/dist/samples/3d-marker-interactive/app/README.md
index 480cbb22..cc66f03c 100644
--- a/dist/samples/3d-marker-interactive/app/README.md
+++ b/dist/samples/3d-marker-interactive/app/README.md
@@ -32,4 +32,4 @@ From `samples/`:
## Feedback
For feedback related to this sample, please open a new issue on
-[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
\ No newline at end of file
+[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
diff --git a/dist/samples/3d-marker-interactive/app/index.html b/dist/samples/3d-marker-interactive/app/index.html
index 1aac48bd..b73b14ff 100644
--- a/dist/samples/3d-marker-interactive/app/index.html
+++ b/dist/samples/3d-marker-interactive/app/index.html
@@ -6,22 +6,24 @@
-->
-
- Map
+
+ Map
-
-
-
-
-
-
-
-
Click on a marker to get the name of the Google Office.