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.
-
+ + + + +
- - - + diff --git a/dist/samples/3d-marker-interactive/app/index.ts b/dist/samples/3d-marker-interactive/app/index.ts index 7cae234c..74c8103d 100644 --- a/dist/samples/3d-marker-interactive/app/index.ts +++ b/dist/samples/3d-marker-interactive/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_interactive] async function init() { // Request needed libraries. - const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.4690, lng: -122.1074, altitude: 0 }, + center: { lat: 37.469, lng: -122.1074, altitude: 0 }, tilt: 67.5, range: 45000, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - map.mode = "SATELLITE"; + map.mode = 'SATELLITE'; for (const position of positions) { const popover = new PopoverElement({ @@ -29,7 +30,7 @@ async function init() { const interactiveMarker = new Marker3DInteractiveElement({ position, - gmpPopoverTargetElement: popover + gmpPopoverTargetElement: popover, }); map.append(interactiveMarker); @@ -39,47 +40,58 @@ async function init() { document.body.append(map); } -const positions = [{ - lat: 37.50981071450543, - lng: -122.20280629839084, - name: "Google Redwood City", -}, { - lat: 37.423897572754754, - lng: -122.09167346506989, - name: "Google West Campus", -}, { - lat: 37.42333982824077, - lng: -122.06647571637265, - name: "Google Bay View", -}, { - lat: 37.42193728115661, - lng: -122.08531908774293, - name: "Googleplex", -}, { - lat: 37.39982552146971, - lng: -122.057934225745, - name: "Google Quad Campus", -}, { - lat: 37.40317922575345, - lng: -122.03276863941647, - name: "Google Tech Corners", -}, { - lat: 37.41181058680138, - lng: -121.9538960231151, - name: "Google San Jose", -}, { - lat: 37.62759428242346, - lng: -122.42615377188994, - name: "Google San Bruno", -}, { - lat: 37.40369749797231, - lng: -122.14812537955007, - name: "Google Palo Alto", -}, { - lat: 37.793664664297964, - lng: -122.39504580413139, - name: "Google San Francisco", -}]; +const positions = [ + { + lat: 37.50981071450543, + lng: -122.20280629839084, + name: 'Google Redwood City', + }, + { + lat: 37.423897572754754, + lng: -122.09167346506989, + name: 'Google West Campus', + }, + { + lat: 37.42333982824077, + lng: -122.06647571637265, + name: 'Google Bay View', + }, + { + lat: 37.42193728115661, + lng: -122.08531908774293, + name: 'Googleplex', + }, + { + lat: 37.39982552146971, + lng: -122.057934225745, + name: 'Google Quad Campus', + }, + { + lat: 37.40317922575345, + lng: -122.03276863941647, + name: 'Google Tech Corners', + }, + { + lat: 37.41181058680138, + lng: -121.9538960231151, + name: 'Google San Jose', + }, + { + lat: 37.62759428242346, + lng: -122.42615377188994, + name: 'Google San Bruno', + }, + { + lat: 37.40369749797231, + lng: -122.14812537955007, + name: 'Google Palo Alto', + }, + { + lat: 37.793664664297964, + lng: -122.39504580413139, + name: 'Google San Francisco', + }, +]; init(); // [END maps_3d_marker_interactive] diff --git a/dist/samples/3d-marker-interactive/app/style.css b/dist/samples/3d-marker-interactive/app/style.css index ef9f6866..7f1541c7 100644 --- a/dist/samples/3d-marker-interactive/app/style.css +++ b/dist/samples/3d-marker-interactive/app/style.css @@ -9,18 +9,21 @@ */ html, map { - height: 100%; + height: 100%; } body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } .textContainer { background-color: #4d90fe; box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; overflow: hidden; position: absolute; left: 50%; diff --git a/dist/samples/3d-marker-interactive/dist/index.html b/dist/samples/3d-marker-interactive/dist/index.html index 13f1e7eb..27995e58 100644 --- a/dist/samples/3d-marker-interactive/dist/index.html +++ b/dist/samples/3d-marker-interactive/dist/index.html @@ -6,22 +6,24 @@ --> - - Map + + Map - - - - -
- -
-
Click on a marker to get the name of the Google Office.
-
+ + + + +
- - - + diff --git a/dist/samples/3d-marker-interactive/docs/index.html b/dist/samples/3d-marker-interactive/docs/index.html index 1aac48bd..b73b14ff 100644 --- a/dist/samples/3d-marker-interactive/docs/index.html +++ b/dist/samples/3d-marker-interactive/docs/index.html @@ -6,22 +6,24 @@ --> - - Map + + Map - - - - -
- -
-
Click on a marker to get the name of the Google Office.
-
+ + + + +
- - - + diff --git a/dist/samples/3d-marker-interactive/docs/index.js b/dist/samples/3d-marker-interactive/docs/index.js index 7db66c47..cbb1a9b2 100644 --- a/dist/samples/3d-marker-interactive/docs/index.js +++ b/dist/samples/3d-marker-interactive/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_interactive] async function init() { // Request needed libraries. - const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.4690, lng: -122.1074, altitude: 0 }, + center: { lat: 37.469, lng: -122.1074, altitude: 0 }, tilt: 67.5, range: 45000, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - map.mode = "SATELLITE"; + map.mode = 'SATELLITE'; for (const position of positions) { const popover = new PopoverElement({ open: true, @@ -24,53 +24,64 @@ async function init() { popover.append(position.name); const interactiveMarker = new Marker3DInteractiveElement({ position, - gmpPopoverTargetElement: popover + gmpPopoverTargetElement: popover, }); map.append(interactiveMarker); map.append(popover); } document.body.append(map); } -const positions = [{ +const positions = [ + { lat: 37.50981071450543, lng: -122.20280629839084, - name: "Google Redwood City", - }, { + name: 'Google Redwood City', + }, + { lat: 37.423897572754754, lng: -122.09167346506989, - name: "Google West Campus", - }, { + name: 'Google West Campus', + }, + { lat: 37.42333982824077, lng: -122.06647571637265, - name: "Google Bay View", - }, { + name: 'Google Bay View', + }, + { lat: 37.42193728115661, lng: -122.08531908774293, - name: "Googleplex", - }, { + name: 'Googleplex', + }, + { lat: 37.39982552146971, lng: -122.057934225745, - name: "Google Quad Campus", - }, { + name: 'Google Quad Campus', + }, + { lat: 37.40317922575345, lng: -122.03276863941647, - name: "Google Tech Corners", - }, { + name: 'Google Tech Corners', + }, + { lat: 37.41181058680138, lng: -121.9538960231151, - name: "Google San Jose", - }, { + name: 'Google San Jose', + }, + { lat: 37.62759428242346, lng: -122.42615377188994, - name: "Google San Bruno", - }, { + name: 'Google San Bruno', + }, + { lat: 37.40369749797231, lng: -122.14812537955007, - name: "Google Palo Alto", - }, { + name: 'Google Palo Alto', + }, + { lat: 37.793664664297964, lng: -122.39504580413139, - name: "Google San Francisco", - }]; + name: 'Google San Francisco', + }, +]; init(); // [END maps_3d_marker_interactive] diff --git a/dist/samples/3d-marker-interactive/docs/index.ts b/dist/samples/3d-marker-interactive/docs/index.ts index 7cae234c..74c8103d 100644 --- a/dist/samples/3d-marker-interactive/docs/index.ts +++ b/dist/samples/3d-marker-interactive/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_interactive] async function init() { // Request needed libraries. - const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.4690, lng: -122.1074, altitude: 0 }, + center: { lat: 37.469, lng: -122.1074, altitude: 0 }, tilt: 67.5, range: 45000, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - map.mode = "SATELLITE"; + map.mode = 'SATELLITE'; for (const position of positions) { const popover = new PopoverElement({ @@ -29,7 +30,7 @@ async function init() { const interactiveMarker = new Marker3DInteractiveElement({ position, - gmpPopoverTargetElement: popover + gmpPopoverTargetElement: popover, }); map.append(interactiveMarker); @@ -39,47 +40,58 @@ async function init() { document.body.append(map); } -const positions = [{ - lat: 37.50981071450543, - lng: -122.20280629839084, - name: "Google Redwood City", -}, { - lat: 37.423897572754754, - lng: -122.09167346506989, - name: "Google West Campus", -}, { - lat: 37.42333982824077, - lng: -122.06647571637265, - name: "Google Bay View", -}, { - lat: 37.42193728115661, - lng: -122.08531908774293, - name: "Googleplex", -}, { - lat: 37.39982552146971, - lng: -122.057934225745, - name: "Google Quad Campus", -}, { - lat: 37.40317922575345, - lng: -122.03276863941647, - name: "Google Tech Corners", -}, { - lat: 37.41181058680138, - lng: -121.9538960231151, - name: "Google San Jose", -}, { - lat: 37.62759428242346, - lng: -122.42615377188994, - name: "Google San Bruno", -}, { - lat: 37.40369749797231, - lng: -122.14812537955007, - name: "Google Palo Alto", -}, { - lat: 37.793664664297964, - lng: -122.39504580413139, - name: "Google San Francisco", -}]; +const positions = [ + { + lat: 37.50981071450543, + lng: -122.20280629839084, + name: 'Google Redwood City', + }, + { + lat: 37.423897572754754, + lng: -122.09167346506989, + name: 'Google West Campus', + }, + { + lat: 37.42333982824077, + lng: -122.06647571637265, + name: 'Google Bay View', + }, + { + lat: 37.42193728115661, + lng: -122.08531908774293, + name: 'Googleplex', + }, + { + lat: 37.39982552146971, + lng: -122.057934225745, + name: 'Google Quad Campus', + }, + { + lat: 37.40317922575345, + lng: -122.03276863941647, + name: 'Google Tech Corners', + }, + { + lat: 37.41181058680138, + lng: -121.9538960231151, + name: 'Google San Jose', + }, + { + lat: 37.62759428242346, + lng: -122.42615377188994, + name: 'Google San Bruno', + }, + { + lat: 37.40369749797231, + lng: -122.14812537955007, + name: 'Google Palo Alto', + }, + { + lat: 37.793664664297964, + lng: -122.39504580413139, + name: 'Google San Francisco', + }, +]; init(); // [END maps_3d_marker_interactive] diff --git a/dist/samples/3d-marker-interactive/docs/style.css b/dist/samples/3d-marker-interactive/docs/style.css index ef9f6866..7f1541c7 100644 --- a/dist/samples/3d-marker-interactive/docs/style.css +++ b/dist/samples/3d-marker-interactive/docs/style.css @@ -9,18 +9,21 @@ */ html, map { - height: 100%; + height: 100%; } body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } .textContainer { background-color: #4d90fe; box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; overflow: hidden; position: absolute; left: 50%; diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.css b/dist/samples/3d-marker-interactive/jsfiddle/demo.css index 0d18e728..5abd9db9 100644 --- a/dist/samples/3d-marker-interactive/jsfiddle/demo.css +++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.css @@ -9,18 +9,21 @@ */ html, map { - height: 100%; + height: 100%; } body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } .textContainer { background-color: #4d90fe; box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; overflow: hidden; position: absolute; left: 50%; diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.html b/dist/samples/3d-marker-interactive/jsfiddle/demo.html index de380925..2c2470df 100644 --- a/dist/samples/3d-marker-interactive/jsfiddle/demo.html +++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.html @@ -6,22 +6,24 @@ --> - - Map + + Map - - - - -
- -
-
Click on a marker to get the name of the Google Office.
-
+ + + + +
- - - + diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.js b/dist/samples/3d-marker-interactive/jsfiddle/demo.js index 2d3a785e..bd1bade0 100644 --- a/dist/samples/3d-marker-interactive/jsfiddle/demo.js +++ b/dist/samples/3d-marker-interactive/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() { // Request needed libraries. - const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DInteractiveElement, PopoverElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.4690, lng: -122.1074, altitude: 0 }, + center: { lat: 37.469, lng: -122.1074, altitude: 0 }, tilt: 67.5, range: 45000, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - map.mode = "SATELLITE"; + map.mode = 'SATELLITE'; for (const position of positions) { const popover = new PopoverElement({ open: true, @@ -24,53 +24,64 @@ async function init() { popover.append(position.name); const interactiveMarker = new Marker3DInteractiveElement({ position, - gmpPopoverTargetElement: popover + gmpPopoverTargetElement: popover, }); map.append(interactiveMarker); map.append(popover); } document.body.append(map); } -const positions = [{ +const positions = [ + { lat: 37.50981071450543, lng: -122.20280629839084, - name: "Google Redwood City", - }, { + name: 'Google Redwood City', + }, + { lat: 37.423897572754754, lng: -122.09167346506989, - name: "Google West Campus", - }, { + name: 'Google West Campus', + }, + { lat: 37.42333982824077, lng: -122.06647571637265, - name: "Google Bay View", - }, { + name: 'Google Bay View', + }, + { lat: 37.42193728115661, lng: -122.08531908774293, - name: "Googleplex", - }, { + name: 'Googleplex', + }, + { lat: 37.39982552146971, lng: -122.057934225745, - name: "Google Quad Campus", - }, { + name: 'Google Quad Campus', + }, + { lat: 37.40317922575345, lng: -122.03276863941647, - name: "Google Tech Corners", - }, { + name: 'Google Tech Corners', + }, + { lat: 37.41181058680138, lng: -121.9538960231151, - name: "Google San Jose", - }, { + name: 'Google San Jose', + }, + { lat: 37.62759428242346, lng: -122.42615377188994, - name: "Google San Bruno", - }, { + name: 'Google San Bruno', + }, + { lat: 37.40369749797231, lng: -122.14812537955007, - name: "Google Palo Alto", - }, { + name: 'Google Palo Alto', + }, + { lat: 37.793664664297964, lng: -122.39504580413139, - name: "Google San Francisco", - }]; + name: 'Google San Francisco', + }, +]; init(); diff --git a/dist/samples/3d-model-interactive/app/README.md b/dist/samples/3d-model-interactive/app/README.md index c78735c5..139419d9 100644 --- a/dist/samples/3d-model-interactive/app/README.md +++ b/dist/samples/3d-model-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-model-interactive/app/index.html b/dist/samples/3d-model-interactive/app/index.html index 30cef8d1..15a29206 100644 --- a/dist/samples/3d-model-interactive/app/index.html +++ b/dist/samples/3d-model-interactive/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model-interactive/app/index.ts b/dist/samples/3d-model-interactive/app/index.ts index e2f8e884..68f110bb 100644 --- a/dist/samples/3d-model-interactive/app/index.ts +++ b/dist/samples/3d-model-interactive/app/index.ts @@ -1,33 +1,37 @@ /* -* @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_model_interactive] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DInteractiveElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DInteractiveElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); model.addEventListener('gmp-click', (event) => { - const clickedModel = event.target; - clickedModel.scale = Math.random() * (0.5 - 0.1) + 0.1; - }); + const clickedModel = event.target; + clickedModel.scale = Math.random() * (0.5 - 0.1) + 0.1; + }); document.body.append(map); map.append(model); diff --git a/dist/samples/3d-model-interactive/app/style.css b/dist/samples/3d-model-interactive/app/style.css index 4e3e2176..0e00f81a 100644 --- a/dist/samples/3d-model-interactive/app/style.css +++ b/dist/samples/3d-model-interactive/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_model_interactive] */ diff --git a/dist/samples/3d-model-interactive/dist/index.html b/dist/samples/3d-model-interactive/dist/index.html index ae3fe105..d1f4c606 100644 --- a/dist/samples/3d-model-interactive/dist/index.html +++ b/dist/samples/3d-model-interactive/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model-interactive/docs/index.html b/dist/samples/3d-model-interactive/docs/index.html index 30cef8d1..15a29206 100644 --- a/dist/samples/3d-model-interactive/docs/index.html +++ b/dist/samples/3d-model-interactive/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model-interactive/docs/index.js b/dist/samples/3d-model-interactive/docs/index.js index 80c11711..b9567faf 100644 --- a/dist/samples/3d-model-interactive/docs/index.js +++ b/dist/samples/3d-model-interactive/docs/index.js @@ -1,25 +1,28 @@ "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_model_interactive] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DInteractiveElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); model.addEventListener('gmp-click', (event) => { const clickedModel = event.target; diff --git a/dist/samples/3d-model-interactive/docs/index.ts b/dist/samples/3d-model-interactive/docs/index.ts index e2f8e884..68f110bb 100644 --- a/dist/samples/3d-model-interactive/docs/index.ts +++ b/dist/samples/3d-model-interactive/docs/index.ts @@ -1,33 +1,37 @@ /* -* @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_model_interactive] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DInteractiveElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DInteractiveElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); model.addEventListener('gmp-click', (event) => { - const clickedModel = event.target; - clickedModel.scale = Math.random() * (0.5 - 0.1) + 0.1; - }); + const clickedModel = event.target; + clickedModel.scale = Math.random() * (0.5 - 0.1) + 0.1; + }); document.body.append(map); map.append(model); diff --git a/dist/samples/3d-model-interactive/docs/style.css b/dist/samples/3d-model-interactive/docs/style.css index 4e3e2176..0e00f81a 100644 --- a/dist/samples/3d-model-interactive/docs/style.css +++ b/dist/samples/3d-model-interactive/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_model_interactive] */ diff --git a/dist/samples/3d-model-interactive/jsfiddle/demo.css b/dist/samples/3d-model-interactive/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-model-interactive/jsfiddle/demo.css +++ b/dist/samples/3d-model-interactive/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-model-interactive/jsfiddle/demo.html b/dist/samples/3d-model-interactive/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-model-interactive/jsfiddle/demo.html +++ b/dist/samples/3d-model-interactive/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model-interactive/jsfiddle/demo.js b/dist/samples/3d-model-interactive/jsfiddle/demo.js index 6ae36ffe..d209bc4d 100644 --- a/dist/samples/3d-model-interactive/jsfiddle/demo.js +++ b/dist/samples/3d-model-interactive/jsfiddle/demo.js @@ -1,25 +1,28 @@ "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() { // Import the needed libraries. - const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DInteractiveElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DInteractiveElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); model.addEventListener('gmp-click', (event) => { const clickedModel = event.target; diff --git a/dist/samples/3d-model/app/README.md b/dist/samples/3d-model/app/README.md index 3d29a5d6..71fd6bd0 100644 --- a/dist/samples/3d-model/app/README.md +++ b/dist/samples/3d-model/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-model/app/index.html b/dist/samples/3d-model/app/index.html index 4e7df2f5..b372df43 100644 --- a/dist/samples/3d-model/app/index.html +++ b/dist/samples/3d-model/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model/app/index.ts b/dist/samples/3d-model/app/index.ts index c18ff717..f6b105d0 100644 --- a/dist/samples/3d-model/app/index.ts +++ b/dist/samples/3d-model/app/index.ts @@ -1,27 +1,31 @@ /* -* @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_model] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); document.body.append(map); diff --git a/dist/samples/3d-model/app/style.css b/dist/samples/3d-model/app/style.css index 08e915d2..6fbc060e 100644 --- a/dist/samples/3d-model/app/style.css +++ b/dist/samples/3d-model/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_model] */ diff --git a/dist/samples/3d-model/dist/index.html b/dist/samples/3d-model/dist/index.html index da75049a..c7582c86 100644 --- a/dist/samples/3d-model/dist/index.html +++ b/dist/samples/3d-model/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model/docs/index.html b/dist/samples/3d-model/docs/index.html index 4e7df2f5..b372df43 100644 --- a/dist/samples/3d-model/docs/index.html +++ b/dist/samples/3d-model/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model/docs/index.js b/dist/samples/3d-model/docs/index.js index 2097f2c9..001ffaee 100644 --- a/dist/samples/3d-model/docs/index.js +++ b/dist/samples/3d-model/docs/index.js @@ -1,25 +1,28 @@ "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_model] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); document.body.append(map); map.append(model); diff --git a/dist/samples/3d-model/docs/index.ts b/dist/samples/3d-model/docs/index.ts index c18ff717..f6b105d0 100644 --- a/dist/samples/3d-model/docs/index.ts +++ b/dist/samples/3d-model/docs/index.ts @@ -1,27 +1,31 @@ /* -* @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_model] async function init() { // Import the needed libraries. - const { Map3DElement, Model3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); document.body.append(map); diff --git a/dist/samples/3d-model/docs/style.css b/dist/samples/3d-model/docs/style.css index 08e915d2..6fbc060e 100644 --- a/dist/samples/3d-model/docs/style.css +++ b/dist/samples/3d-model/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_model] */ diff --git a/dist/samples/3d-model/jsfiddle/demo.css b/dist/samples/3d-model/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-model/jsfiddle/demo.css +++ b/dist/samples/3d-model/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-model/jsfiddle/demo.html b/dist/samples/3d-model/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-model/jsfiddle/demo.html +++ b/dist/samples/3d-model/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-model/jsfiddle/demo.js b/dist/samples/3d-model/jsfiddle/demo.js index bf3e0805..a219e1c4 100644 --- a/dist/samples/3d-model/jsfiddle/demo.js +++ b/dist/samples/3d-model/jsfiddle/demo.js @@ -1,25 +1,28 @@ "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() { // Import the needed libraries. - const { Map3DElement, Model3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Model3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, range: 1500, tilt: 74, heading: 0, - mode: "HYBRID", - gestureHandling: "COOPERATIVE" + center: { lat: 39.1178, lng: -106.4452, altitude: 4395.4952 }, + range: 1500, + tilt: 74, + heading: 0, + mode: 'HYBRID', + gestureHandling: 'COOPERATIVE', }); const model = new Model3DElement({ src: 'https://maps-docs-team.web.app/assets/windmill.glb', position: { lat: 39.1178, lng: -106.4452, altitude: 4495.4952 }, orientation: { heading: 0, tilt: 270, roll: 90 }, - scale: .15, - altitudeMode: "CLAMP_TO_GROUND", + scale: 0.15, + altitudeMode: 'CLAMP_TO_GROUND', }); document.body.append(map); map.append(model); diff --git a/dist/samples/3d-places-autocomplete/app/README.md b/dist/samples/3d-places-autocomplete/app/README.md index bce81443..7de2dde5 100644 --- a/dist/samples/3d-places-autocomplete/app/README.md +++ b/dist/samples/3d-places-autocomplete/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-places-autocomplete/app/index.html b/dist/samples/3d-places-autocomplete/app/index.html index dbed561b..a1568da7 100644 --- a/dist/samples/3d-places-autocomplete/app/index.html +++ b/dist/samples/3d-places-autocomplete/app/index.html @@ -6,24 +6,23 @@ --> - - Map + + Map - - - - -
+ + + + +
-
-
Navigate to a place
-
+
+
Navigate to a place
+
-
- - - + diff --git a/dist/samples/3d-places-autocomplete/app/index.ts b/dist/samples/3d-places-autocomplete/app/index.ts index 38842a15..6784e506 100644 --- a/dist/samples/3d-places-autocomplete/app/index.ts +++ b/dist/samples/3d-places-autocomplete/app/index.ts @@ -1,15 +1,15 @@ /* -* @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_places_autocomplete] let map = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ center: { lat: 0, lng: 0, altitude: 16000000 }, @@ -18,7 +18,7 @@ async function init() { heading: 0, roll: 0, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -27,27 +27,38 @@ async function init() { } async function initAutocomplete() { - const { PlaceAutocompleteElement } = await google.maps.importLibrary("places") + const { PlaceAutocompleteElement } = + await google.maps.importLibrary('places'); const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); placeAutocomplete.id = 'place-autocomplete-input'; const card = document.getElementById('pac-container'); card.appendChild(placeAutocomplete); - placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => { - const place = placePrediction.toPlace(); - await place.fetchFields({ fields: ['displayName', 'location', 'id'] }); - // If the place has a geometry, then present it on a map. - if (!place.location) { - window.alert("No viewport for input: " + place.displayName); - return; + placeAutocomplete.addEventListener( + 'gmp-select', + async ({ placePrediction }) => { + const place = placePrediction.toPlace(); + await place.fetchFields({ + fields: ['displayName', 'location', 'id'], + }); + // If the place has a geometry, then present it on a map. + if (!place.location) { + window.alert('No viewport for input: ' + place.displayName); + return; + } + flyToPlace(place); } - flyToPlace(place); - }); + ); } const flyToPlace = async (place) => { - const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { + AltitudeMode, + Polyline3DElement, + Polygon3DElement, + Marker3DElement, + } = await google.maps.importLibrary('maps3d'); const location = place.location; @@ -55,7 +66,11 @@ const flyToPlace = async (place) => { const elevation = await getElevationforPoint(location); const marker = new Marker3DElement({ - position: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + position: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, altitudeMode: AltitudeMode.ABSOLUTE, extruded: true, label: place.displayName, @@ -67,17 +82,21 @@ const flyToPlace = async (place) => { // Fly to the marker. map.flyCameraTo({ endCamera: { - center: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + center: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, tilt: 65, heading: 0, - range: 1000 + range: 1000, }, durationMillis: 10000, }); }; async function getElevationforPoint(location) { - const { ElevationService } = await google.maps.importLibrary("elevation"); + const { ElevationService } = await google.maps.importLibrary('elevation'); // Get place elevation using the ElevationService. const elevatorService = new google.maps.ElevationService(); const elevationResponse = await elevatorService.getElevationForLocations({ diff --git a/dist/samples/3d-places-autocomplete/app/style.css b/dist/samples/3d-places-autocomplete/app/style.css index 785b9f19..e1965f66 100644 --- a/dist/samples/3d-places-autocomplete/app/style.css +++ b/dist/samples/3d-places-autocomplete/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; } .pac-controls { display: inline-block; @@ -34,7 +34,10 @@ body { box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; padding: 0 0.5em; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; /* overflow: hidden; */ font-family: Roboto; padding: 0; diff --git a/dist/samples/3d-places-autocomplete/dist/index.html b/dist/samples/3d-places-autocomplete/dist/index.html index 614efc26..f7ff1c60 100644 --- a/dist/samples/3d-places-autocomplete/dist/index.html +++ b/dist/samples/3d-places-autocomplete/dist/index.html @@ -6,24 +6,23 @@ --> - - Map + + Map - - - - -
+ + + + +
-
-
Navigate to a place
-
+
+
Navigate to a place
+
-
- - - + diff --git a/dist/samples/3d-places-autocomplete/docs/index.html b/dist/samples/3d-places-autocomplete/docs/index.html index dbed561b..a1568da7 100644 --- a/dist/samples/3d-places-autocomplete/docs/index.html +++ b/dist/samples/3d-places-autocomplete/docs/index.html @@ -6,24 +6,23 @@ --> - - Map + + Map - - - - -
+ + + + +
-
-
Navigate to a place
-
+
+
Navigate to a place
+
-
- - - + diff --git a/dist/samples/3d-places-autocomplete/docs/index.js b/dist/samples/3d-places-autocomplete/docs/index.js index 3c7f4388..cdc11f11 100644 --- a/dist/samples/3d-places-autocomplete/docs/index.js +++ b/dist/samples/3d-places-autocomplete/docs/index.js @@ -1,14 +1,14 @@ "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_places_autocomplete] let map = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ center: { lat: 0, lng: 0, altitude: 16000000 }, tilt: 0, @@ -16,35 +16,41 @@ async function init() { heading: 0, roll: 0, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); initAutocomplete(); } async function initAutocomplete() { - const { PlaceAutocompleteElement } = await google.maps.importLibrary("places"); + const { PlaceAutocompleteElement } = await google.maps.importLibrary('places'); const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); placeAutocomplete.id = 'place-autocomplete-input'; const card = document.getElementById('pac-container'); card.appendChild(placeAutocomplete); placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => { const place = placePrediction.toPlace(); - await place.fetchFields({ fields: ['displayName', 'location', 'id'] }); + await place.fetchFields({ + fields: ['displayName', 'location', 'id'], + }); // If the place has a geometry, then present it on a map. if (!place.location) { - window.alert("No viewport for input: " + place.displayName); + window.alert('No viewport for input: ' + place.displayName); return; } flyToPlace(place); }); } const flyToPlace = async (place) => { - const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement, } = await google.maps.importLibrary('maps3d'); const location = place.location; // We need to find the elevation for the point so we place the marker at 50m above the elevation. const elevation = await getElevationforPoint(location); const marker = new Marker3DElement({ - position: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + position: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, altitudeMode: AltitudeMode.ABSOLUTE, extruded: true, label: place.displayName, @@ -54,16 +60,20 @@ const flyToPlace = async (place) => { // Fly to the marker. map.flyCameraTo({ endCamera: { - center: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + center: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, tilt: 65, heading: 0, - range: 1000 + range: 1000, }, durationMillis: 10000, }); }; async function getElevationforPoint(location) { - const { ElevationService } = await google.maps.importLibrary("elevation"); + const { ElevationService } = await google.maps.importLibrary('elevation'); // Get place elevation using the ElevationService. const elevatorService = new google.maps.ElevationService(); const elevationResponse = await elevatorService.getElevationForLocations({ diff --git a/dist/samples/3d-places-autocomplete/docs/index.ts b/dist/samples/3d-places-autocomplete/docs/index.ts index 38842a15..6784e506 100644 --- a/dist/samples/3d-places-autocomplete/docs/index.ts +++ b/dist/samples/3d-places-autocomplete/docs/index.ts @@ -1,15 +1,15 @@ /* -* @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_places_autocomplete] let map = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ center: { lat: 0, lng: 0, altitude: 16000000 }, @@ -18,7 +18,7 @@ async function init() { heading: 0, roll: 0, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -27,27 +27,38 @@ async function init() { } async function initAutocomplete() { - const { PlaceAutocompleteElement } = await google.maps.importLibrary("places") + const { PlaceAutocompleteElement } = + await google.maps.importLibrary('places'); const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); placeAutocomplete.id = 'place-autocomplete-input'; const card = document.getElementById('pac-container'); card.appendChild(placeAutocomplete); - placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => { - const place = placePrediction.toPlace(); - await place.fetchFields({ fields: ['displayName', 'location', 'id'] }); - // If the place has a geometry, then present it on a map. - if (!place.location) { - window.alert("No viewport for input: " + place.displayName); - return; + placeAutocomplete.addEventListener( + 'gmp-select', + async ({ placePrediction }) => { + const place = placePrediction.toPlace(); + await place.fetchFields({ + fields: ['displayName', 'location', 'id'], + }); + // If the place has a geometry, then present it on a map. + if (!place.location) { + window.alert('No viewport for input: ' + place.displayName); + return; + } + flyToPlace(place); } - flyToPlace(place); - }); + ); } const flyToPlace = async (place) => { - const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { + AltitudeMode, + Polyline3DElement, + Polygon3DElement, + Marker3DElement, + } = await google.maps.importLibrary('maps3d'); const location = place.location; @@ -55,7 +66,11 @@ const flyToPlace = async (place) => { const elevation = await getElevationforPoint(location); const marker = new Marker3DElement({ - position: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + position: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, altitudeMode: AltitudeMode.ABSOLUTE, extruded: true, label: place.displayName, @@ -67,17 +82,21 @@ const flyToPlace = async (place) => { // Fly to the marker. map.flyCameraTo({ endCamera: { - center: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + center: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, tilt: 65, heading: 0, - range: 1000 + range: 1000, }, durationMillis: 10000, }); }; async function getElevationforPoint(location) { - const { ElevationService } = await google.maps.importLibrary("elevation"); + const { ElevationService } = await google.maps.importLibrary('elevation'); // Get place elevation using the ElevationService. const elevatorService = new google.maps.ElevationService(); const elevationResponse = await elevatorService.getElevationForLocations({ diff --git a/dist/samples/3d-places-autocomplete/docs/style.css b/dist/samples/3d-places-autocomplete/docs/style.css index 785b9f19..e1965f66 100644 --- a/dist/samples/3d-places-autocomplete/docs/style.css +++ b/dist/samples/3d-places-autocomplete/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; } .pac-controls { display: inline-block; @@ -34,7 +34,10 @@ body { box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; padding: 0 0.5em; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; /* overflow: hidden; */ font-family: Roboto; padding: 0; diff --git a/dist/samples/3d-places-autocomplete/jsfiddle/demo.css b/dist/samples/3d-places-autocomplete/jsfiddle/demo.css index df67a68b..edaed152 100644 --- a/dist/samples/3d-places-autocomplete/jsfiddle/demo.css +++ b/dist/samples/3d-places-autocomplete/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; } .pac-controls { display: inline-block; @@ -34,7 +34,10 @@ body { box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3); margin: 10px; padding: 0 0.5em; - font: 400 18px Roboto, Arial, sans-serif; + font: + 400 18px Roboto, + Arial, + sans-serif; /* overflow: hidden; */ font-family: Roboto; padding: 0; diff --git a/dist/samples/3d-places-autocomplete/jsfiddle/demo.html b/dist/samples/3d-places-autocomplete/jsfiddle/demo.html index b1f092b2..d8bf091b 100644 --- a/dist/samples/3d-places-autocomplete/jsfiddle/demo.html +++ b/dist/samples/3d-places-autocomplete/jsfiddle/demo.html @@ -6,24 +6,23 @@ --> - - Map + + Map - - - - -
+ + + + +
-
-
Navigate to a place
-
+
+
Navigate to a place
+
-
- - - + diff --git a/dist/samples/3d-places-autocomplete/jsfiddle/demo.js b/dist/samples/3d-places-autocomplete/jsfiddle/demo.js index eeb9d51f..70375874 100644 --- a/dist/samples/3d-places-autocomplete/jsfiddle/demo.js +++ b/dist/samples/3d-places-autocomplete/jsfiddle/demo.js @@ -1,14 +1,14 @@ "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 = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ center: { lat: 0, lng: 0, altitude: 16000000 }, tilt: 0, @@ -16,35 +16,41 @@ async function init() { heading: 0, roll: 0, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); initAutocomplete(); } async function initAutocomplete() { - const { PlaceAutocompleteElement } = await google.maps.importLibrary("places"); + const { PlaceAutocompleteElement } = await google.maps.importLibrary('places'); const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); placeAutocomplete.id = 'place-autocomplete-input'; const card = document.getElementById('pac-container'); card.appendChild(placeAutocomplete); placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => { const place = placePrediction.toPlace(); - await place.fetchFields({ fields: ['displayName', 'location', 'id'] }); + await place.fetchFields({ + fields: ['displayName', 'location', 'id'], + }); // If the place has a geometry, then present it on a map. if (!place.location) { - window.alert("No viewport for input: " + place.displayName); + window.alert('No viewport for input: ' + place.displayName); return; } flyToPlace(place); }); } const flyToPlace = async (place) => { - const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Polyline3DElement, Polygon3DElement, Marker3DElement, } = await google.maps.importLibrary('maps3d'); const location = place.location; // We need to find the elevation for the point so we place the marker at 50m above the elevation. const elevation = await getElevationforPoint(location); const marker = new Marker3DElement({ - position: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + position: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, altitudeMode: AltitudeMode.ABSOLUTE, extruded: true, label: place.displayName, @@ -54,16 +60,20 @@ const flyToPlace = async (place) => { // Fly to the marker. map.flyCameraTo({ endCamera: { - center: { lat: location.lat(), lng: location.lng(), altitude: elevation + 50 }, + center: { + lat: location.lat(), + lng: location.lng(), + altitude: elevation + 50, + }, tilt: 65, heading: 0, - range: 1000 + range: 1000, }, durationMillis: 10000, }); }; async function getElevationforPoint(location) { - const { ElevationService } = await google.maps.importLibrary("elevation"); + const { ElevationService } = await google.maps.importLibrary('elevation'); // Get place elevation using the ElevationService. const elevatorService = new google.maps.ElevationService(); const elevationResponse = await elevatorService.getElevationForLocations({ diff --git a/dist/samples/3d-places/app/README.md b/dist/samples/3d-places/app/README.md index 5b6820db..8e3454f9 100644 --- a/dist/samples/3d-places/app/README.md +++ b/dist/samples/3d-places/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-places/app/index.html b/dist/samples/3d-places/app/index.html index aa12468e..816b9edf 100644 --- a/dist/samples/3d-places/app/index.html +++ b/dist/samples/3d-places/app/index.html @@ -6,26 +6,26 @@ --> - - Map + + Map - - - - -
+ + + + +
- - -
-
-
-
-
-
-
Click on a place to get details.
-
- +
+
+
+
+
+
+
Click on a place to get details.
+
+ diff --git a/dist/samples/3d-places/app/index.ts b/dist/samples/3d-places/app/index.ts index a950673d..5f6aeb8a 100644 --- a/dist/samples/3d-places/app/index.ts +++ b/dist/samples/3d-places/app/index.ts @@ -1,21 +1,22 @@ /* -* @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_places] let map3DElement = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); - { } + const { Map3DElement } = await google.maps.importLibrary('maps3d'); + { + } map3DElement = new Map3DElement({ - center: { lat: 51.532, lng : -0.124, altitude: 30 }, + center: { lat: 51.532, lng: -0.124, altitude: 30 }, range: 1400, tilt: 64, heading: -5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map3DElement); @@ -27,18 +28,20 @@ async function init() { await place.fetchFields({ fields: ['*'] }); // Display place details. - document.getElementById("placeName").innerHTML = "Name :
 " + place.displayName; - document.getElementById("placeId").innerHTML = "Id :
 " + place.id; - document.getElementById("placeType").innerHTML = "Types :"; - + document.getElementById('placeName').innerHTML = + 'Name :
 ' + place.displayName; + document.getElementById('placeId').innerHTML = + 'Id :
 ' + place.id; + document.getElementById('placeType').innerHTML = 'Types :'; + for (const type of place.types) { - document.getElementById("placeType").innerHTML += "
 " + type ; + document.getElementById('placeType').innerHTML += + '
 ' + type; } - document.getElementById("details").style.display = "block"; + document.getElementById('details').style.display = 'block'; } }); - } -init(); +init(); // [END maps_3d_places] diff --git a/dist/samples/3d-places/app/style.css b/dist/samples/3d-places/app/style.css index 85bfe863..072544cb 100644 --- a/dist/samples/3d-places/app/style.css +++ b/dist/samples/3d-places/app/style.css @@ -12,7 +12,15 @@ body { height: 100%; margin: 0; padding: 0; - font-family: "Centra No2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: + 'Centra No2', + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + 'Helvetica Neue', + Arial, + sans-serif; font-size: 0.9em; } @@ -36,10 +44,10 @@ body { overflow: hidden; position: absolute; top: 100px; - left : 10px; + left: 10px; padding: 10px; z-index: 1000; - display:none; + display: none; color: white; border-radius: 15px; } diff --git a/dist/samples/3d-places/dist/index.html b/dist/samples/3d-places/dist/index.html index 1bd1bbd6..e2496ea0 100644 --- a/dist/samples/3d-places/dist/index.html +++ b/dist/samples/3d-places/dist/index.html @@ -6,26 +6,26 @@ --> - - Map + + Map - - - - -
+ + + + +
- - -
-
-
-
-
-
-
Click on a place to get details.
-
- +
+
+
+
+
+
+
Click on a place to get details.
+
+ diff --git a/dist/samples/3d-places/docs/index.html b/dist/samples/3d-places/docs/index.html index aa12468e..816b9edf 100644 --- a/dist/samples/3d-places/docs/index.html +++ b/dist/samples/3d-places/docs/index.html @@ -6,26 +6,26 @@ --> - - Map + + Map - - - - -
+ + + + +
- - -
-
-
-
-
-
-
Click on a place to get details.
-
- +
+
+
+
+
+
+
Click on a place to get details.
+
+ diff --git a/dist/samples/3d-places/docs/index.js b/dist/samples/3d-places/docs/index.js index 02589a35..554dc30a 100644 --- a/dist/samples/3d-places/docs/index.js +++ b/dist/samples/3d-places/docs/index.js @@ -1,22 +1,23 @@ "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_places] let map3DElement = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); - { } + const { Map3DElement } = await google.maps.importLibrary('maps3d'); + { + } map3DElement = new Map3DElement({ center: { lat: 51.532, lng: -0.124, altitude: 30 }, range: 1400, tilt: 64, heading: -5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map3DElement); map3DElement.addEventListener('gmp-click', async (event) => { @@ -25,13 +26,16 @@ async function init() { const place = await event.fetchPlace(); await place.fetchFields({ fields: ['*'] }); // Display place details. - document.getElementById("placeName").innerHTML = "Name :
 " + place.displayName; - document.getElementById("placeId").innerHTML = "Id :
 " + place.id; - document.getElementById("placeType").innerHTML = "Types :"; + document.getElementById('placeName').innerHTML = + 'Name :
 ' + place.displayName; + document.getElementById('placeId').innerHTML = + 'Id :
 ' + place.id; + document.getElementById('placeType').innerHTML = 'Types :'; for (const type of place.types) { - document.getElementById("placeType").innerHTML += "
 " + type; + document.getElementById('placeType').innerHTML += + '
 ' + type; } - document.getElementById("details").style.display = "block"; + document.getElementById('details').style.display = 'block'; } }); } diff --git a/dist/samples/3d-places/docs/index.ts b/dist/samples/3d-places/docs/index.ts index a950673d..5f6aeb8a 100644 --- a/dist/samples/3d-places/docs/index.ts +++ b/dist/samples/3d-places/docs/index.ts @@ -1,21 +1,22 @@ /* -* @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_places] let map3DElement = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); - { } + const { Map3DElement } = await google.maps.importLibrary('maps3d'); + { + } map3DElement = new Map3DElement({ - center: { lat: 51.532, lng : -0.124, altitude: 30 }, + center: { lat: 51.532, lng: -0.124, altitude: 30 }, range: 1400, tilt: 64, heading: -5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map3DElement); @@ -27,18 +28,20 @@ async function init() { await place.fetchFields({ fields: ['*'] }); // Display place details. - document.getElementById("placeName").innerHTML = "Name :
 " + place.displayName; - document.getElementById("placeId").innerHTML = "Id :
 " + place.id; - document.getElementById("placeType").innerHTML = "Types :"; - + document.getElementById('placeName').innerHTML = + 'Name :
 ' + place.displayName; + document.getElementById('placeId').innerHTML = + 'Id :
 ' + place.id; + document.getElementById('placeType').innerHTML = 'Types :'; + for (const type of place.types) { - document.getElementById("placeType").innerHTML += "
 " + type ; + document.getElementById('placeType').innerHTML += + '
 ' + type; } - document.getElementById("details").style.display = "block"; + document.getElementById('details').style.display = 'block'; } }); - } -init(); +init(); // [END maps_3d_places] diff --git a/dist/samples/3d-places/docs/style.css b/dist/samples/3d-places/docs/style.css index 85bfe863..072544cb 100644 --- a/dist/samples/3d-places/docs/style.css +++ b/dist/samples/3d-places/docs/style.css @@ -12,7 +12,15 @@ body { height: 100%; margin: 0; padding: 0; - font-family: "Centra No2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: + 'Centra No2', + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + 'Helvetica Neue', + Arial, + sans-serif; font-size: 0.9em; } @@ -36,10 +44,10 @@ body { overflow: hidden; position: absolute; top: 100px; - left : 10px; + left: 10px; padding: 10px; z-index: 1000; - display:none; + display: none; color: white; border-radius: 15px; } diff --git a/dist/samples/3d-places/jsfiddle/demo.css b/dist/samples/3d-places/jsfiddle/demo.css index c73eb258..c46f8847 100644 --- a/dist/samples/3d-places/jsfiddle/demo.css +++ b/dist/samples/3d-places/jsfiddle/demo.css @@ -12,7 +12,15 @@ body { height: 100%; margin: 0; padding: 0; - font-family: "Centra No2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; + font-family: + 'Centra No2', + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + 'Helvetica Neue', + Arial, + sans-serif; font-size: 0.9em; } @@ -36,10 +44,10 @@ body { overflow: hidden; position: absolute; top: 100px; - left : 10px; + left: 10px; padding: 10px; z-index: 1000; - display:none; + display: none; color: white; border-radius: 15px; } diff --git a/dist/samples/3d-places/jsfiddle/demo.html b/dist/samples/3d-places/jsfiddle/demo.html index 4a753ecc..e469deaa 100644 --- a/dist/samples/3d-places/jsfiddle/demo.html +++ b/dist/samples/3d-places/jsfiddle/demo.html @@ -6,26 +6,26 @@ --> - - Map + + Map - - - - -
+ + + + +
- - -
-
-
-
-
-
-
Click on a place to get details.
-
- +
+
+
+
+
+
+
Click on a place to get details.
+
+ diff --git a/dist/samples/3d-places/jsfiddle/demo.js b/dist/samples/3d-places/jsfiddle/demo.js index a363f38d..aff6e87f 100644 --- a/dist/samples/3d-places/jsfiddle/demo.js +++ b/dist/samples/3d-places/jsfiddle/demo.js @@ -1,22 +1,23 @@ "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 map3DElement = null; async function init() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); - { } + const { Map3DElement } = await google.maps.importLibrary('maps3d'); + { + } map3DElement = new Map3DElement({ center: { lat: 51.532, lng: -0.124, altitude: 30 }, range: 1400, tilt: 64, heading: -5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map3DElement); map3DElement.addEventListener('gmp-click', async (event) => { @@ -25,13 +26,16 @@ async function init() { const place = await event.fetchPlace(); await place.fetchFields({ fields: ['*'] }); // Display place details. - document.getElementById("placeName").innerHTML = "Name :
 " + place.displayName; - document.getElementById("placeId").innerHTML = "Id :
 " + place.id; - document.getElementById("placeType").innerHTML = "Types :"; + document.getElementById('placeName').innerHTML = + 'Name :
 ' + place.displayName; + document.getElementById('placeId').innerHTML = + 'Id :
 ' + place.id; + document.getElementById('placeType').innerHTML = 'Types :'; for (const type of place.types) { - document.getElementById("placeType").innerHTML += "
 " + type; + document.getElementById('placeType').innerHTML += + '
 ' + type; } - document.getElementById("details").style.display = "block"; + document.getElementById('details').style.display = 'block'; } }); } diff --git a/dist/samples/3d-polygon-click-event/app/README.md b/dist/samples/3d-polygon-click-event/app/README.md index 93ff691c..dfd7355b 100644 --- a/dist/samples/3d-polygon-click-event/app/README.md +++ b/dist/samples/3d-polygon-click-event/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-polygon-click-event/app/index.html b/dist/samples/3d-polygon-click-event/app/index.html index e90740e1..8667d321 100644 --- a/dist/samples/3d-polygon-click-event/app/index.html +++ b/dist/samples/3d-polygon-click-event/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-click-event/app/index.ts b/dist/samples/3d-polygon-click-event/app/index.ts index abb97cf3..543cb566 100644 --- a/dist/samples/3d-polygon-click-event/app/index.ts +++ b/dist/samples/3d-polygon-click-event/app/index.ts @@ -1,38 +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_polygon_click_event] async function init() { - const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DInteractiveElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, - } + }; - const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, - { lat: 40.7144, lng: -74.0208 } + { lat: 40.7144, lng: -74.0208 }, ]; examplePolygon.addEventListener('gmp-click', (event) => { @@ -55,7 +58,7 @@ function randomizeHexColor(originalHexColor) { const g = Math.floor(Math.random() * 256); const b = Math.floor(Math.random() * 256); - console.log(r + " " + g + " " + b); + console.log(r + ' ' + g + ' ' + b); // Convert decimal to 2-digit hex, padding with '0' if needed const rHex = ('0' + r.toString(16)).slice(-2); diff --git a/dist/samples/3d-polygon-click-event/app/style.css b/dist/samples/3d-polygon-click-event/app/style.css index f0bba123..2a89f955 100644 --- a/dist/samples/3d-polygon-click-event/app/style.css +++ b/dist/samples/3d-polygon-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_polygon_click_event] */ diff --git a/dist/samples/3d-polygon-click-event/dist/index.html b/dist/samples/3d-polygon-click-event/dist/index.html index a5b45988..c40b55a8 100644 --- a/dist/samples/3d-polygon-click-event/dist/index.html +++ b/dist/samples/3d-polygon-click-event/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-click-event/docs/index.html b/dist/samples/3d-polygon-click-event/docs/index.html index e90740e1..8667d321 100644 --- a/dist/samples/3d-polygon-click-event/docs/index.html +++ b/dist/samples/3d-polygon-click-event/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-click-event/docs/index.js b/dist/samples/3d-polygon-click-event/docs/index.js index 5b272d49..a3027187 100644 --- a/dist/samples/3d-polygon-click-event/docs/index.js +++ b/dist/samples/3d-polygon-click-event/docs/index.js @@ -1,25 +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_polygon_click_event] async function init() { - const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); @@ -27,7 +27,7 @@ async function init() { { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, - { lat: 40.7144, lng: -74.0208 } + { lat: 40.7144, lng: -74.0208 }, ]; examplePolygon.addEventListener('gmp-click', (event) => { // change the color of the polygon stroke and fill colors to a random alternatives! @@ -45,7 +45,7 @@ function randomizeHexColor(originalHexColor) { const r = Math.floor(Math.random() * 256); const g = Math.floor(Math.random() * 256); const b = Math.floor(Math.random() * 256); - console.log(r + " " + g + " " + b); + console.log(r + ' ' + g + ' ' + b); // Convert decimal to 2-digit hex, padding with '0' if needed const rHex = ('0' + r.toString(16)).slice(-2); const gHex = ('0' + g.toString(16)).slice(-2); diff --git a/dist/samples/3d-polygon-click-event/docs/index.ts b/dist/samples/3d-polygon-click-event/docs/index.ts index abb97cf3..543cb566 100644 --- a/dist/samples/3d-polygon-click-event/docs/index.ts +++ b/dist/samples/3d-polygon-click-event/docs/index.ts @@ -1,38 +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_polygon_click_event] async function init() { - const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DInteractiveElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, - } + }; - const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, - { lat: 40.7144, lng: -74.0208 } + { lat: 40.7144, lng: -74.0208 }, ]; examplePolygon.addEventListener('gmp-click', (event) => { @@ -55,7 +58,7 @@ function randomizeHexColor(originalHexColor) { const g = Math.floor(Math.random() * 256); const b = Math.floor(Math.random() * 256); - console.log(r + " " + g + " " + b); + console.log(r + ' ' + g + ' ' + b); // Convert decimal to 2-digit hex, padding with '0' if needed const rHex = ('0' + r.toString(16)).slice(-2); diff --git a/dist/samples/3d-polygon-click-event/docs/style.css b/dist/samples/3d-polygon-click-event/docs/style.css index f0bba123..2a89f955 100644 --- a/dist/samples/3d-polygon-click-event/docs/style.css +++ b/dist/samples/3d-polygon-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_polygon_click_event] */ diff --git a/dist/samples/3d-polygon-click-event/jsfiddle/demo.css b/dist/samples/3d-polygon-click-event/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polygon-click-event/jsfiddle/demo.css +++ b/dist/samples/3d-polygon-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-polygon-click-event/jsfiddle/demo.html b/dist/samples/3d-polygon-click-event/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polygon-click-event/jsfiddle/demo.html +++ b/dist/samples/3d-polygon-click-event/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-click-event/jsfiddle/demo.js b/dist/samples/3d-polygon-click-event/jsfiddle/demo.js index f7c97a2a..3a5cb1d4 100644 --- a/dist/samples/3d-polygon-click-event/jsfiddle/demo.js +++ b/dist/samples/3d-polygon-click-event/jsfiddle/demo.js @@ -1,25 +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 init() { - const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DInteractiveElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); @@ -27,7 +27,7 @@ async function init() { { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, - { lat: 40.7144, lng: -74.0208 } + { lat: 40.7144, lng: -74.0208 }, ]; examplePolygon.addEventListener('gmp-click', (event) => { // change the color of the polygon stroke and fill colors to a random alternatives! @@ -45,7 +45,7 @@ function randomizeHexColor(originalHexColor) { const r = Math.floor(Math.random() * 256); const g = Math.floor(Math.random() * 256); const b = Math.floor(Math.random() * 256); - console.log(r + " " + g + " " + b); + console.log(r + ' ' + g + ' ' + b); // Convert decimal to 2-digit hex, padding with '0' if needed const rHex = ('0' + r.toString(16)).slice(-2); const gHex = ('0' + g.toString(16)).slice(-2); diff --git a/dist/samples/3d-polygon-extruded-hole/app/README.md b/dist/samples/3d-polygon-extruded-hole/app/README.md index 99cdb928..3177115f 100644 --- a/dist/samples/3d-polygon-extruded-hole/app/README.md +++ b/dist/samples/3d-polygon-extruded-hole/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-polygon-extruded-hole/app/index.html b/dist/samples/3d-polygon-extruded-hole/app/index.html index 72588bba..8f55fb55 100644 --- a/dist/samples/3d-polygon-extruded-hole/app/index.html +++ b/dist/samples/3d-polygon-extruded-hole/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-extruded-hole/app/index.ts b/dist/samples/3d-polygon-extruded-hole/app/index.ts index 48f88ec7..17eb7385 100644 --- a/dist/samples/3d-polygon-extruded-hole/app/index.ts +++ b/dist/samples/3d-polygon-extruded-hole/app/index.ts @@ -1,45 +1,48 @@ /* -* @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_polygon_extruded_hole] async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = + await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, extruded: true, - altitudeMode : AltitudeMode.RELATIVE_TO_GROUND - } + altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, + }; - const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208, altitude: 200 }, { lat: 40.6993, lng: -74.019, altitude: 200 }, - { lat: 40.7035, lng: -74.0004, altitude: 200 } + { lat: 40.7035, lng: -74.0004, altitude: 200 }, ]; examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, - { lat: 40.7035, lng: -74.006, altitude: 200 } - ] + { lat: 40.7035, lng: -74.006, altitude: 200 }, + ], ]; map3DElement.append(examplePolygon); diff --git a/dist/samples/3d-polygon-extruded-hole/app/style.css b/dist/samples/3d-polygon-extruded-hole/app/style.css index 81dc8ef9..2fbbb162 100644 --- a/dist/samples/3d-polygon-extruded-hole/app/style.css +++ b/dist/samples/3d-polygon-extruded-hole/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_polygon_extruded_hole] */ diff --git a/dist/samples/3d-polygon-extruded-hole/dist/index.html b/dist/samples/3d-polygon-extruded-hole/dist/index.html index 39785580..7956c5ac 100644 --- a/dist/samples/3d-polygon-extruded-hole/dist/index.html +++ b/dist/samples/3d-polygon-extruded-hole/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-extruded-hole/docs/index.html b/dist/samples/3d-polygon-extruded-hole/docs/index.html index 72588bba..8f55fb55 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/index.html +++ b/dist/samples/3d-polygon-extruded-hole/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-extruded-hole/docs/index.js b/dist/samples/3d-polygon-extruded-hole/docs/index.js index 842255cd..1eef5e04 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/index.js +++ b/dist/samples/3d-polygon-extruded-hole/docs/index.js @@ -1,40 +1,40 @@ "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_polygon_extruded_hole] async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, extruded: true, - altitudeMode: AltitudeMode.RELATIVE_TO_GROUND + altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208, altitude: 200 }, { lat: 40.6993, lng: -74.019, altitude: 200 }, - { lat: 40.7035, lng: -74.0004, altitude: 200 } + { lat: 40.7035, lng: -74.0004, altitude: 200 }, ]; examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, - { lat: 40.7035, lng: -74.006, altitude: 200 } - ] + { lat: 40.7035, lng: -74.006, altitude: 200 }, + ], ]; map3DElement.append(examplePolygon); document.body.append(map3DElement); diff --git a/dist/samples/3d-polygon-extruded-hole/docs/index.ts b/dist/samples/3d-polygon-extruded-hole/docs/index.ts index 48f88ec7..17eb7385 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/index.ts +++ b/dist/samples/3d-polygon-extruded-hole/docs/index.ts @@ -1,45 +1,48 @@ /* -* @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_polygon_extruded_hole] async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = + await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, extruded: true, - altitudeMode : AltitudeMode.RELATIVE_TO_GROUND - } + altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, + }; - const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208, altitude: 200 }, { lat: 40.6993, lng: -74.019, altitude: 200 }, - { lat: 40.7035, lng: -74.0004, altitude: 200 } + { lat: 40.7035, lng: -74.0004, altitude: 200 }, ]; examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, - { lat: 40.7035, lng: -74.006, altitude: 200 } - ] + { lat: 40.7035, lng: -74.006, altitude: 200 }, + ], ]; map3DElement.append(examplePolygon); diff --git a/dist/samples/3d-polygon-extruded-hole/docs/style.css b/dist/samples/3d-polygon-extruded-hole/docs/style.css index 81dc8ef9..2fbbb162 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/style.css +++ b/dist/samples/3d-polygon-extruded-hole/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_polygon_extruded_hole] */ diff --git a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.css b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.css +++ b/dist/samples/3d-polygon-extruded-hole/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-polygon-extruded-hole/jsfiddle/demo.html b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.html +++ b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js index cb78941f..763187be 100644 --- a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js +++ b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js @@ -1,40 +1,40 @@ "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, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polygon3DElement } = await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, extruded: true, - altitudeMode: AltitudeMode.RELATIVE_TO_GROUND + altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208, altitude: 200 }, { lat: 40.6993, lng: -74.019, altitude: 200 }, - { lat: 40.7035, lng: -74.0004, altitude: 200 } + { lat: 40.7035, lng: -74.0004, altitude: 200 }, ]; examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, - { lat: 40.7035, lng: -74.006, altitude: 200 } - ] + { lat: 40.7035, lng: -74.006, altitude: 200 }, + ], ]; map3DElement.append(examplePolygon); document.body.append(map3DElement); diff --git a/dist/samples/3d-polygon/app/README.md b/dist/samples/3d-polygon/app/README.md index 94c963f6..99f9407c 100644 --- a/dist/samples/3d-polygon/app/README.md +++ b/dist/samples/3d-polygon/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-polygon/app/index.html b/dist/samples/3d-polygon/app/index.html index d516e7c0..ccbfe4ad 100644 --- a/dist/samples/3d-polygon/app/index.html +++ b/dist/samples/3d-polygon/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon/app/index.ts b/dist/samples/3d-polygon/app/index.ts index 93c5ff41..246f0e05 100644 --- a/dist/samples/3d-polygon/app/index.ts +++ b/dist/samples/3d-polygon/app/index.ts @@ -1,35 +1,38 @@ /* -* @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_polygon] async function init() { - const { Map3DElement, MapMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); - + const { Map3DElement, MapMode, Polygon3DElement } = + await google.maps.importLibrary('maps3d'); + const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, - } + }; - const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, - { lat: 40.7035, lng: -74.0004 } + { lat: 40.7035, lng: -74.0004 }, ]; map3DElement.append(examplePolygon); diff --git a/dist/samples/3d-polygon/app/style.css b/dist/samples/3d-polygon/app/style.css index 04901599..53f5c208 100644 --- a/dist/samples/3d-polygon/app/style.css +++ b/dist/samples/3d-polygon/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_polygon] */ diff --git a/dist/samples/3d-polygon/dist/index.html b/dist/samples/3d-polygon/dist/index.html index 9a5f7634..4be6b332 100644 --- a/dist/samples/3d-polygon/dist/index.html +++ b/dist/samples/3d-polygon/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon/docs/index.html b/dist/samples/3d-polygon/docs/index.html index d516e7c0..ccbfe4ad 100644 --- a/dist/samples/3d-polygon/docs/index.html +++ b/dist/samples/3d-polygon/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon/docs/index.js b/dist/samples/3d-polygon/docs/index.js index c0721bf2..18e0e720 100644 --- a/dist/samples/3d-polygon/docs/index.js +++ b/dist/samples/3d-polygon/docs/index.js @@ -1,31 +1,31 @@ "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_polygon] async function init() { - const { Map3DElement, MapMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DElement } = await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, - { lat: 40.7035, lng: -74.0004 } + { lat: 40.7035, lng: -74.0004 }, ]; map3DElement.append(examplePolygon); document.body.append(map3DElement); diff --git a/dist/samples/3d-polygon/docs/index.ts b/dist/samples/3d-polygon/docs/index.ts index 93c5ff41..246f0e05 100644 --- a/dist/samples/3d-polygon/docs/index.ts +++ b/dist/samples/3d-polygon/docs/index.ts @@ -1,35 +1,38 @@ /* -* @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_polygon] async function init() { - const { Map3DElement, MapMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); - + const { Map3DElement, MapMode, Polygon3DElement } = + await google.maps.importLibrary('maps3d'); + const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, - } + }; - const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); + const examplePolygon = new google.maps.maps3d.Polygon3DElement( + polygonOptions + ); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, - { lat: 40.7035, lng: -74.0004 } + { lat: 40.7035, lng: -74.0004 }, ]; map3DElement.append(examplePolygon); diff --git a/dist/samples/3d-polygon/docs/style.css b/dist/samples/3d-polygon/docs/style.css index 04901599..53f5c208 100644 --- a/dist/samples/3d-polygon/docs/style.css +++ b/dist/samples/3d-polygon/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_polygon] */ diff --git a/dist/samples/3d-polygon/jsfiddle/demo.css b/dist/samples/3d-polygon/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polygon/jsfiddle/demo.css +++ b/dist/samples/3d-polygon/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-polygon/jsfiddle/demo.html b/dist/samples/3d-polygon/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polygon/jsfiddle/demo.html +++ b/dist/samples/3d-polygon/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polygon/jsfiddle/demo.js b/dist/samples/3d-polygon/jsfiddle/demo.js index 8b52595d..96488e51 100644 --- a/dist/samples/3d-polygon/jsfiddle/demo.js +++ b/dist/samples/3d-polygon/jsfiddle/demo.js @@ -1,31 +1,31 @@ "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, MapMode, Polygon3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, Polygon3DElement } = await google.maps.importLibrary('maps3d'); const map3DElement = new Map3DElement({ center: { lat: 40.6842, lng: -74.0019, altitude: 1000 }, heading: 340, tilt: 70, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const polygonOptions = { - strokeColor: "#0000ff80", + strokeColor: '#0000ff80', strokeWidth: 8, - fillColor: "#ff000080", + fillColor: '#ff000080', drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, - { lat: 40.7035, lng: -74.0004 } + { lat: 40.7035, lng: -74.0004 }, ]; map3DElement.append(examplePolygon); document.body.append(map3DElement); diff --git a/dist/samples/3d-polyline-click-event/app/README.md b/dist/samples/3d-polyline-click-event/app/README.md index c8a3a2fa..61958501 100644 --- a/dist/samples/3d-polyline-click-event/app/README.md +++ b/dist/samples/3d-polyline-click-event/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-polyline-click-event/app/index.html b/dist/samples/3d-polyline-click-event/app/index.html index 18e13fa8..251315e7 100644 --- a/dist/samples/3d-polyline-click-event/app/index.html +++ b/dist/samples/3d-polyline-click-event/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-click-event/app/index.ts b/dist/samples/3d-polyline-click-event/app/index.ts index 2bedabe0..359ad519 100644 --- a/dist/samples/3d-polyline-click-event/app/index.ts +++ b/dist/samples/3d-polyline-click-event/app/index.ts @@ -1,19 +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_polyline_click_event] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { + Map3DElement, + MapMode, + AltitudeMode, + Polyline3DInteractiveElement, + } = await google.maps.importLibrary('maps3d'); - map = new Map3DElement({ - center: { lat: 37.7927, lng : -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01 ,heading: 25.00, + map = new Map3DElement({ + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,8 +38,8 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } - ], + { lat: 37.7916358762409, lng: -122.3981969390652 }, + ], strokeColor: 'blue', outerColor: 'white', strokeWidth: 10, @@ -42,7 +50,8 @@ async function init() { polyline.addEventListener('gmp-click', (event) => { // Toggle whether the line draws occluded segments. - event.target.drawsOccludedSegments = !event.target.drawsOccludedSegments; + event.target.drawsOccludedSegments = + !event.target.drawsOccludedSegments; }); map.append(polyline); diff --git a/dist/samples/3d-polyline-click-event/app/style.css b/dist/samples/3d-polyline-click-event/app/style.css index f64defcf..92a3fb4e 100644 --- a/dist/samples/3d-polyline-click-event/app/style.css +++ b/dist/samples/3d-polyline-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_polyline_click_event] */ diff --git a/dist/samples/3d-polyline-click-event/dist/index.html b/dist/samples/3d-polyline-click-event/dist/index.html index cdfcf33e..5ddd328e 100644 --- a/dist/samples/3d-polyline-click-event/dist/index.html +++ b/dist/samples/3d-polyline-click-event/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-click-event/docs/index.html b/dist/samples/3d-polyline-click-event/docs/index.html index 18e13fa8..251315e7 100644 --- a/dist/samples/3d-polyline-click-event/docs/index.html +++ b/dist/samples/3d-polyline-click-event/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-click-event/docs/index.js b/dist/samples/3d-polyline-click-event/docs/index.js index 32d0249b..c3e804ba 100644 --- a/dist/samples/3d-polyline-click-event/docs/index.js +++ b/dist/samples/3d-polyline-click-event/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_polyline_click_event] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement, } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DInteractiveElement({ @@ -27,7 +30,7 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } + { lat: 37.7916358762409, lng: -122.3981969390652 }, ], strokeColor: 'blue', outerColor: 'white', @@ -38,7 +41,8 @@ async function init() { }); polyline.addEventListener('gmp-click', (event) => { // Toggle whether the line draws occluded segments. - event.target.drawsOccludedSegments = !event.target.drawsOccludedSegments; + event.target.drawsOccludedSegments = + !event.target.drawsOccludedSegments; }); map.append(polyline); } diff --git a/dist/samples/3d-polyline-click-event/docs/index.ts b/dist/samples/3d-polyline-click-event/docs/index.ts index 2bedabe0..359ad519 100644 --- a/dist/samples/3d-polyline-click-event/docs/index.ts +++ b/dist/samples/3d-polyline-click-event/docs/index.ts @@ -1,19 +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_polyline_click_event] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { + Map3DElement, + MapMode, + AltitudeMode, + Polyline3DInteractiveElement, + } = await google.maps.importLibrary('maps3d'); - map = new Map3DElement({ - center: { lat: 37.7927, lng : -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01 ,heading: 25.00, + map = new Map3DElement({ + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,8 +38,8 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } - ], + { lat: 37.7916358762409, lng: -122.3981969390652 }, + ], strokeColor: 'blue', outerColor: 'white', strokeWidth: 10, @@ -42,7 +50,8 @@ async function init() { polyline.addEventListener('gmp-click', (event) => { // Toggle whether the line draws occluded segments. - event.target.drawsOccludedSegments = !event.target.drawsOccludedSegments; + event.target.drawsOccludedSegments = + !event.target.drawsOccludedSegments; }); map.append(polyline); diff --git a/dist/samples/3d-polyline-click-event/docs/style.css b/dist/samples/3d-polyline-click-event/docs/style.css index f64defcf..92a3fb4e 100644 --- a/dist/samples/3d-polyline-click-event/docs/style.css +++ b/dist/samples/3d-polyline-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_polyline_click_event] */ diff --git a/dist/samples/3d-polyline-click-event/jsfiddle/demo.css b/dist/samples/3d-polyline-click-event/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polyline-click-event/jsfiddle/demo.css +++ b/dist/samples/3d-polyline-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-polyline-click-event/jsfiddle/demo.html b/dist/samples/3d-polyline-click-event/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polyline-click-event/jsfiddle/demo.html +++ b/dist/samples/3d-polyline-click-event/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-click-event/jsfiddle/demo.js b/dist/samples/3d-polyline-click-event/jsfiddle/demo.js index 177badd1..9324c352 100644 --- a/dist/samples/3d-polyline-click-event/jsfiddle/demo.js +++ b/dist/samples/3d-polyline-click-event/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 let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DInteractiveElement, } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DInteractiveElement({ @@ -27,7 +30,7 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } + { lat: 37.7916358762409, lng: -122.3981969390652 }, ], strokeColor: 'blue', outerColor: 'white', @@ -38,7 +41,8 @@ async function init() { }); polyline.addEventListener('gmp-click', (event) => { // Toggle whether the line draws occluded segments. - event.target.drawsOccludedSegments = !event.target.drawsOccludedSegments; + event.target.drawsOccludedSegments = + !event.target.drawsOccludedSegments; }); map.append(polyline); } diff --git a/dist/samples/3d-polyline-extruded/app/README.md b/dist/samples/3d-polyline-extruded/app/README.md index 6811516b..bdb5e57a 100644 --- a/dist/samples/3d-polyline-extruded/app/README.md +++ b/dist/samples/3d-polyline-extruded/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-polyline-extruded/app/index.html b/dist/samples/3d-polyline-extruded/app/index.html index f8faa0a5..b4e5bd68 100644 --- a/dist/samples/3d-polyline-extruded/app/index.html +++ b/dist/samples/3d-polyline-extruded/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-extruded/app/index.ts b/dist/samples/3d-polyline-extruded/app/index.ts index e11c6fc8..bb5c0277 100644 --- a/dist/samples/3d-polyline-extruded/app/index.ts +++ b/dist/samples/3d-polyline-extruded/app/index.ts @@ -1,19 +1,23 @@ /* -* @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_polyline_extruded] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = + await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,12 +34,12 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814, altitude: 100 }, { lat: 37.78618687561075, lng: -122.398969592545, altitude: 100 }, { lat: 37.7892310309145, lng: -122.3951458683092, altitude: 100 }, - { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 } + { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 }, ], strokeColor: '#0000FF80', strokeWidth: 10, altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, // Place it on the ground (as it has no altitude it will just be at ground height). - extruded: true + extruded: true, }); map.append(polyline); diff --git a/dist/samples/3d-polyline-extruded/app/style.css b/dist/samples/3d-polyline-extruded/app/style.css index 5b6968df..d3cc2546 100644 --- a/dist/samples/3d-polyline-extruded/app/style.css +++ b/dist/samples/3d-polyline-extruded/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_polyline_extruded] */ diff --git a/dist/samples/3d-polyline-extruded/dist/index.html b/dist/samples/3d-polyline-extruded/dist/index.html index a0ca72f8..11db2088 100644 --- a/dist/samples/3d-polyline-extruded/dist/index.html +++ b/dist/samples/3d-polyline-extruded/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-extruded/docs/index.html b/dist/samples/3d-polyline-extruded/docs/index.html index f8faa0a5..b4e5bd68 100644 --- a/dist/samples/3d-polyline-extruded/docs/index.html +++ b/dist/samples/3d-polyline-extruded/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-extruded/docs/index.js b/dist/samples/3d-polyline-extruded/docs/index.js index c9e4cc5e..dabc2876 100644 --- a/dist/samples/3d-polyline-extruded/docs/index.js +++ b/dist/samples/3d-polyline-extruded/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_polyline_extruded] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DElement({ @@ -27,12 +30,12 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814, altitude: 100 }, { lat: 37.78618687561075, lng: -122.398969592545, altitude: 100 }, { lat: 37.7892310309145, lng: -122.3951458683092, altitude: 100 }, - { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 } + { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 }, ], strokeColor: '#0000FF80', strokeWidth: 10, altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, // Place it on the ground (as it has no altitude it will just be at ground height). - extruded: true + extruded: true, }); map.append(polyline); } diff --git a/dist/samples/3d-polyline-extruded/docs/index.ts b/dist/samples/3d-polyline-extruded/docs/index.ts index e11c6fc8..bb5c0277 100644 --- a/dist/samples/3d-polyline-extruded/docs/index.ts +++ b/dist/samples/3d-polyline-extruded/docs/index.ts @@ -1,19 +1,23 @@ /* -* @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_polyline_extruded] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = + await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,12 +34,12 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814, altitude: 100 }, { lat: 37.78618687561075, lng: -122.398969592545, altitude: 100 }, { lat: 37.7892310309145, lng: -122.3951458683092, altitude: 100 }, - { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 } + { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 }, ], strokeColor: '#0000FF80', strokeWidth: 10, altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, // Place it on the ground (as it has no altitude it will just be at ground height). - extruded: true + extruded: true, }); map.append(polyline); diff --git a/dist/samples/3d-polyline-extruded/docs/style.css b/dist/samples/3d-polyline-extruded/docs/style.css index 5b6968df..d3cc2546 100644 --- a/dist/samples/3d-polyline-extruded/docs/style.css +++ b/dist/samples/3d-polyline-extruded/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_polyline_extruded] */ diff --git a/dist/samples/3d-polyline-extruded/jsfiddle/demo.css b/dist/samples/3d-polyline-extruded/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polyline-extruded/jsfiddle/demo.css +++ b/dist/samples/3d-polyline-extruded/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-polyline-extruded/jsfiddle/demo.html b/dist/samples/3d-polyline-extruded/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polyline-extruded/jsfiddle/demo.html +++ b/dist/samples/3d-polyline-extruded/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline-extruded/jsfiddle/demo.js b/dist/samples/3d-polyline-extruded/jsfiddle/demo.js index 93831888..040c2797 100644 --- a/dist/samples/3d-polyline-extruded/jsfiddle/demo.js +++ b/dist/samples/3d-polyline-extruded/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 let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DElement({ @@ -27,12 +30,12 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814, altitude: 100 }, { lat: 37.78618687561075, lng: -122.398969592545, altitude: 100 }, { lat: 37.7892310309145, lng: -122.3951458683092, altitude: 100 }, - { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 } + { lat: 37.7916358762409, lng: -122.3981969390652, altitude: 100 }, ], strokeColor: '#0000FF80', strokeWidth: 10, altitudeMode: AltitudeMode.RELATIVE_TO_GROUND, // Place it on the ground (as it has no altitude it will just be at ground height). - extruded: true + extruded: true, }); map.append(polyline); } diff --git a/dist/samples/3d-polyline/app/README.md b/dist/samples/3d-polyline/app/README.md index 17e1a067..685b6b77 100644 --- a/dist/samples/3d-polyline/app/README.md +++ b/dist/samples/3d-polyline/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-polyline/app/index.html b/dist/samples/3d-polyline/app/index.html index 58b994b3..50955609 100644 --- a/dist/samples/3d-polyline/app/index.html +++ b/dist/samples/3d-polyline/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline/app/index.ts b/dist/samples/3d-polyline/app/index.ts index aeeba069..0a712c63 100644 --- a/dist/samples/3d-polyline/app/index.ts +++ b/dist/samples/3d-polyline/app/index.ts @@ -1,19 +1,23 @@ /* -* @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_polyline] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = + await google.maps.importLibrary('maps3d'); - map = new Map3DElement({ - center: { lat: 37.7927, lng : -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01 ,heading: 25.00, + map = new Map3DElement({ + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,8 +34,8 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } - ], + { lat: 37.7916358762409, lng: -122.3981969390652 }, + ], strokeColor: 'blue', outerColor: 'white', strokeWidth: 10, diff --git a/dist/samples/3d-polyline/app/style.css b/dist/samples/3d-polyline/app/style.css index cd5e3276..47f5a48f 100644 --- a/dist/samples/3d-polyline/app/style.css +++ b/dist/samples/3d-polyline/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_polyline] */ diff --git a/dist/samples/3d-polyline/dist/index.html b/dist/samples/3d-polyline/dist/index.html index e7f197da..6ca485e3 100644 --- a/dist/samples/3d-polyline/dist/index.html +++ b/dist/samples/3d-polyline/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline/docs/index.html b/dist/samples/3d-polyline/docs/index.html index 58b994b3..50955609 100644 --- a/dist/samples/3d-polyline/docs/index.html +++ b/dist/samples/3d-polyline/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline/docs/index.js b/dist/samples/3d-polyline/docs/index.js index 8c78779a..e726635c 100644 --- a/dist/samples/3d-polyline/docs/index.js +++ b/dist/samples/3d-polyline/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_polyline] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DElement({ @@ -27,7 +30,7 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } + { lat: 37.7916358762409, lng: -122.3981969390652 }, ], strokeColor: 'blue', outerColor: 'white', diff --git a/dist/samples/3d-polyline/docs/index.ts b/dist/samples/3d-polyline/docs/index.ts index aeeba069..0a712c63 100644 --- a/dist/samples/3d-polyline/docs/index.ts +++ b/dist/samples/3d-polyline/docs/index.ts @@ -1,19 +1,23 @@ /* -* @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_polyline] let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = + await google.maps.importLibrary('maps3d'); - map = new Map3DElement({ - center: { lat: 37.7927, lng : -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01 ,heading: 25.00, + map = new Map3DElement({ + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); @@ -30,8 +34,8 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } - ], + { lat: 37.7916358762409, lng: -122.3981969390652 }, + ], strokeColor: 'blue', outerColor: 'white', strokeWidth: 10, diff --git a/dist/samples/3d-polyline/docs/style.css b/dist/samples/3d-polyline/docs/style.css index cd5e3276..47f5a48f 100644 --- a/dist/samples/3d-polyline/docs/style.css +++ b/dist/samples/3d-polyline/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_polyline] */ diff --git a/dist/samples/3d-polyline/jsfiddle/demo.css b/dist/samples/3d-polyline/jsfiddle/demo.css index a74f30bc..d6ec582a 100644 --- a/dist/samples/3d-polyline/jsfiddle/demo.css +++ b/dist/samples/3d-polyline/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-polyline/jsfiddle/demo.html b/dist/samples/3d-polyline/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-polyline/jsfiddle/demo.html +++ b/dist/samples/3d-polyline/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-polyline/jsfiddle/demo.js b/dist/samples/3d-polyline/jsfiddle/demo.js index 785b084e..36e89cdd 100644 --- a/dist/samples/3d-polyline/jsfiddle/demo.js +++ b/dist/samples/3d-polyline/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 let map; async function init() { - const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, MapMode, AltitudeMode, Polyline3DElement } = await google.maps.importLibrary('maps3d'); map = new Map3DElement({ - center: { lat: 37.7927, lng: -122.4020, altitude: 65.93 }, range: 3362.87, tilt: 64.01, heading: 25.00, + center: { lat: 37.7927, lng: -122.402, altitude: 65.93 }, + range: 3362.87, + tilt: 64.01, + heading: 25.0, mode: MapMode.SATELLITE, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); const polyline = new Polyline3DElement({ @@ -27,7 +30,7 @@ async function init() { { lat: 37.78861484290265, lng: -122.4019489189814 }, { lat: 37.78618687561075, lng: -122.398969592545 }, { lat: 37.7892310309145, lng: -122.3951458683092 }, - { lat: 37.7916358762409, lng: -122.3981969390652 } + { lat: 37.7916358762409, lng: -122.3981969390652 }, ], strokeColor: 'blue', outerColor: 'white', diff --git a/dist/samples/3d-popover-location/app/README.md b/dist/samples/3d-popover-location/app/README.md index 36ae4137..218d1c95 100644 --- a/dist/samples/3d-popover-location/app/README.md +++ b/dist/samples/3d-popover-location/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-popover-location/app/index.html b/dist/samples/3d-popover-location/app/index.html index 994c96d1..c1fd2d24 100644 --- a/dist/samples/3d-popover-location/app/index.html +++ b/dist/samples/3d-popover-location/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-location/app/index.ts b/dist/samples/3d-popover-location/app/index.ts index 51cbd489..d11f41da 100644 --- a/dist/samples/3d-popover-location/app/index.ts +++ b/dist/samples/3d-popover-location/app/index.ts @@ -1,32 +1,35 @@ /* -* @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_popover_location] async function init() { -const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = + await google.maps.importLibrary('maps3d'); -const map = new Map3DElement({ - center: { lat: 37.8204, lng : -122.4783, altitude: 0.407 }, range: 4000, tilt: 74 ,heading: 38, - mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" -}); + const map = new Map3DElement({ + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, + mode: MapMode.HYBRID, + gestureHandling: 'COOPERATIVE', + }); -const popover = new PopoverElement({ - altitudeMode: AltitudeMode.ABSOLUTE, - open: true, - positionAnchor: { lat: 37.819852, lng: -122.478549, altitude: 150 }, -}); + const popover = new PopoverElement({ + altitudeMode: AltitudeMode.ABSOLUTE, + open: true, + positionAnchor: { lat: 37.819852, lng: -122.478549, altitude: 150 }, + }); -popover.append('Golden Gate Bridge'); + popover.append('Golden Gate Bridge'); -map.append(popover); - -document.body.append(map); + map.append(popover); + document.body.append(map); } init(); diff --git a/dist/samples/3d-popover-location/app/style.css b/dist/samples/3d-popover-location/app/style.css index 0e4ebafb..894fb328 100644 --- a/dist/samples/3d-popover-location/app/style.css +++ b/dist/samples/3d-popover-location/app/style.css @@ -14,6 +14,6 @@ body { padding: 0; } map { - height: 100%; + height: 100%; } /* [END maps_3d_popover_location] */ diff --git a/dist/samples/3d-popover-location/dist/index.html b/dist/samples/3d-popover-location/dist/index.html index 586887eb..866056ef 100644 --- a/dist/samples/3d-popover-location/dist/index.html +++ b/dist/samples/3d-popover-location/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-location/docs/index.html b/dist/samples/3d-popover-location/docs/index.html index 994c96d1..c1fd2d24 100644 --- a/dist/samples/3d-popover-location/docs/index.html +++ b/dist/samples/3d-popover-location/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-location/docs/index.js b/dist/samples/3d-popover-location/docs/index.js index 0111b9a8..e0a594a1 100644 --- a/dist/samples/3d-popover-location/docs/index.js +++ b/dist/samples/3d-popover-location/docs/index.js @@ -1,17 +1,20 @@ "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_popover_location] async function init() { - const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const popover = new PopoverElement({ altitudeMode: AltitudeMode.ABSOLUTE, diff --git a/dist/samples/3d-popover-location/docs/index.ts b/dist/samples/3d-popover-location/docs/index.ts index 51cbd489..d11f41da 100644 --- a/dist/samples/3d-popover-location/docs/index.ts +++ b/dist/samples/3d-popover-location/docs/index.ts @@ -1,32 +1,35 @@ /* -* @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_popover_location] async function init() { -const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = + await google.maps.importLibrary('maps3d'); -const map = new Map3DElement({ - center: { lat: 37.8204, lng : -122.4783, altitude: 0.407 }, range: 4000, tilt: 74 ,heading: 38, - mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" -}); + const map = new Map3DElement({ + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, + mode: MapMode.HYBRID, + gestureHandling: 'COOPERATIVE', + }); -const popover = new PopoverElement({ - altitudeMode: AltitudeMode.ABSOLUTE, - open: true, - positionAnchor: { lat: 37.819852, lng: -122.478549, altitude: 150 }, -}); + const popover = new PopoverElement({ + altitudeMode: AltitudeMode.ABSOLUTE, + open: true, + positionAnchor: { lat: 37.819852, lng: -122.478549, altitude: 150 }, + }); -popover.append('Golden Gate Bridge'); + popover.append('Golden Gate Bridge'); -map.append(popover); - -document.body.append(map); + map.append(popover); + document.body.append(map); } init(); diff --git a/dist/samples/3d-popover-location/docs/style.css b/dist/samples/3d-popover-location/docs/style.css index 0e4ebafb..894fb328 100644 --- a/dist/samples/3d-popover-location/docs/style.css +++ b/dist/samples/3d-popover-location/docs/style.css @@ -14,6 +14,6 @@ body { padding: 0; } map { - height: 100%; + height: 100%; } /* [END maps_3d_popover_location] */ diff --git a/dist/samples/3d-popover-location/jsfiddle/demo.css b/dist/samples/3d-popover-location/jsfiddle/demo.css index 0be67c08..bf49901d 100644 --- a/dist/samples/3d-popover-location/jsfiddle/demo.css +++ b/dist/samples/3d-popover-location/jsfiddle/demo.css @@ -14,6 +14,6 @@ body { padding: 0; } map { - height: 100%; + height: 100%; } diff --git a/dist/samples/3d-popover-location/jsfiddle/demo.html b/dist/samples/3d-popover-location/jsfiddle/demo.html index 587eabf5..9501b596 100644 --- a/dist/samples/3d-popover-location/jsfiddle/demo.html +++ b/dist/samples/3d-popover-location/jsfiddle/demo.html @@ -6,17 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + + diff --git a/dist/samples/3d-popover-location/jsfiddle/demo.js b/dist/samples/3d-popover-location/jsfiddle/demo.js index 228c99ae..e03f617d 100644 --- a/dist/samples/3d-popover-location/jsfiddle/demo.js +++ b/dist/samples/3d-popover-location/jsfiddle/demo.js @@ -1,17 +1,20 @@ "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 { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, MapMode, PopoverElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const popover = new PopoverElement({ altitudeMode: AltitudeMode.ABSOLUTE, diff --git a/dist/samples/3d-popover-marker/app/README.md b/dist/samples/3d-popover-marker/app/README.md index d113a5d7..01d817f9 100644 --- a/dist/samples/3d-popover-marker/app/README.md +++ b/dist/samples/3d-popover-marker/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-popover-marker/app/index.html b/dist/samples/3d-popover-marker/app/index.html index 0f962f6d..ec542671 100644 --- a/dist/samples/3d-popover-marker/app/index.html +++ b/dist/samples/3d-popover-marker/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-marker/app/index.ts b/dist/samples/3d-popover-marker/app/index.ts index fb16eb54..2b5735db 100644 --- a/dist/samples/3d-popover-marker/app/index.ts +++ b/dist/samples/3d-popover-marker/app/index.ts @@ -1,24 +1,33 @@ /* -* @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_popover_marker] async function init() { - const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { + AltitudeMode, + Map3DElement, + Marker3DInteractiveElement, + MapMode, + PopoverElement, + } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); // Popovers can only be added to interactive Markers const interactiveMarker = new Marker3DInteractiveElement({ altitudeMode: AltitudeMode.ABSOLUTE, - position: { lat: 37.819852, lng: -122.478549, altitude: 100 } + position: { lat: 37.819852, lng: -122.478549, altitude: 100 }, }); const popover = new PopoverElement({ @@ -37,7 +46,6 @@ async function init() { map.append(popover); document.body.append(map); - } init(); diff --git a/dist/samples/3d-popover-marker/app/style.css b/dist/samples/3d-popover-marker/app/style.css index 18fccad3..59461c24 100644 --- a/dist/samples/3d-popover-marker/app/style.css +++ b/dist/samples/3d-popover-marker/app/style.css @@ -9,7 +9,7 @@ */ html, map { - height: 100%; + height: 100%; } body { height: 100%; diff --git a/dist/samples/3d-popover-marker/dist/index.html b/dist/samples/3d-popover-marker/dist/index.html index 8273f692..f25abe23 100644 --- a/dist/samples/3d-popover-marker/dist/index.html +++ b/dist/samples/3d-popover-marker/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-marker/docs/index.html b/dist/samples/3d-popover-marker/docs/index.html index 0f962f6d..ec542671 100644 --- a/dist/samples/3d-popover-marker/docs/index.html +++ b/dist/samples/3d-popover-marker/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + - \ No newline at end of file + diff --git a/dist/samples/3d-popover-marker/docs/index.js b/dist/samples/3d-popover-marker/docs/index.js index b8805269..bcb1f257 100644 --- a/dist/samples/3d-popover-marker/docs/index.js +++ b/dist/samples/3d-popover-marker/docs/index.js @@ -1,22 +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_popover_marker] async function init() { - const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement, } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); // Popovers can only be added to interactive Markers const interactiveMarker = new Marker3DInteractiveElement({ altitudeMode: AltitudeMode.ABSOLUTE, - position: { lat: 37.819852, lng: -122.478549, altitude: 100 } + position: { lat: 37.819852, lng: -122.478549, altitude: 100 }, }); const popover = new PopoverElement({ open: false, diff --git a/dist/samples/3d-popover-marker/docs/index.ts b/dist/samples/3d-popover-marker/docs/index.ts index fb16eb54..2b5735db 100644 --- a/dist/samples/3d-popover-marker/docs/index.ts +++ b/dist/samples/3d-popover-marker/docs/index.ts @@ -1,24 +1,33 @@ /* -* @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_popover_marker] async function init() { - const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { + AltitudeMode, + Map3DElement, + Marker3DInteractiveElement, + MapMode, + PopoverElement, + } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); // Popovers can only be added to interactive Markers const interactiveMarker = new Marker3DInteractiveElement({ altitudeMode: AltitudeMode.ABSOLUTE, - position: { lat: 37.819852, lng: -122.478549, altitude: 100 } + position: { lat: 37.819852, lng: -122.478549, altitude: 100 }, }); const popover = new PopoverElement({ @@ -37,7 +46,6 @@ async function init() { map.append(popover); document.body.append(map); - } init(); diff --git a/dist/samples/3d-popover-marker/docs/style.css b/dist/samples/3d-popover-marker/docs/style.css index 18fccad3..59461c24 100644 --- a/dist/samples/3d-popover-marker/docs/style.css +++ b/dist/samples/3d-popover-marker/docs/style.css @@ -9,7 +9,7 @@ */ html, map { - height: 100%; + height: 100%; } body { height: 100%; diff --git a/dist/samples/3d-popover-marker/jsfiddle/demo.css b/dist/samples/3d-popover-marker/jsfiddle/demo.css index 0f518779..d6ec582a 100644 --- a/dist/samples/3d-popover-marker/jsfiddle/demo.css +++ b/dist/samples/3d-popover-marker/jsfiddle/demo.css @@ -9,7 +9,7 @@ */ html, map { - height: 100%; + height: 100%; } body { height: 100%; diff --git a/dist/samples/3d-popover-marker/jsfiddle/demo.html b/dist/samples/3d-popover-marker/jsfiddle/demo.html index 587eabf5..9501b596 100644 --- a/dist/samples/3d-popover-marker/jsfiddle/demo.html +++ b/dist/samples/3d-popover-marker/jsfiddle/demo.html @@ -6,17 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + + diff --git a/dist/samples/3d-popover-marker/jsfiddle/demo.js b/dist/samples/3d-popover-marker/jsfiddle/demo.js index eabd515c..b92eac84 100644 --- a/dist/samples/3d-popover-marker/jsfiddle/demo.js +++ b/dist/samples/3d-popover-marker/jsfiddle/demo.js @@ -1,22 +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 init() { - const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement } = await google.maps.importLibrary("maps3d"); + const { AltitudeMode, Map3DElement, Marker3DInteractiveElement, MapMode, PopoverElement, } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ - center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, range: 4000, tilt: 74, heading: 38, + center: { lat: 37.8204, lng: -122.4783, altitude: 0.407 }, + range: 4000, + tilt: 74, + heading: 38, mode: MapMode.HYBRID, - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); // Popovers can only be added to interactive Markers const interactiveMarker = new Marker3DInteractiveElement({ altitudeMode: AltitudeMode.ABSOLUTE, - position: { lat: 37.819852, lng: -122.478549, altitude: 100 } + position: { lat: 37.819852, lng: -122.478549, altitude: 100 }, }); const popover = new PopoverElement({ open: false, diff --git a/dist/samples/3d-simple-map-declarative/app/README.md b/dist/samples/3d-simple-map-declarative/app/README.md index 62904810..5c63badc 100644 --- a/dist/samples/3d-simple-map-declarative/app/README.md +++ b/dist/samples/3d-simple-map-declarative/app/README.md @@ -1,7 +1,10 @@ # Google Maps JavaScript Sample -This sample is generated from @googlemaps/js-samples located at -https://github.com/googlemaps-samples/js-api-samples. +## 3d-simple-map-declarative + +The 3d-simple-map-declarative sample demonstrates how to create a simple 3D map using a declarative approach. + +Follow these instructions to set up and run 3d-simple-map-declarative sample on your local computer. ## Setup @@ -19,7 +22,7 @@ First `cd` to the folder for the sample to run, then: From `samples/`: -`$npm run build --workspace=sample-name/` +`$npm run build --workspace=3d-simple-map-declarative/` ### Build all of the examples. @@ -30,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-simple-map-declarative/app/index.html b/dist/samples/3d-simple-map-declarative/app/index.html index bf89cc27..ff85888b 100644 --- a/dist/samples/3d-simple-map-declarative/app/index.html +++ b/dist/samples/3d-simple-map-declarative/app/index.html @@ -6,15 +6,19 @@ --> - - Map - - - - + + Map + + + + - - + + diff --git a/dist/samples/3d-simple-map-declarative/app/index.ts b/dist/samples/3d-simple-map-declarative/app/index.ts index ce09c184..aa62c7ce 100644 --- a/dist/samples/3d-simple-map-declarative/app/index.ts +++ b/dist/samples/3d-simple-map-declarative/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_simple_map_declarative] diff --git a/dist/samples/3d-simple-map-declarative/dist/assets/index-BgMuHnVn.css b/dist/samples/3d-simple-map-declarative/dist/assets/index-BgMuHnVn.css new file mode 100644 index 00000000..76ca6d7b --- /dev/null +++ b/dist/samples/3d-simple-map-declarative/dist/assets/index-BgMuHnVn.css @@ -0,0 +1 @@ +html,gmp-map-3d{height:100%}html,body{height:100%;margin:0;padding:0} diff --git a/dist/samples/3d-simple-map-declarative/dist/assets/index-BlXa5a9u.css b/dist/samples/3d-simple-map-declarative/dist/assets/index-BlXa5a9u.css deleted file mode 100644 index ccf50775..00000000 --- a/dist/samples/3d-simple-map-declarative/dist/assets/index-BlXa5a9u.css +++ /dev/null @@ -1,5 +0,0 @@ -/* -* @license -* Copyright 2025 Google LLC. All Rights Reserved. -* SPDX-License-Identifier: Apache-2.0 -*/html,gmp-map-3d{height:100%}html,body{height:100%;margin:0;padding:0} diff --git a/dist/samples/3d-simple-map-declarative/dist/index.html b/dist/samples/3d-simple-map-declarative/dist/index.html index 57ff2088..578882ad 100644 --- a/dist/samples/3d-simple-map-declarative/dist/index.html +++ b/dist/samples/3d-simple-map-declarative/dist/index.html @@ -6,15 +6,19 @@ --> - - Map - - - - + + Map + + + + - - + + diff --git a/dist/samples/3d-simple-map-declarative/docs/index.html b/dist/samples/3d-simple-map-declarative/docs/index.html index bf89cc27..ff85888b 100644 --- a/dist/samples/3d-simple-map-declarative/docs/index.html +++ b/dist/samples/3d-simple-map-declarative/docs/index.html @@ -6,15 +6,19 @@ --> - - Map - - - - + + Map + + + + - - + + diff --git a/dist/samples/3d-simple-map-declarative/docs/index.js b/dist/samples/3d-simple-map-declarative/docs/index.js index e3502401..49363e6f 100644 --- a/dist/samples/3d-simple-map-declarative/docs/index.js +++ b/dist/samples/3d-simple-map-declarative/docs/index.js @@ -1,9 +1,9 @@ "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_simple_map_declarative] // [END maps_3d_simple_map_declarative] diff --git a/dist/samples/3d-simple-map-declarative/docs/index.ts b/dist/samples/3d-simple-map-declarative/docs/index.ts index ce09c184..aa62c7ce 100644 --- a/dist/samples/3d-simple-map-declarative/docs/index.ts +++ b/dist/samples/3d-simple-map-declarative/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_simple_map_declarative] diff --git a/dist/samples/3d-simple-map-declarative/jsfiddle/demo.html b/dist/samples/3d-simple-map-declarative/jsfiddle/demo.html index cb26e9cc..4271224a 100644 --- a/dist/samples/3d-simple-map-declarative/jsfiddle/demo.html +++ b/dist/samples/3d-simple-map-declarative/jsfiddle/demo.html @@ -6,15 +6,19 @@ --> - - Map - - - - + + Map + + + + - - + + diff --git a/dist/samples/3d-simple-map-declarative/jsfiddle/demo.js b/dist/samples/3d-simple-map-declarative/jsfiddle/demo.js index b2e755f0..4130b7d4 100644 --- a/dist/samples/3d-simple-map-declarative/jsfiddle/demo.js +++ b/dist/samples/3d-simple-map-declarative/jsfiddle/demo.js @@ -1,9 +1,9 @@ "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 diff --git a/dist/samples/3d-simple-map/app/README.md b/dist/samples/3d-simple-map/app/README.md index c263bc72..8c4400f9 100644 --- a/dist/samples/3d-simple-map/app/README.md +++ b/dist/samples/3d-simple-map/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-simple-map/app/index.html b/dist/samples/3d-simple-map/app/index.html index a287f03b..24ab4306 100644 --- a/dist/samples/3d-simple-map/app/index.html +++ b/dist/samples/3d-simple-map/app/index.html @@ -6,17 +6,16 @@ --> - - Simple Map + + Simple Map - - - - - - - + + + + - + diff --git a/dist/samples/3d-simple-map/app/index.ts b/dist/samples/3d-simple-map/app/index.ts index 43d8d35b..4cee1831 100644 --- a/dist/samples/3d-simple-map/app/index.ts +++ b/dist/samples/3d-simple-map/app/index.ts @@ -1,19 +1,19 @@ /* -* @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_simple_map] async function initMap() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.7704, lng: -122.3985, altitude: 500 }, tilt: 67.5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); diff --git a/dist/samples/3d-simple-map/app/style.css b/dist/samples/3d-simple-map/app/style.css index 7624a816..db29d516 100644 --- a/dist/samples/3d-simple-map/app/style.css +++ b/dist/samples/3d-simple-map/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-simple-map/dist/index.html b/dist/samples/3d-simple-map/dist/index.html index 3cdc566b..5a1b82f2 100644 --- a/dist/samples/3d-simple-map/dist/index.html +++ b/dist/samples/3d-simple-map/dist/index.html @@ -6,17 +6,16 @@ --> - - Simple Map + + Simple Map - - - - - - - + + + + + - + diff --git a/dist/samples/3d-simple-map/docs/index.html b/dist/samples/3d-simple-map/docs/index.html index a287f03b..24ab4306 100644 --- a/dist/samples/3d-simple-map/docs/index.html +++ b/dist/samples/3d-simple-map/docs/index.html @@ -6,17 +6,16 @@ --> - - Simple Map + + Simple Map - - - - - - - + + + + - + diff --git a/dist/samples/3d-simple-map/docs/index.js b/dist/samples/3d-simple-map/docs/index.js index c58884b2..c108e45d 100644 --- a/dist/samples/3d-simple-map/docs/index.js +++ b/dist/samples/3d-simple-map/docs/index.js @@ -1,18 +1,18 @@ "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_simple_map] async function initMap() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.7704, lng: -122.3985, altitude: 500 }, tilt: 67.5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); } diff --git a/dist/samples/3d-simple-map/docs/index.ts b/dist/samples/3d-simple-map/docs/index.ts index 43d8d35b..4cee1831 100644 --- a/dist/samples/3d-simple-map/docs/index.ts +++ b/dist/samples/3d-simple-map/docs/index.ts @@ -1,19 +1,19 @@ /* -* @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_simple_map] async function initMap() { - const { Map3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.7704, lng: -122.3985, altitude: 500 }, tilt: 67.5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); diff --git a/dist/samples/3d-simple-map/docs/style.css b/dist/samples/3d-simple-map/docs/style.css index 7624a816..db29d516 100644 --- a/dist/samples/3d-simple-map/docs/style.css +++ b/dist/samples/3d-simple-map/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-simple-map/jsfiddle/demo.css b/dist/samples/3d-simple-map/jsfiddle/demo.css index 76f40072..c50e5fa5 100644 --- a/dist/samples/3d-simple-map/jsfiddle/demo.css +++ b/dist/samples/3d-simple-map/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-simple-map/jsfiddle/demo.html b/dist/samples/3d-simple-map/jsfiddle/demo.html index a4cb9771..340dfb2b 100644 --- a/dist/samples/3d-simple-map/jsfiddle/demo.html +++ b/dist/samples/3d-simple-map/jsfiddle/demo.html @@ -6,17 +6,16 @@ --> - - Simple Map + + Simple Map - - - - - - - + + + + - + diff --git a/dist/samples/3d-simple-map/jsfiddle/demo.js b/dist/samples/3d-simple-map/jsfiddle/demo.js index 958839f4..2e462af5 100644 --- a/dist/samples/3d-simple-map/jsfiddle/demo.js +++ b/dist/samples/3d-simple-map/jsfiddle/demo.js @@ -1,18 +1,18 @@ "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.7704, lng: -122.3985, altitude: 500 }, tilt: 67.5, mode: 'HYBRID', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); document.body.append(map); } diff --git a/dist/samples/3d-simple-marker/app/README.md b/dist/samples/3d-simple-marker/app/README.md index 478b4325..26037767 100644 --- a/dist/samples/3d-simple-marker/app/README.md +++ b/dist/samples/3d-simple-marker/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-simple-marker/app/index.html b/dist/samples/3d-simple-marker/app/index.html index e376a305..11b584f5 100644 --- a/dist/samples/3d-simple-marker/app/index.html +++ b/dist/samples/3d-simple-marker/app/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-simple-marker/app/index.ts b/dist/samples/3d-simple-marker/app/index.ts index 954e5225..00dd07e4 100644 --- a/dist/samples/3d-simple-marker/app/index.ts +++ b/dist/samples/3d-simple-marker/app/index.ts @@ -1,27 +1,28 @@ /* -* @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_simple_marker] async function init() { // Make sure the Marker3DElement is included. - const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.4239163, lng: -122.0947209, altitude: 0 }, tilt: 67.5, range: 1000, mode: 'SATELLITE', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - + const marker = new Marker3DElement({ position: { lat: 37.4239163, lng: -122.0947209, altitude: 50 }, // (Required) Marker must have a lat / lng, but doesn't need an altitude. - altitudeMode : "ABSOLUTE", // (Optional) Treated as CLAMP_TO_GROUND if omitted. - extruded : true, // (Optional) Draws line from ground to the bottom of the marker. - label : "Basic Marker" // (Optional) Add a label to the marker. + altitudeMode: 'ABSOLUTE', // (Optional) Treated as CLAMP_TO_GROUND if omitted. + extruded: true, // (Optional) Draws line from ground to the bottom of the marker. + label: 'Basic Marker', // (Optional) Add a label to the marker. }); map.append(marker); // The marker must be appended to the map. diff --git a/dist/samples/3d-simple-marker/dist/index.html b/dist/samples/3d-simple-marker/dist/index.html index 2829ebbf..18a04725 100644 --- a/dist/samples/3d-simple-marker/dist/index.html +++ b/dist/samples/3d-simple-marker/dist/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-simple-marker/docs/index.html b/dist/samples/3d-simple-marker/docs/index.html index e376a305..11b584f5 100644 --- a/dist/samples/3d-simple-marker/docs/index.html +++ b/dist/samples/3d-simple-marker/docs/index.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-simple-marker/docs/index.js b/dist/samples/3d-simple-marker/docs/index.js index 87e850ef..3c79484f 100644 --- a/dist/samples/3d-simple-marker/docs/index.js +++ b/dist/samples/3d-simple-marker/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_simple_marker] async function init() { // Make sure the Marker3DElement is included. - const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.4239163, lng: -122.0947209, altitude: 0 }, tilt: 67.5, range: 1000, mode: 'SATELLITE', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const marker = new Marker3DElement({ position: { lat: 37.4239163, lng: -122.0947209, altitude: 50 }, // (Required) Marker must have a lat / lng, but doesn't need an altitude. - altitudeMode: "ABSOLUTE", // (Optional) Treated as CLAMP_TO_GROUND if omitted. + altitudeMode: 'ABSOLUTE', // (Optional) Treated as CLAMP_TO_GROUND if omitted. extruded: true, // (Optional) Draws line from ground to the bottom of the marker. - label: "Basic Marker" // (Optional) Add a label to the marker. + label: 'Basic Marker', // (Optional) Add a label to the marker. }); map.append(marker); // The marker must be appended to the map. document.body.append(map); diff --git a/dist/samples/3d-simple-marker/docs/index.ts b/dist/samples/3d-simple-marker/docs/index.ts index 954e5225..00dd07e4 100644 --- a/dist/samples/3d-simple-marker/docs/index.ts +++ b/dist/samples/3d-simple-marker/docs/index.ts @@ -1,27 +1,28 @@ /* -* @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_simple_marker] async function init() { // Make sure the Marker3DElement is included. - const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DElement } = + await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.4239163, lng: -122.0947209, altitude: 0 }, tilt: 67.5, range: 1000, mode: 'SATELLITE', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); - + const marker = new Marker3DElement({ position: { lat: 37.4239163, lng: -122.0947209, altitude: 50 }, // (Required) Marker must have a lat / lng, but doesn't need an altitude. - altitudeMode : "ABSOLUTE", // (Optional) Treated as CLAMP_TO_GROUND if omitted. - extruded : true, // (Optional) Draws line from ground to the bottom of the marker. - label : "Basic Marker" // (Optional) Add a label to the marker. + altitudeMode: 'ABSOLUTE', // (Optional) Treated as CLAMP_TO_GROUND if omitted. + extruded: true, // (Optional) Draws line from ground to the bottom of the marker. + label: 'Basic Marker', // (Optional) Add a label to the marker. }); map.append(marker); // The marker must be appended to the map. diff --git a/dist/samples/3d-simple-marker/jsfiddle/demo.html b/dist/samples/3d-simple-marker/jsfiddle/demo.html index f80f4564..9501b596 100644 --- a/dist/samples/3d-simple-marker/jsfiddle/demo.html +++ b/dist/samples/3d-simple-marker/jsfiddle/demo.html @@ -6,18 +6,18 @@ --> - - Map + + Map - - - - -
+ + + + +
- - - + diff --git a/dist/samples/3d-simple-marker/jsfiddle/demo.js b/dist/samples/3d-simple-marker/jsfiddle/demo.js index a163609d..383ec897 100644 --- a/dist/samples/3d-simple-marker/jsfiddle/demo.js +++ b/dist/samples/3d-simple-marker/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 async function init() { // Make sure the Marker3DElement is included. - const { Map3DElement, Marker3DElement } = await google.maps.importLibrary("maps3d"); + const { Map3DElement, Marker3DElement } = await google.maps.importLibrary('maps3d'); const map = new Map3DElement({ center: { lat: 37.4239163, lng: -122.0947209, altitude: 0 }, tilt: 67.5, range: 1000, mode: 'SATELLITE', - gestureHandling: "COOPERATIVE" + gestureHandling: 'COOPERATIVE', }); const marker = new Marker3DElement({ position: { lat: 37.4239163, lng: -122.0947209, altitude: 50 }, // (Required) Marker must have a lat / lng, but doesn't need an altitude. - altitudeMode: "ABSOLUTE", // (Optional) Treated as CLAMP_TO_GROUND if omitted. + altitudeMode: 'ABSOLUTE', // (Optional) Treated as CLAMP_TO_GROUND if omitted. extruded: true, // (Optional) Draws line from ground to the bottom of the marker. - label: "Basic Marker" // (Optional) Add a label to the marker. + label: 'Basic Marker', // (Optional) Add a label to the marker. }); map.append(marker); // The marker must be appended to the map. document.body.append(map); diff --git a/dist/samples/add-map/app/README.md b/dist/samples/add-map/app/README.md index 62904810..0cc7f993 100644 --- a/dist/samples/add-map/app/README.md +++ b/dist/samples/add-map/app/README.md @@ -1,7 +1,10 @@ # Google Maps JavaScript Sample -This sample is generated from @googlemaps/js-samples located at -https://github.com/googlemaps-samples/js-api-samples. +## add-map + +The add-map sample demonstrates how to add a Google Map to a web page. + +Follow these instructions to set up and run add-map sample on your local computer. ## Setup @@ -19,7 +22,7 @@ First `cd` to the folder for the sample to run, then: From `samples/`: -`$npm run build --workspace=sample-name/` +`$npm run build --workspace=add-map/` ### Build all of the examples. @@ -30,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/add-map/app/index.html b/dist/samples/add-map/app/index.html index 42dcc87a..ed796147 100644 --- a/dist/samples/add-map/app/index.html +++ b/dist/samples/add-map/app/index.html @@ -1,4 +1,4 @@ - + - - Add a Map + + Add a Map - - - - + + - - - - - - -
-

My Google Maps Demo

-
- -
- - + + + + + + +
+

My Google Maps Demo

+
+ +
+ + diff --git a/dist/samples/add-map/app/index.ts b/dist/samples/add-map/app/index.ts index 02104702..e3aa9f56 100644 --- a/dist/samples/add-map/app/index.ts +++ b/dist/samples/add-map/app/index.ts @@ -6,38 +6,40 @@ // [START maps_add_map] async function initMap(): Promise { - // [START maps_add_map_instantiate_map] - // [START maps_add_map_libraries] - // Request the needed libraries. - const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ - google.maps.importLibrary("maps") as Promise, - google.maps.importLibrary("marker") as Promise, - ]); - // [END maps_add_map_libraries] - // [START maps_add_map_innermap] - // Get the gmp-map element. - const mapElement = document.querySelector( - "gmp-map" - ) as google.maps.MapElement; + // [START maps_add_map_instantiate_map] + // [START maps_add_map_libraries] + // Request the needed libraries. + const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ + google.maps.importLibrary('maps') as Promise, + google.maps.importLibrary( + 'marker' + ) as Promise, + ]); + // [END maps_add_map_libraries] + // [START maps_add_map_innermap] + // Get the gmp-map element. + const mapElement = document.querySelector( + 'gmp-map' + ) as google.maps.MapElement; - // Get the inner map. - const innerMap = mapElement.innerMap; + // Get the inner map. + const innerMap = mapElement.innerMap; - // Set map options. - innerMap.setOptions({ - mapTypeControl: false, - }); - // [END maps_add_map_innermap] - // [END maps_add_map_instantiate_map] + // Set map options. + innerMap.setOptions({ + mapTypeControl: false, + }); + // [END maps_add_map_innermap] + // [END maps_add_map_instantiate_map] - // [START maps_add_map_instantiate_marker] - // Add a marker positioned at the map center (Uluru). - const marker = new AdvancedMarkerElement({ - map: innerMap, - position: mapElement.center, - title: "Uluru/Ayers Rock", - }); - // [END maps_add_map_instantiate_marker] + // [START maps_add_map_instantiate_marker] + // Add a marker positioned at the map center (Uluru). + const marker = new AdvancedMarkerElement({ + map: innerMap, + position: mapElement.center, + title: 'Uluru/Ayers Rock', + }); + // [END maps_add_map_instantiate_marker] } initMap(); // [END maps_add_map] diff --git a/dist/samples/add-map/app/style.css b/dist/samples/add-map/app/style.css index 1821f877..c0f37cb4 100644 --- a/dist/samples/add-map/app/style.css +++ b/dist/samples/add-map/app/style.css @@ -9,7 +9,7 @@ * that contains the map. */ gmp-map { - height: 100%; + height: 100%; } /* @@ -17,15 +17,15 @@ gmp-map { */ html, body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } /* [END maps_add_map] */ #controls h3 { - font-size: 1.5em; - background-color: white; - margin: 8px; - padding: 2px; + font-size: 1.5em; + background-color: white; + margin: 8px; + padding: 2px; } diff --git a/dist/samples/add-map/dist/assets/index-BJeCMP20.css b/dist/samples/add-map/dist/assets/index-BJeCMP20.css deleted file mode 100644 index 45148522..00000000 --- a/dist/samples/add-map/dist/assets/index-BJeCMP20.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */gmp-map{height:100%}html,body{height:100%;margin:0;padding:0}#controls h3{font-size:1.5em;background-color:#fff;margin:8px;padding:2px} diff --git a/dist/samples/add-map/dist/assets/index-RaMcGHQe.js b/dist/samples/add-map/dist/assets/index-ChJRVLSO.js similarity index 63% rename from dist/samples/add-map/dist/assets/index-RaMcGHQe.js rename to dist/samples/add-map/dist/assets/index-ChJRVLSO.js index 82f4aeb8..641d4f02 100644 --- a/dist/samples/add-map/dist/assets/index-RaMcGHQe.js +++ b/dist/samples/add-map/dist/assets/index-ChJRVLSO.js @@ -1,5 +1 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();/* - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */async function c(){const[{Map:s},{AdvancedMarkerElement:t}]=await Promise.all([google.maps.importLibrary("maps"),google.maps.importLibrary("marker")]),n=document.querySelector("gmp-map"),o=n.innerMap;o.setOptions({mapTypeControl:!1}),new t({map:o,position:n.center,title:"Uluru/Ayers Rock"})}c(); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();async function c(){const[{Map:s},{AdvancedMarkerElement:t}]=await Promise.all([google.maps.importLibrary("maps"),google.maps.importLibrary("marker")]),n=document.querySelector("gmp-map"),o=n.innerMap;o.setOptions({mapTypeControl:!1}),new t({map:o,position:n.center,title:"Uluru/Ayers Rock"})}c(); diff --git a/dist/samples/add-map/dist/assets/index-Du4tBtk_.css b/dist/samples/add-map/dist/assets/index-Du4tBtk_.css new file mode 100644 index 00000000..60d2517c --- /dev/null +++ b/dist/samples/add-map/dist/assets/index-Du4tBtk_.css @@ -0,0 +1 @@ +gmp-map{height:100%}html,body{height:100%;margin:0;padding:0}#controls h3{font-size:1.5em;background-color:#fff;margin:8px;padding:2px} diff --git a/dist/samples/add-map/dist/index.html b/dist/samples/add-map/dist/index.html index 7acc1653..b9b1fe69 100644 --- a/dist/samples/add-map/dist/index.html +++ b/dist/samples/add-map/dist/index.html @@ -1,4 +1,4 @@ - + - - Add a Map + + Add a Map - - - - - - - - - - -
-

My Google Maps Demo

-
- -
- - + + + + + + + + +
+

My Google Maps Demo

+
+ +
+ + diff --git a/dist/samples/add-map/docs/index.html b/dist/samples/add-map/docs/index.html index 42dcc87a..ed796147 100644 --- a/dist/samples/add-map/docs/index.html +++ b/dist/samples/add-map/docs/index.html @@ -1,4 +1,4 @@ - + - - Add a Map + + Add a Map - - - - + + - - - - - - -
-

My Google Maps Demo

-
- -
- - + + + + + + +
+

My Google Maps Demo

+
+ +
+ + diff --git a/dist/samples/add-map/docs/index.js b/dist/samples/add-map/docs/index.js index b961bc50..ea7b668c 100644 --- a/dist/samples/add-map/docs/index.js +++ b/dist/samples/add-map/docs/index.js @@ -10,13 +10,13 @@ async function initMap() { // [START maps_add_map_libraries] // Request the needed libraries. const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ - google.maps.importLibrary("maps"), - google.maps.importLibrary("marker"), + google.maps.importLibrary('maps'), + google.maps.importLibrary('marker'), ]); // [END maps_add_map_libraries] // [START maps_add_map_innermap] // Get the gmp-map element. - const mapElement = document.querySelector("gmp-map"); + const mapElement = document.querySelector('gmp-map'); // Get the inner map. const innerMap = mapElement.innerMap; // Set map options. @@ -30,7 +30,7 @@ async function initMap() { const marker = new AdvancedMarkerElement({ map: innerMap, position: mapElement.center, - title: "Uluru/Ayers Rock", + title: 'Uluru/Ayers Rock', }); // [END maps_add_map_instantiate_marker] } diff --git a/dist/samples/add-map/docs/index.ts b/dist/samples/add-map/docs/index.ts index 02104702..e3aa9f56 100644 --- a/dist/samples/add-map/docs/index.ts +++ b/dist/samples/add-map/docs/index.ts @@ -6,38 +6,40 @@ // [START maps_add_map] async function initMap(): Promise { - // [START maps_add_map_instantiate_map] - // [START maps_add_map_libraries] - // Request the needed libraries. - const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ - google.maps.importLibrary("maps") as Promise, - google.maps.importLibrary("marker") as Promise, - ]); - // [END maps_add_map_libraries] - // [START maps_add_map_innermap] - // Get the gmp-map element. - const mapElement = document.querySelector( - "gmp-map" - ) as google.maps.MapElement; + // [START maps_add_map_instantiate_map] + // [START maps_add_map_libraries] + // Request the needed libraries. + const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ + google.maps.importLibrary('maps') as Promise, + google.maps.importLibrary( + 'marker' + ) as Promise, + ]); + // [END maps_add_map_libraries] + // [START maps_add_map_innermap] + // Get the gmp-map element. + const mapElement = document.querySelector( + 'gmp-map' + ) as google.maps.MapElement; - // Get the inner map. - const innerMap = mapElement.innerMap; + // Get the inner map. + const innerMap = mapElement.innerMap; - // Set map options. - innerMap.setOptions({ - mapTypeControl: false, - }); - // [END maps_add_map_innermap] - // [END maps_add_map_instantiate_map] + // Set map options. + innerMap.setOptions({ + mapTypeControl: false, + }); + // [END maps_add_map_innermap] + // [END maps_add_map_instantiate_map] - // [START maps_add_map_instantiate_marker] - // Add a marker positioned at the map center (Uluru). - const marker = new AdvancedMarkerElement({ - map: innerMap, - position: mapElement.center, - title: "Uluru/Ayers Rock", - }); - // [END maps_add_map_instantiate_marker] + // [START maps_add_map_instantiate_marker] + // Add a marker positioned at the map center (Uluru). + const marker = new AdvancedMarkerElement({ + map: innerMap, + position: mapElement.center, + title: 'Uluru/Ayers Rock', + }); + // [END maps_add_map_instantiate_marker] } initMap(); // [END maps_add_map] diff --git a/dist/samples/add-map/docs/style.css b/dist/samples/add-map/docs/style.css index 1821f877..c0f37cb4 100644 --- a/dist/samples/add-map/docs/style.css +++ b/dist/samples/add-map/docs/style.css @@ -9,7 +9,7 @@ * that contains the map. */ gmp-map { - height: 100%; + height: 100%; } /* @@ -17,15 +17,15 @@ gmp-map { */ html, body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } /* [END maps_add_map] */ #controls h3 { - font-size: 1.5em; - background-color: white; - margin: 8px; - padding: 2px; + font-size: 1.5em; + background-color: white; + margin: 8px; + padding: 2px; } diff --git a/dist/samples/add-map/jsfiddle/demo.css b/dist/samples/add-map/jsfiddle/demo.css index aaf8b4e5..c8ebf146 100644 --- a/dist/samples/add-map/jsfiddle/demo.css +++ b/dist/samples/add-map/jsfiddle/demo.css @@ -9,7 +9,7 @@ * that contains the map. */ gmp-map { - height: 100%; + height: 100%; } /* @@ -17,15 +17,15 @@ gmp-map { */ html, body { - height: 100%; - margin: 0; - padding: 0; + height: 100%; + margin: 0; + padding: 0; } #controls h3 { - font-size: 1.5em; - background-color: white; - margin: 8px; - padding: 2px; + font-size: 1.5em; + background-color: white; + margin: 8px; + padding: 2px; } diff --git a/dist/samples/add-map/jsfiddle/demo.html b/dist/samples/add-map/jsfiddle/demo.html index b6f64e47..b7f1eaec 100644 --- a/dist/samples/add-map/jsfiddle/demo.html +++ b/dist/samples/add-map/jsfiddle/demo.html @@ -1,4 +1,4 @@ - + - - Add a Map + + Add a Map - - - - + + - - - - - - -
-

My Google Maps Demo

-
- -
- - + + + + + + +
+

My Google Maps Demo

+
+ +
+ + diff --git a/dist/samples/add-map/jsfiddle/demo.js b/dist/samples/add-map/jsfiddle/demo.js index b653c399..19f61643 100644 --- a/dist/samples/add-map/jsfiddle/demo.js +++ b/dist/samples/add-map/jsfiddle/demo.js @@ -10,13 +10,13 @@ async function initMap() { // Request the needed libraries. const [{ Map }, { AdvancedMarkerElement }] = await Promise.all([ - google.maps.importLibrary("maps"), - google.maps.importLibrary("marker"), + google.maps.importLibrary('maps'), + google.maps.importLibrary('marker'), ]); // Get the gmp-map element. - const mapElement = document.querySelector("gmp-map"); + const mapElement = document.querySelector('gmp-map'); // Get the inner map. const innerMap = mapElement.innerMap; // Set map options. @@ -30,7 +30,7 @@ async function initMap() { const marker = new AdvancedMarkerElement({ map: innerMap, position: mapElement.center, - title: "Uluru/Ayers Rock", + title: 'Uluru/Ayers Rock', }); } diff --git a/dist/samples/address-validation/app/README.md b/dist/samples/address-validation/app/README.md index be15c0d7..1f919487 100644 --- a/dist/samples/address-validation/app/README.md +++ b/dist/samples/address-validation/app/README.md @@ -1,7 +1,10 @@ # Google Maps JavaScript Sample -This sample is generated from @googlemaps/js-samples located at -https://github.com/googlemaps-samples/js-api-samples. +## address-validation + +The address-validation sample demonstrates how to use the Address Validation API. + +Follow these instructions to set up and run address-validation sample on your local computer. ## Setup @@ -19,7 +22,7 @@ First `cd` to the folder for the sample to run, then: From `samples/`: -`$npm run build --workspace=sample-name/` +`$npm run build --workspace=address-validation/` ### Build all of the examples. diff --git a/dist/samples/address-validation/app/index.html b/dist/samples/address-validation/app/index.html index 366386db..53f29c98 100644 --- a/dist/samples/address-validation/app/index.html +++ b/dist/samples/address-validation/app/index.html @@ -4,132 +4,177 @@ Copyright 2025 Google LLC. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 --> - + - - Address Validation + + Address Validation - - - - - -