+
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
new file mode 100644
index 00000000..81fad67f
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/app/index.ts
@@ -0,0 +1,84 @@
+/*
+* @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 map = new Map3DElement({
+ center: { lat: 37.4690, lng: -122.1074, altitude: 0 },
+ tilt: 67.5,
+ range: 45000,
+ mode: 'HYBRID'
+ });
+
+ map.mode = "SATELLITE";
+
+ for (const position of positions) {
+ const popover = new PopoverElement({
+ open: true,
+ });
+
+ popover.append(position.name);
+
+ const interactiveMarker = new Marker3DInteractiveElement({
+ position,
+ gmpPopoverTargetElement: popover
+ });
+
+ map.append(interactiveMarker);
+ map.append(popover);
+ }
+
+ 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",
+}];
+
+init();
+// [END maps_3d_marker_interactive]
diff --git a/dist/samples/3d-marker-interactive/app/package.json b/dist/samples/3d-marker-interactive/app/package.json
new file mode 100644
index 00000000..d70799ff
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/app/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "@js-api-samples/3d-marker-interactive",
+ "version": "1.0.0",
+ "scripts": {
+ "build": "tsc && bash ../jsfiddle.sh 3d-marker-interactive && bash ../app.sh 3d-marker-interactive && bash ../docs.sh 3d-marker-interactive && npm run build:vite --workspace=. && bash ../dist.sh 3d-marker-interactive",
+ "test": "tsc && npm run build:vite --workspace=.",
+ "start": "tsc && vite build --base './' && vite",
+ "build:vite": "vite build --base './'",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+
+ }
+}
diff --git a/dist/samples/3d-marker-interactive/app/style.css b/dist/samples/3d-marker-interactive/app/style.css
new file mode 100644
index 00000000..ef9f6866
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/app/style.css
@@ -0,0 +1,40 @@
+/*
+* @license
+* Copyright 2025 Google LLC. All Rights Reserved.
+* SPDX-License-Identifier: Apache-2.0
+*/
+/* [START maps_3d_marker_interactive] */
+/* * Always set the map height explicitly to define the size of the div element
+ * that contains the map.
+ */
+html,
+map {
+ height: 100%;
+}
+body {
+ 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;
+ overflow: hidden;
+ position: absolute;
+ left: 50%;
+ bottom: 5px;
+ transform: translateX(-50%);
+ border: 1px solid white;
+ border-radius: 2px;
+ padding: 5px;
+ z-index: 1000;
+}
+
+.text {
+ color: white;
+ font-size: 1em;
+ text-align: center;
+}
+/* [END maps_3d_marker_interactive] */
diff --git a/dist/samples/3d-marker-interactive/app/tsconfig.json b/dist/samples/3d-marker-interactive/app/tsconfig.json
new file mode 100644
index 00000000..366aabb0
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/app/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "compilerOptions": {
+ "module": "esnext",
+ "target": "esnext",
+ "strict": true,
+ "noImplicitAny": false,
+ "lib": [
+ "es2015",
+ "esnext",
+ "es6",
+ "dom",
+ "dom.iterable"
+ ],
+ "moduleResolution": "Node",
+ "jsx": "preserve"
+ }
+}
diff --git a/dist/samples/3d-marker-interactive/dist/assets/index-BgUP5zBW.js b/dist/samples/3d-marker-interactive/dist/assets/index-BgUP5zBW.js
new file mode 100644
index 00000000..6f3f8adf
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/dist/assets/index-BgUP5zBW.js
@@ -0,0 +1,5 @@
+(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&t(r)}).observe(document,{childList:!0,subtree:!0});function l(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerPolicy&&(o.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?o.credentials="include":e.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function t(e){if(e.ep)return;e.ep=!0;const o=l(e);fetch(e.href,o)}})();/*
+* @license
+* Copyright 2025 Google LLC. All Rights Reserved.
+* SPDX-License-Identifier: Apache-2.0
+*/async function i(){const{Map3DElement:a,Marker3DInteractiveElement:n,PopoverElement:l}=await google.maps.importLibrary("maps3d"),t=new a({center:{lat:37.469,lng:-122.1074,altitude:0},tilt:67.5,range:45e3,mode:"HYBRID"});t.mode="SATELLITE";for(const e of s){const o=new l({open:!0});o.append(e.name);const r=new n({position:e,gmpPopoverTargetElement:o});t.append(r),t.append(o)}document.body.append(t)}const s=[{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"}];i();
diff --git a/dist/samples/3d-marker-interactive/dist/assets/index-l3uqddrY.css b/dist/samples/3d-marker-interactive/dist/assets/index-l3uqddrY.css
new file mode 100644
index 00000000..e6150e5b
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/dist/assets/index-l3uqddrY.css
@@ -0,0 +1,5 @@
+/*
+* @license
+* Copyright 2025 Google LLC. All Rights Reserved.
+* SPDX-License-Identifier: Apache-2.0
+*/html,map{height:100%}body{height:100%;margin:0;padding:0}.textContainer{background-color:#4d90fe;box-shadow:0 1px 4px -1px #0000004d;margin:10px;font:400 18px Roboto,Arial,sans-serif;overflow:hidden;position:absolute;left:50%;bottom:5px;transform:translate(-50%);border:1px solid white;border-radius:2px;padding:5px;z-index:1000}.text{color:#fff;font-size:1em;text-align:center}
diff --git a/dist/samples/3d-marker-interactive/dist/index.html b/dist/samples/3d-marker-interactive/dist/index.html
new file mode 100644
index 00000000..bad9408d
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/dist/index.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
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
new file mode 100644
index 00000000..22ced725
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/docs/index.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
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
new file mode 100644
index 00000000..5edb8b47
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/docs/index.js
@@ -0,0 +1,75 @@
+"use strict";
+/*
+* @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 map = new Map3DElement({
+ center: { lat: 37.4690, lng: -122.1074, altitude: 0 },
+ tilt: 67.5,
+ range: 45000,
+ mode: 'HYBRID'
+ });
+ map.mode = "SATELLITE";
+ for (const position of positions) {
+ const popover = new PopoverElement({
+ open: true,
+ });
+ popover.append(position.name);
+ const interactiveMarker = new Marker3DInteractiveElement({
+ position,
+ gmpPopoverTargetElement: popover
+ });
+ map.append(interactiveMarker);
+ map.append(popover);
+ }
+ 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",
+ }];
+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
new file mode 100644
index 00000000..81fad67f
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/docs/index.ts
@@ -0,0 +1,84 @@
+/*
+* @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 map = new Map3DElement({
+ center: { lat: 37.4690, lng: -122.1074, altitude: 0 },
+ tilt: 67.5,
+ range: 45000,
+ mode: 'HYBRID'
+ });
+
+ map.mode = "SATELLITE";
+
+ for (const position of positions) {
+ const popover = new PopoverElement({
+ open: true,
+ });
+
+ popover.append(position.name);
+
+ const interactiveMarker = new Marker3DInteractiveElement({
+ position,
+ gmpPopoverTargetElement: popover
+ });
+
+ map.append(interactiveMarker);
+ map.append(popover);
+ }
+
+ 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",
+}];
+
+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
new file mode 100644
index 00000000..ef9f6866
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/docs/style.css
@@ -0,0 +1,40 @@
+/*
+* @license
+* Copyright 2025 Google LLC. All Rights Reserved.
+* SPDX-License-Identifier: Apache-2.0
+*/
+/* [START maps_3d_marker_interactive] */
+/* * Always set the map height explicitly to define the size of the div element
+ * that contains the map.
+ */
+html,
+map {
+ height: 100%;
+}
+body {
+ 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;
+ overflow: hidden;
+ position: absolute;
+ left: 50%;
+ bottom: 5px;
+ transform: translateX(-50%);
+ border: 1px solid white;
+ border-radius: 2px;
+ padding: 5px;
+ z-index: 1000;
+}
+
+.text {
+ color: white;
+ font-size: 1em;
+ text-align: center;
+}
+/* [END maps_3d_marker_interactive] */
diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.css b/dist/samples/3d-marker-interactive/jsfiddle/demo.css
new file mode 100644
index 00000000..0d18e728
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.css
@@ -0,0 +1,40 @@
+/*
+* @license
+* Copyright 2025 Google LLC. All Rights Reserved.
+* SPDX-License-Identifier: Apache-2.0
+*/
+
+/* * Always set the map height explicitly to define the size of the div element
+ * that contains the map.
+ */
+html,
+map {
+ height: 100%;
+}
+body {
+ 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;
+ overflow: hidden;
+ position: absolute;
+ left: 50%;
+ bottom: 5px;
+ transform: translateX(-50%);
+ border: 1px solid white;
+ border-radius: 2px;
+ padding: 5px;
+ z-index: 1000;
+}
+
+.text {
+ color: white;
+ font-size: 1em;
+ text-align: center;
+}
+
diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.details b/dist/samples/3d-marker-interactive/jsfiddle/demo.details
new file mode 100644
index 00000000..72c44609
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.details
@@ -0,0 +1,7 @@
+name: 3d-marker-interactive
+authors:
+ - Geo Developer IX Documentation Team
+tags:
+ - google maps
+load_type: h
+description: Sample code supporting Google Maps Platform JavaScript API documentation.
diff --git a/dist/samples/3d-marker-interactive/jsfiddle/demo.html b/dist/samples/3d-marker-interactive/jsfiddle/demo.html
new file mode 100644
index 00000000..2a7996c5
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
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
new file mode 100644
index 00000000..fafa9a81
--- /dev/null
+++ b/dist/samples/3d-marker-interactive/jsfiddle/demo.js
@@ -0,0 +1,75 @@
+"use strict";
+/*
+* @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 map = new Map3DElement({
+ center: { lat: 37.4690, lng: -122.1074, altitude: 0 },
+ tilt: 67.5,
+ range: 45000,
+ mode: 'HYBRID'
+ });
+ map.mode = "SATELLITE";
+ for (const position of positions) {
+ const popover = new PopoverElement({
+ open: true,
+ });
+ popover.append(position.name);
+ const interactiveMarker = new Marker3DInteractiveElement({
+ position,
+ gmpPopoverTargetElement: popover
+ });
+ map.append(interactiveMarker);
+ map.append(popover);
+ }
+ 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",
+ }];
+init();
+
diff --git a/dist/samples/3d-places-autocomplete/app/.eslintsrc.json b/dist/samples/3d-places-autocomplete/app/.eslintsrc.json
new file mode 100644
index 00000000..4c44dab0
--- /dev/null
+++ b/dist/samples/3d-places-autocomplete/app/.eslintsrc.json
@@ -0,0 +1,13 @@
+{
+ "extends": [
+ "plugin:@typescript-eslint/recommended"
+ ],
+ "parser": "@typescript-eslint/parser",
+ "rules": {
+ "@typescript-eslint/ban-ts-comment": 0,
+ "@typescript-eslint/no-this-alias": 1,
+ "@typescript-eslint/no-empty-function": 1,
+ "@typescript-eslint/explicit-module-boundary-types": 1,
+ "@typescript-eslint/no-unused-vars": 1
+ }
+}
diff --git a/dist/samples/3d-places-autocomplete/app/index.html b/dist/samples/3d-places-autocomplete/app/index.html
new file mode 100644
index 00000000..98b9d9e8
--- /dev/null
+++ b/dist/samples/3d-places-autocomplete/app/index.html
@@ -0,0 +1,29 @@
+
+
+
+
+
+