diff --git a/dist/assets/windmill.glb b/dist/assets/windmill.glb new file mode 100644 index 00000000..00ab5537 Binary files /dev/null and b/dist/assets/windmill.glb differ diff --git a/dist/samples/3d-marker-graphics/app/index.ts b/dist/samples/3d-marker-graphics/app/index.ts index f4a5d61a..189857f6 100644 --- a/dist/samples/3d-marker-graphics/app/index.ts +++ b/dist/samples/3d-marker-graphics/app/index.ts @@ -20,7 +20,7 @@ async function init() { // A marker with a with a URL pointing to a PNG. const beachFlagImg = document.createElement('img'); - beachFlagImg.src = 'https://maps-docs-team.web.app/assets/beachflag.png'; + beachFlagImg.src = new URL('images/beachflag.png', import.meta.url); const beachFlagMarker = new Marker3DElement({ position: { lat: 37.434, lng: -122.082 }, diff --git a/dist/samples/3d-marker-graphics/dist/assets/index-2oh7tHSc.js b/dist/samples/3d-marker-graphics/dist/assets/index-2oh7tHSc.js new file mode 100644 index 00000000..93fc978c --- /dev/null +++ b/dist/samples/3d-marker-graphics/dist/assets/index-2oh7tHSc.js @@ -0,0 +1,5 @@ +(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const r of t.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();/* +* @license +* Copyright 2025 Google LLC. All Rights Reserved. +* SPDX-License-Identifier: Apache-2.0 +*/async function f(){const{Map3DElement:s,Marker3DElement:o}=await google.maps.importLibrary("maps3d"),{PinElement:n}=await google.maps.importLibrary("marker"),{Place:i}=await google.maps.importLibrary("places"),e=new s({center:{lat:37.426,lng:-122.082,altitude:18},tilt:67.5,range:4e3,mode:"SATELLITE"}),t=document.createElement("img");t.src=new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAACcUlEQVR4AazUA6wsZwCA0TNYXte2bdu2bdu2bdtW1I1TK6jbZ1vX3r+aoH7YL9kdn/EkSFGHZjQgRYQYSfZLUUIjWrJfI8pI/KXdDz744CNbW1u/+PDDD+/FulgBS2OpI444Yo0vv/zy+MmTJz/R1dX1ccgaGBhonTBhwjuvvvrq0VgKTchFCFdffbVrTm0244tE3RaHtvfEuZ/iOK6madqYmzF+1eqY75k4RDJtpGpXu66pU3X++ouWW0/Dzkf5pju5Z/PNN38ck1IAg7NUh99q+APXNjRttP2GabGoOvYHubo6+V9/uXJZUlcHADo+r+iaMNaSFz6+CyrojQFggW2pW4Hu7z/T89OXZrf+/v4c5kdd7C8tcRxx0RwVQoiQQ/o3MCmx+ClzjiJC9DcQCoux8PFEc476RxDyizL/0USFGoGQW4SW04gXqhEIcZH6o0hWqxEIkN+ReLsaghCtkqG1AiFZleKuNQShsCYNO9cQhIZNqVuthiAsfDBJ6R/AIUOGjNW8D/ml/WPxsiS7E51FeiNN7zP/o5JFj7PwbiCgmv0EvHvVVVc9M3PmzOmh+9sQZj4RQuuzIfR8FcJgWxj2a88999xb559//h04AcfutNNO51cqlbfDwMzw6wf4U+yP1SDgDZyGE3beeefzLr/88ut/+x1//PGX4VgcjYOwIzbBBtgQW2IP7JXNXyxCwKt4D1PRhgEAQBW9aEcXBhEhj3rE6EBrCgjoxhRMQi8CAEKG9mdYFRFitCHCAAYiBLyMVzAE4zI8+HvhH+ZHyBwhBeBvdyuYvUL2A7EaN9fgL6OPgaMG/qemgX9huYBSgwHnr9+YKVsfRAAAAABJRU5ErkJggg==",import.meta.url);const r=new o({position:{lat:37.434,lng:-122.082}}),c=document.createElement("template");c.content.append(t),r.append(c),e.append(r);const g="https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg",u=new n({background:"white",glyph:new URL(g)}),p=new o({position:{lat:37.425,lng:-122.07,altitude:100},extruded:!0,altitudeMode:"ABSOLUTE"});p.append(u);try{e.append(p)}catch(k){console.error(k)}const a=new i({id:"ChIJN5Nz71W3j4ARhx5bwpTQEGg"});await a.fetchFields({fields:["location","displayName","svgIconMaskURI","iconBackgroundColor"]});const m=new n({background:a.iconBackgroundColor,glyph:new URL(String(a.svgIconMaskURI))}),d=new o({position:a.location});d.append(m),e.append(d);const w=new DOMParser().parseFromString('',"image/svg+xml").documentElement,l=new o({position:{lat:37.425,lng:-122.094}}),h=document.createElement("template");h.content.append(w),l.append(h),e.append(l),document.body.append(e)}f(); diff --git a/dist/samples/3d-marker-graphics/dist/assets/index-Dgt8SIfA.js b/dist/samples/3d-marker-graphics/dist/assets/index-Dgt8SIfA.js deleted file mode 100644 index d3ebad04..00000000 --- a/dist/samples/3d-marker-graphics/dist/assets/index-Dgt8SIfA.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function r(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=r(e);fetch(e.href,t)}})();/* -* @license -* Copyright 2025 Google LLC. All Rights Reserved. -* SPDX-License-Identifier: Apache-2.0 -*/async function f(){const{Map3DElement:a,Marker3DElement:o}=await google.maps.importLibrary("maps3d"),{PinElement:r}=await google.maps.importLibrary("marker"),{Place:i}=await google.maps.importLibrary("places"),e=new a({center:{lat:37.426,lng:-122.082,altitude:18},tilt:67.5,range:4e3,mode:"SATELLITE"}),t=document.createElement("img");t.src="https://maps-docs-team.web.app/assets/beachflag.png";const n=new o({position:{lat:37.434,lng:-122.082}}),p=document.createElement("template");p.content.append(t),n.append(p),e.append(n);const g="https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg",u=new r({background:"white",glyph:new URL(g)}),l=new o({position:{lat:37.425,lng:-122.07,altitude:100},extruded:!0,altitudeMode:"ABSOLUTE"});l.append(u);try{e.append(l)}catch(k){console.error(k)}const s=new i({id:"ChIJN5Nz71W3j4ARhx5bwpTQEGg"});await s.fetchFields({fields:["location","displayName","svgIconMaskURI","iconBackgroundColor"]});const m=new r({background:s.iconBackgroundColor,glyph:new URL(String(s.svgIconMaskURI))}),c=new o({position:s.location});c.append(m),e.append(c);const w=new DOMParser().parseFromString('',"image/svg+xml").documentElement,d=new o({position:{lat:37.425,lng:-122.094}}),h=document.createElement("template");h.content.append(w),d.append(h),e.append(d),document.body.append(e)}f(); diff --git a/dist/samples/3d-marker-graphics/dist/index.html b/dist/samples/3d-marker-graphics/dist/index.html index 09120408..d3bdba18 100644 --- a/dist/samples/3d-marker-graphics/dist/index.html +++ b/dist/samples/3d-marker-graphics/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-marker-graphics/docs/index.js b/dist/samples/3d-marker-graphics/docs/index.js index 8009c205..550f5af0 100644 --- a/dist/samples/3d-marker-graphics/docs/index.js +++ b/dist/samples/3d-marker-graphics/docs/index.js @@ -1,4 +1,3 @@ -"use strict"; /* * @license * Copyright 2025 Google LLC. All Rights Reserved. @@ -18,7 +17,7 @@ async function init() { }); // A marker with a with a URL pointing to a PNG. const beachFlagImg = document.createElement('img'); - beachFlagImg.src = 'https://maps-docs-team.web.app/assets/beachflag.png'; + beachFlagImg.src = new URL('images/beachflag.png', import.meta.url); const beachFlagMarker = new Marker3DElement({ position: { lat: 37.434, lng: -122.082 }, }); @@ -75,4 +74,5 @@ async function init() { document.body.append(map); } init(); +export {}; // [END maps_3d_marker_graphics] diff --git a/dist/samples/3d-marker-graphics/docs/index.ts b/dist/samples/3d-marker-graphics/docs/index.ts index f4a5d61a..189857f6 100644 --- a/dist/samples/3d-marker-graphics/docs/index.ts +++ b/dist/samples/3d-marker-graphics/docs/index.ts @@ -20,7 +20,7 @@ async function init() { // A marker with a with a URL pointing to a PNG. const beachFlagImg = document.createElement('img'); - beachFlagImg.src = 'https://maps-docs-team.web.app/assets/beachflag.png'; + beachFlagImg.src = new URL('images/beachflag.png', import.meta.url); const beachFlagMarker = new Marker3DElement({ position: { lat: 37.434, lng: -122.082 }, diff --git a/dist/samples/3d-marker-graphics/jsfiddle/demo.js b/dist/samples/3d-marker-graphics/jsfiddle/demo.js index 10106a45..646c4541 100644 --- a/dist/samples/3d-marker-graphics/jsfiddle/demo.js +++ b/dist/samples/3d-marker-graphics/jsfiddle/demo.js @@ -1,4 +1,3 @@ -"use strict"; /* * @license * Copyright 2025 Google LLC. All Rights Reserved. @@ -18,7 +17,7 @@ async function init() { }); // A marker with a with a URL pointing to a PNG. const beachFlagImg = document.createElement('img'); - beachFlagImg.src = 'https://maps-docs-team.web.app/assets/beachflag.png'; + beachFlagImg.src = new URL('images/beachflag.png', import.meta.url); const beachFlagMarker = new Marker3DElement({ position: { lat: 37.434, lng: -122.082 }, }); @@ -75,4 +74,5 @@ async function init() { document.body.append(map); } init(); +export {};