diff --git a/dist/samples/3d-polygon-click-event/app/index.ts b/dist/samples/3d-polygon-click-event/app/index.ts index 3fa1b14e..849bed12 100644 --- a/dist/samples/3d-polygon-click-event/app/index.ts +++ b/dist/samples/3d-polygon-click-event/app/index.ts @@ -27,7 +27,7 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, diff --git a/dist/samples/3d-polygon-click-event/dist/assets/index-CTsx_RUx.js b/dist/samples/3d-polygon-click-event/dist/assets/index-BeEXTpj6.js similarity index 66% rename from dist/samples/3d-polygon-click-event/dist/assets/index-CTsx_RUx.js rename to dist/samples/3d-polygon-click-event/dist/assets/index-BeEXTpj6.js index f71f0ef1..0969f2b3 100644 --- a/dist/samples/3d-polygon-click-event/dist/assets/index-CTsx_RUx.js +++ b/dist/samples/3d-polygon-click-event/dist/assets/index-BeEXTpj6.js @@ -2,4 +2,4 @@ * @license * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 -*/async function a(){const{Map3DElement:l,MapMode:r,Polygon3DInteractiveElement:s}=await google.maps.importLibrary("maps3d"),n=new l({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:r.HYBRID});document.body.append(n);const e={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1},t=new google.maps.maps3d.Polygon3DInteractiveElement(e);t.outerCoordinates=[{lat:40.7144,lng:-74.0208},{lat:40.6993,lng:-74.019},{lat:40.7035,lng:-74.0004},{lat:40.7144,lng:-74.0208}],t.addEventListener("gmp-click",o=>{o.target.fillColor=i(o.target.fillColor),o.target.strokeColor=i(o.target.fillColor),console.log(o)}),n.append(t)}function i(l){console.log(l);let r="";r=l.substring(7);const s=Math.floor(Math.random()*256),n=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256);console.log(s+" "+n+" "+e);const t=("0"+s.toString(16)).slice(-2),o=("0"+n.toString(16)).slice(-2),c=("0"+e.toString(16)).slice(-2);return`#${t}${o}${c}${r}`}a(); +*/async function a(){const{Map3DElement:l,MapMode:r,Polygon3DInteractiveElement:s}=await google.maps.importLibrary("maps3d"),n=new l({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:r.HYBRID});document.body.append(n);const e={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1},t=new google.maps.maps3d.Polygon3DInteractiveElement(e);t.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}],t.addEventListener("gmp-click",o=>{o.target.fillColor=i(o.target.fillColor),o.target.strokeColor=i(o.target.fillColor),console.log(o)}),n.append(t)}function i(l){console.log(l);let r="";r=l.substring(7);const s=Math.floor(Math.random()*256),n=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256);console.log(s+" "+n+" "+e);const t=("0"+s.toString(16)).slice(-2),o=("0"+n.toString(16)).slice(-2),c=("0"+e.toString(16)).slice(-2);return`#${t}${o}${c}${r}`}a(); diff --git a/dist/samples/3d-polygon-click-event/dist/index.html b/dist/samples/3d-polygon-click-event/dist/index.html index 13cbf2c6..2e264357 100644 --- a/dist/samples/3d-polygon-click-event/dist/index.html +++ b/dist/samples/3d-polygon-click-event/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-polygon-click-event/docs/index.js b/dist/samples/3d-polygon-click-event/docs/index.js index fd7fae17..9b8f0040 100644 --- a/dist/samples/3d-polygon-click-event/docs/index.js +++ b/dist/samples/3d-polygon-click-event/docs/index.js @@ -22,7 +22,7 @@ async function init() { drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, diff --git a/dist/samples/3d-polygon-click-event/docs/index.ts b/dist/samples/3d-polygon-click-event/docs/index.ts index 3fa1b14e..849bed12 100644 --- a/dist/samples/3d-polygon-click-event/docs/index.ts +++ b/dist/samples/3d-polygon-click-event/docs/index.ts @@ -27,7 +27,7 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, diff --git a/dist/samples/3d-polygon-click-event/jsfiddle/demo.js b/dist/samples/3d-polygon-click-event/jsfiddle/demo.js index 59c6537b..9ae26aee 100644 --- a/dist/samples/3d-polygon-click-event/jsfiddle/demo.js +++ b/dist/samples/3d-polygon-click-event/jsfiddle/demo.js @@ -22,7 +22,7 @@ async function init() { drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DInteractiveElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 }, diff --git a/dist/samples/3d-polygon-extruded-hole/app/index.ts b/dist/samples/3d-polygon-extruded-hole/app/index.ts index 1a11de44..53c1c6bf 100644 --- a/dist/samples/3d-polygon-extruded-hole/app/index.ts +++ b/dist/samples/3d-polygon-extruded-hole/app/index.ts @@ -27,13 +27,13 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + 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 } ]; - examplePolygon.innerCoordinates = [ + examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, diff --git a/dist/samples/3d-polygon-extruded-hole/dist/assets/index-ChgjZwvp.js b/dist/samples/3d-polygon-extruded-hole/dist/assets/index-QiQg49sx.js similarity index 78% rename from dist/samples/3d-polygon-extruded-hole/dist/assets/index-ChgjZwvp.js rename to dist/samples/3d-polygon-extruded-hole/dist/assets/index-QiQg49sx.js index cf4aac58..49e5a25b 100644 --- a/dist/samples/3d-polygon-extruded-hole/dist/assets/index-ChgjZwvp.js +++ b/dist/samples/3d-polygon-extruded-hole/dist/assets/index-QiQg49sx.js @@ -2,4 +2,4 @@ * @license * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 -*/async function s(){const{Map3DElement:i,MapMode:r,AltitudeMode:n,Polygon3DElement:l}=await google.maps.importLibrary("maps3d"),e=new i({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:r.HYBRID}),t={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1,extruded:!0,altitudeMode:n.RELATIVE_TO_GROUND},o=new google.maps.maps3d.Polygon3DElement(t);o.outerCoordinates=[{lat:40.7144,lng:-74.0208,altitude:200},{lat:40.6993,lng:-74.019,altitude:200},{lat:40.7035,lng:-74.0004,altitude:200}],o.innerCoordinates=[[{lat:40.71,lng:-74.0175,altitude:200},{lat:40.703,lng:-74.0165,altitude:200},{lat:40.7035,lng:-74.006,altitude:200}]],e.append(o),document.body.append(e)}s(); +*/async function s(){const{Map3DElement:i,MapMode:r,AltitudeMode:n,Polygon3DElement:l}=await google.maps.importLibrary("maps3d"),e=new i({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:r.HYBRID}),t={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1,extruded:!0,altitudeMode:n.RELATIVE_TO_GROUND},o=new google.maps.maps3d.Polygon3DElement(t);o.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}],o.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}]],e.append(o),document.body.append(e)}s(); diff --git a/dist/samples/3d-polygon-extruded-hole/dist/index.html b/dist/samples/3d-polygon-extruded-hole/dist/index.html index fff37462..3e63a0d6 100644 --- a/dist/samples/3d-polygon-extruded-hole/dist/index.html +++ b/dist/samples/3d-polygon-extruded-hole/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-polygon-extruded-hole/docs/index.js b/dist/samples/3d-polygon-extruded-hole/docs/index.js index ea610fce..dbfac770 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/index.js +++ b/dist/samples/3d-polygon-extruded-hole/docs/index.js @@ -23,12 +23,12 @@ async function init() { altitudeMode: AltitudeMode.RELATIVE_TO_GROUND }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + 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 } ]; - examplePolygon.innerCoordinates = [ + examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, diff --git a/dist/samples/3d-polygon-extruded-hole/docs/index.ts b/dist/samples/3d-polygon-extruded-hole/docs/index.ts index 1a11de44..53c1c6bf 100644 --- a/dist/samples/3d-polygon-extruded-hole/docs/index.ts +++ b/dist/samples/3d-polygon-extruded-hole/docs/index.ts @@ -27,13 +27,13 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + 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 } ]; - examplePolygon.innerCoordinates = [ + examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, diff --git a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js index d129e1cc..47e545c9 100644 --- a/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js +++ b/dist/samples/3d-polygon-extruded-hole/jsfiddle/demo.js @@ -23,12 +23,12 @@ async function init() { altitudeMode: AltitudeMode.RELATIVE_TO_GROUND }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + 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 } ]; - examplePolygon.innerCoordinates = [ + examplePolygon.innerPaths = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, diff --git a/dist/samples/3d-polygon/app/index.ts b/dist/samples/3d-polygon/app/index.ts index 1c1beb2e..ef63c38d 100644 --- a/dist/samples/3d-polygon/app/index.ts +++ b/dist/samples/3d-polygon/app/index.ts @@ -25,7 +25,7 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 } diff --git a/dist/samples/3d-polygon/dist/assets/index-BCjXzGKQ.js b/dist/samples/3d-polygon/dist/assets/index-DbIOarS-.js similarity index 87% rename from dist/samples/3d-polygon/dist/assets/index-BCjXzGKQ.js rename to dist/samples/3d-polygon/dist/assets/index-DbIOarS-.js index 00d581ba..6b2d9884 100644 --- a/dist/samples/3d-polygon/dist/assets/index-BCjXzGKQ.js +++ b/dist/samples/3d-polygon/dist/assets/index-DbIOarS-.js @@ -2,4 +2,4 @@ * @license * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 -*/async function i(){const{Map3DElement:l,MapMode:o,Polygon3DElement:s}=await google.maps.importLibrary("maps3d"),r=new l({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:o.HYBRID}),e={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1},t=new google.maps.maps3d.Polygon3DElement(e);t.outerCoordinates=[{lat:40.7144,lng:-74.0208},{lat:40.6993,lng:-74.019},{lat:40.7035,lng:-74.0004}],r.append(t),document.body.append(r)}i(); +*/async function i(){const{Map3DElement:l,MapMode:o,Polygon3DElement:s}=await google.maps.importLibrary("maps3d"),r=new l({center:{lat:40.6842,lng:-74.0019,altitude:1e3},heading:340,tilt:70,mode:o.HYBRID}),e={strokeColor:"#0000ff80",strokeWidth:8,fillColor:"#ff000080",drawsOccludedSegments:!1},t=new google.maps.maps3d.Polygon3DElement(e);t.path=[{lat:40.7144,lng:-74.0208},{lat:40.6993,lng:-74.019},{lat:40.7035,lng:-74.0004}],r.append(t),document.body.append(r)}i(); diff --git a/dist/samples/3d-polygon/dist/index.html b/dist/samples/3d-polygon/dist/index.html index 594950f2..6187e221 100644 --- a/dist/samples/3d-polygon/dist/index.html +++ b/dist/samples/3d-polygon/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-polygon/docs/index.js b/dist/samples/3d-polygon/docs/index.js index b65a74fc..58421d95 100644 --- a/dist/samples/3d-polygon/docs/index.js +++ b/dist/samples/3d-polygon/docs/index.js @@ -21,7 +21,7 @@ async function init() { drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 } diff --git a/dist/samples/3d-polygon/docs/index.ts b/dist/samples/3d-polygon/docs/index.ts index 1c1beb2e..ef63c38d 100644 --- a/dist/samples/3d-polygon/docs/index.ts +++ b/dist/samples/3d-polygon/docs/index.ts @@ -25,7 +25,7 @@ async function init() { const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 } diff --git a/dist/samples/3d-polygon/jsfiddle/demo.js b/dist/samples/3d-polygon/jsfiddle/demo.js index 617eedff..445f16c3 100644 --- a/dist/samples/3d-polygon/jsfiddle/demo.js +++ b/dist/samples/3d-polygon/jsfiddle/demo.js @@ -21,7 +21,7 @@ async function init() { drawsOccludedSegments: false, }; const examplePolygon = new google.maps.maps3d.Polygon3DElement(polygonOptions); - examplePolygon.outerCoordinates = [ + examplePolygon.path = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, { lat: 40.7035, lng: -74.0004 } diff --git a/dist/samples/3d-polyline-extruded/app/index.ts b/dist/samples/3d-polyline-extruded/app/index.ts index 03dc904d..72cdd184 100644 --- a/dist/samples/3d-polyline-extruded/app/index.ts +++ b/dist/samples/3d-polyline-extruded/app/index.ts @@ -18,7 +18,7 @@ async function init() { document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164, altitude: 100 }, { lat: 37.80337073509504, lng: -122.4012878349353, altitude: 100 }, { lat: 37.79925208843463, lng: -122.3976697250461, altitude: 100 }, diff --git a/dist/samples/3d-polyline-extruded/dist/assets/index-CHaPMID6.js b/dist/samples/3d-polyline-extruded/dist/assets/index-CHaPMID6.js new file mode 100644 index 00000000..b0149d9b --- /dev/null +++ b/dist/samples/3d-polyline-extruded/dist/assets/index-CHaPMID6.js @@ -0,0 +1,5 @@ +(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).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 r(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 +*/let i;async function d(){const{Map3DElement:a,MapMode:l,AltitudeMode:n,Polyline3DElement:r}=await google.maps.importLibrary("maps3d");i=new a({center:{lat:37.7927,lng:-122.402,altitude:65.93},range:3362.87,tilt:64.01,heading:25,mode:l.SATELLITE}),document.body.append(i);const e=new r({path:[{lat:37.80515638571346,lng:-122.4032569467164,altitude:100},{lat:37.80337073509504,lng:-122.4012878349353,altitude:100},{lat:37.79925208843463,lng:-122.3976697250461,altitude:100},{lat:37.7989102378512,lng:-122.3983408725656,altitude:100},{lat:37.79887832784348,lng:-122.3987094864192,altitude:100},{lat:37.79786443410338,lng:-122.4066878788802,altitude:100},{lat:37.79549248916587,lng:-122.4032992702785,altitude:100},{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}],strokeColor:"#0000FF80",strokeWidth:10,altitudeMode:n.RELATIVE_TO_GROUND,extruded:!0});i.append(e)}d(); diff --git a/dist/samples/3d-polyline-extruded/dist/assets/index-DSWTMiWN.js b/dist/samples/3d-polyline-extruded/dist/assets/index-DSWTMiWN.js deleted file mode 100644 index a373da99..00000000 --- a/dist/samples/3d-polyline-extruded/dist/assets/index-DSWTMiWN.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(n)}).observe(document,{childList:!0,subtree:!0});function o(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 r(e){if(e.ep)return;e.ep=!0;const t=o(e);fetch(e.href,t)}})();/* -* @license -* Copyright 2025 Google LLC. All Rights Reserved. -* SPDX-License-Identifier: Apache-2.0 -*/let i;async function d(){const{Map3DElement:a,MapMode:l,AltitudeMode:o,Polyline3DElement:r}=await google.maps.importLibrary("maps3d");i=new a({center:{lat:37.7927,lng:-122.402,altitude:65.93},range:3362.87,tilt:64.01,heading:25,mode:l.SATELLITE}),document.body.append(i);const e=new r({coordinates:[{lat:37.80515638571346,lng:-122.4032569467164,altitude:100},{lat:37.80337073509504,lng:-122.4012878349353,altitude:100},{lat:37.79925208843463,lng:-122.3976697250461,altitude:100},{lat:37.7989102378512,lng:-122.3983408725656,altitude:100},{lat:37.79887832784348,lng:-122.3987094864192,altitude:100},{lat:37.79786443410338,lng:-122.4066878788802,altitude:100},{lat:37.79549248916587,lng:-122.4032992702785,altitude:100},{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}],strokeColor:"#0000FF80",strokeWidth:10,altitudeMode:o.RELATIVE_TO_GROUND,extruded:!0});i.append(e)}d(); diff --git a/dist/samples/3d-polyline-extruded/dist/index.html b/dist/samples/3d-polyline-extruded/dist/index.html index 41c56e55..da6673a4 100644 --- a/dist/samples/3d-polyline-extruded/dist/index.html +++ b/dist/samples/3d-polyline-extruded/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-polyline-extruded/docs/index.js b/dist/samples/3d-polyline-extruded/docs/index.js index 44823146..8daa1b92 100644 --- a/dist/samples/3d-polyline-extruded/docs/index.js +++ b/dist/samples/3d-polyline-extruded/docs/index.js @@ -15,7 +15,7 @@ async function init() { }); document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164, altitude: 100 }, { lat: 37.80337073509504, lng: -122.4012878349353, altitude: 100 }, { lat: 37.79925208843463, lng: -122.3976697250461, altitude: 100 }, diff --git a/dist/samples/3d-polyline-extruded/docs/index.ts b/dist/samples/3d-polyline-extruded/docs/index.ts index 03dc904d..72cdd184 100644 --- a/dist/samples/3d-polyline-extruded/docs/index.ts +++ b/dist/samples/3d-polyline-extruded/docs/index.ts @@ -18,7 +18,7 @@ async function init() { document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164, altitude: 100 }, { lat: 37.80337073509504, lng: -122.4012878349353, altitude: 100 }, { lat: 37.79925208843463, lng: -122.3976697250461, altitude: 100 }, diff --git a/dist/samples/3d-polyline-extruded/jsfiddle/demo.js b/dist/samples/3d-polyline-extruded/jsfiddle/demo.js index c09342f0..461d72c9 100644 --- a/dist/samples/3d-polyline-extruded/jsfiddle/demo.js +++ b/dist/samples/3d-polyline-extruded/jsfiddle/demo.js @@ -15,7 +15,7 @@ async function init() { }); document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164, altitude: 100 }, { lat: 37.80337073509504, lng: -122.4012878349353, altitude: 100 }, { lat: 37.79925208843463, lng: -122.3976697250461, altitude: 100 }, diff --git a/dist/samples/3d-polyline/app/index.ts b/dist/samples/3d-polyline/app/index.ts index 0e736568..af4a9e34 100644 --- a/dist/samples/3d-polyline/app/index.ts +++ b/dist/samples/3d-polyline/app/index.ts @@ -18,7 +18,7 @@ async function init() { document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164 }, { lat: 37.80337073509504, lng: -122.4012878349353 }, { lat: 37.79925208843463, lng: -122.3976697250461 }, diff --git a/dist/samples/3d-polyline/dist/assets/index-CgIh4vgg.js b/dist/samples/3d-polyline/dist/assets/index-B8TE2uSi.js similarity index 53% rename from dist/samples/3d-polyline/dist/assets/index-CgIh4vgg.js rename to dist/samples/3d-polyline/dist/assets/index-B8TE2uSi.js index 77c8d488..1a0bf317 100644 --- a/dist/samples/3d-polyline/dist/assets/index-CgIh4vgg.js +++ b/dist/samples/3d-polyline/dist/assets/index-B8TE2uSi.js @@ -2,4 +2,4 @@ * @license * Copyright 2025 Google LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 -*/let i;async function a(){const{Map3DElement:s,MapMode:r,AltitudeMode:l,Polyline3DElement:o}=await google.maps.importLibrary("maps3d");i=new s({center:{lat:37.7927,lng:-122.402,altitude:65.93},range:3362.87,tilt:64.01,heading:25,mode:r.SATELLITE}),document.body.append(i);const e=new o({coordinates:[{lat:37.80515638571346,lng:-122.4032569467164},{lat:37.80337073509504,lng:-122.4012878349353},{lat:37.79925208843463,lng:-122.3976697250461},{lat:37.7989102378512,lng:-122.3983408725656},{lat:37.79887832784348,lng:-122.3987094864192},{lat:37.79786443410338,lng:-122.4066878788802},{lat:37.79549248916587,lng:-122.4032992702785},{lat:37.78861484290265,lng:-122.4019489189814},{lat:37.78618687561075,lng:-122.398969592545},{lat:37.7892310309145,lng:-122.3951458683092},{lat:37.7916358762409,lng:-122.3981969390652}],strokeColor:"blue",outerColor:"white",strokeWidth:10,outerWidth:.4,altitudeMode:l.RELATIVE_TO_GROUND,drawsOccludedSegments:!0});i.append(e)}a(); +*/let i;async function s(){const{Map3DElement:a,MapMode:r,AltitudeMode:l,Polyline3DElement:o}=await google.maps.importLibrary("maps3d");i=new a({center:{lat:37.7927,lng:-122.402,altitude:65.93},range:3362.87,tilt:64.01,heading:25,mode:r.SATELLITE}),document.body.append(i);const e=new o({path:[{lat:37.80515638571346,lng:-122.4032569467164},{lat:37.80337073509504,lng:-122.4012878349353},{lat:37.79925208843463,lng:-122.3976697250461},{lat:37.7989102378512,lng:-122.3983408725656},{lat:37.79887832784348,lng:-122.3987094864192},{lat:37.79786443410338,lng:-122.4066878788802},{lat:37.79549248916587,lng:-122.4032992702785},{lat:37.78861484290265,lng:-122.4019489189814},{lat:37.78618687561075,lng:-122.398969592545},{lat:37.7892310309145,lng:-122.3951458683092},{lat:37.7916358762409,lng:-122.3981969390652}],strokeColor:"blue",outerColor:"white",strokeWidth:10,outerWidth:.4,altitudeMode:l.RELATIVE_TO_GROUND,drawsOccludedSegments:!0});i.append(e)}s(); diff --git a/dist/samples/3d-polyline/dist/index.html b/dist/samples/3d-polyline/dist/index.html index d91fd371..5ef431d6 100644 --- a/dist/samples/3d-polyline/dist/index.html +++ b/dist/samples/3d-polyline/dist/index.html @@ -9,7 +9,7 @@ Map - + diff --git a/dist/samples/3d-polyline/docs/index.js b/dist/samples/3d-polyline/docs/index.js index 6c490bb0..5bd582fc 100644 --- a/dist/samples/3d-polyline/docs/index.js +++ b/dist/samples/3d-polyline/docs/index.js @@ -15,7 +15,7 @@ async function init() { }); document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164 }, { lat: 37.80337073509504, lng: -122.4012878349353 }, { lat: 37.79925208843463, lng: -122.3976697250461 }, diff --git a/dist/samples/3d-polyline/docs/index.ts b/dist/samples/3d-polyline/docs/index.ts index 0e736568..af4a9e34 100644 --- a/dist/samples/3d-polyline/docs/index.ts +++ b/dist/samples/3d-polyline/docs/index.ts @@ -18,7 +18,7 @@ async function init() { document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164 }, { lat: 37.80337073509504, lng: -122.4012878349353 }, { lat: 37.79925208843463, lng: -122.3976697250461 }, diff --git a/dist/samples/3d-polyline/jsfiddle/demo.js b/dist/samples/3d-polyline/jsfiddle/demo.js index 08742006..60a36bd8 100644 --- a/dist/samples/3d-polyline/jsfiddle/demo.js +++ b/dist/samples/3d-polyline/jsfiddle/demo.js @@ -15,7 +15,7 @@ async function init() { }); document.body.append(map); const polyline = new Polyline3DElement({ - coordinates: [ + path: [ { lat: 37.80515638571346, lng: -122.4032569467164 }, { lat: 37.80337073509504, lng: -122.4012878349353 }, { lat: 37.79925208843463, lng: -122.3976697250461 },