From 4d98711ec495fab0b302dd501267629f88819bca Mon Sep 17 00:00:00 2001 From: googlemaps-bot Date: Thu, 20 Nov 2025 21:54:14 +0000 Subject: [PATCH] Update dist folder [skip ci] --- .../advanced-markers-collision/app/README.md | 11 +- .../advanced-markers-collision/app/index.html | 130 +++++++++--------- .../dist/assets/index-C3FyQobl.js | 1 + .../dist/assets/index-CSEW3kTE.css | 5 - .../dist/assets/index-DUwID064.css | 1 + .../dist/assets/index-DVEpXRXB.js | 5 - .../dist/index.html | 130 +++++++++--------- .../docs/index.html | 130 +++++++++--------- .../jsfiddle/demo.html | 130 +++++++++--------- .../boundaries-choropleth/app/README.md | 7 +- .../boundaries-choropleth/app/index.html | 23 ++-- .../dist/assets/index-BZDSROJH.css | 1 + .../dist/assets/index-CgdwweuI.js | 5 - .../dist/assets/index-SjyzEaVt.js | 1 + .../dist/assets/index-i_98oPIq.css | 5 - .../boundaries-choropleth/dist/index.html | 23 ++-- .../boundaries-choropleth/docs/index.html | 23 ++-- .../boundaries-choropleth/jsfiddle/demo.html | 23 ++-- dist/samples/boundaries-click/app/README.md | 7 +- dist/samples/boundaries-click/app/index.html | 23 ++-- .../dist/assets/index-BZDSROJH.css | 1 + .../dist/assets/index-C1Myve7P.js | 5 - .../dist/assets/index-i_98oPIq.css | 5 - .../dist/assets/index-w-0QUZ9u.js | 1 + dist/samples/boundaries-click/dist/index.html | 23 ++-- dist/samples/boundaries-click/docs/index.html | 23 ++-- .../boundaries-click/jsfiddle/demo.html | 23 ++-- dist/samples/boundaries-simple/app/README.md | 7 +- dist/samples/boundaries-simple/app/index.html | 23 ++-- .../dist/assets/index-BZDSROJH.css | 1 + .../dist/assets/index-i_98oPIq.css | 5 - .../{index-DJGsUxfk.js => index-mN_SxfeC.js} | 6 +- .../samples/boundaries-simple/dist/index.html | 23 ++-- .../samples/boundaries-simple/docs/index.html | 23 ++-- .../boundaries-simple/jsfiddle/demo.html | 23 ++-- dist/samples/place-text-search/app/README.md | 11 +- dist/samples/place-text-search/app/index.html | 31 +++-- .../dist/assets/index-B0L17ZdS.css | 5 - .../dist/assets/index-D3DoV7sY.js | 5 - .../dist/assets/index-D7_52T9M.css | 1 + .../dist/assets/index-DnhF614C.js | 1 + .../samples/place-text-search/dist/index.html | 31 +++-- .../samples/place-text-search/docs/index.html | 31 +++-- .../place-text-search/jsfiddle/demo.html | 31 +++-- 44 files changed, 519 insertions(+), 504 deletions(-) create mode 100644 dist/samples/advanced-markers-collision/dist/assets/index-C3FyQobl.js delete mode 100644 dist/samples/advanced-markers-collision/dist/assets/index-CSEW3kTE.css create mode 100644 dist/samples/advanced-markers-collision/dist/assets/index-DUwID064.css delete mode 100644 dist/samples/advanced-markers-collision/dist/assets/index-DVEpXRXB.js create mode 100644 dist/samples/boundaries-choropleth/dist/assets/index-BZDSROJH.css delete mode 100644 dist/samples/boundaries-choropleth/dist/assets/index-CgdwweuI.js create mode 100644 dist/samples/boundaries-choropleth/dist/assets/index-SjyzEaVt.js delete mode 100644 dist/samples/boundaries-choropleth/dist/assets/index-i_98oPIq.css create mode 100644 dist/samples/boundaries-click/dist/assets/index-BZDSROJH.css delete mode 100644 dist/samples/boundaries-click/dist/assets/index-C1Myve7P.js delete mode 100644 dist/samples/boundaries-click/dist/assets/index-i_98oPIq.css create mode 100644 dist/samples/boundaries-click/dist/assets/index-w-0QUZ9u.js create mode 100644 dist/samples/boundaries-simple/dist/assets/index-BZDSROJH.css delete mode 100644 dist/samples/boundaries-simple/dist/assets/index-i_98oPIq.css rename dist/samples/boundaries-simple/dist/assets/{index-DJGsUxfk.js => index-mN_SxfeC.js} (61%) delete mode 100644 dist/samples/place-text-search/dist/assets/index-B0L17ZdS.css delete mode 100644 dist/samples/place-text-search/dist/assets/index-D3DoV7sY.js create mode 100644 dist/samples/place-text-search/dist/assets/index-D7_52T9M.css create mode 100644 dist/samples/place-text-search/dist/assets/index-DnhF614C.js diff --git a/dist/samples/advanced-markers-collision/app/README.md b/dist/samples/advanced-markers-collision/app/README.md index 385d8923..2a10f5c3 100644 --- a/dist/samples/advanced-markers-collision/app/README.md +++ b/dist/samples/advanced-markers-collision/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. +## advanced-markers-collision + +The advanced-markers-collision sample demonstrates how to control the collision behavior of advanced markers. + +Follow these instructions to set up and run advanced-markers-collision 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=advanced-markers-collision/` ### Build all of the examples. @@ -30,4 +33,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). +[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues). \ No newline at end of file diff --git a/dist/samples/advanced-markers-collision/app/index.html b/dist/samples/advanced-markers-collision/app/index.html index b4725575..4dce2363 100644 --- a/dist/samples/advanced-markers-collision/app/index.html +++ b/dist/samples/advanced-markers-collision/app/index.html @@ -6,75 +6,73 @@ --> - - Advanced Marker Collision Management + + Advanced Marker Collision Management - - - + + + - - - - + + - - -
- - -
- + diff --git a/dist/samples/advanced-markers-collision/dist/assets/index-C3FyQobl.js b/dist/samples/advanced-markers-collision/dist/assets/index-C3FyQobl.js new file mode 100644 index 00000000..f84f4607 --- /dev/null +++ b/dist/samples/advanced-markers-collision/dist/assets/index-C3FyQobl.js @@ -0,0 +1 @@ +(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.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 n(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=n(e);fetch(e.href,o)}})();const a=document.querySelector("gmp-map");async function u(){const{Map:s}=await google.maps.importLibrary("maps"),{AdvancedMarkerElement:i}=await google.maps.importLibrary("marker");let n=[],t=google.maps.CollisionBehavior.REQUIRED;const e=new mdc.select.MDCSelect(document.querySelector(".mdc-select"));e.listen("MDCSelect:change",()=>{t=e.value,n.forEach(r=>{r.collisionBehavior=t})}),e.value=t,[[-122.3402,47.6093],[-122.3402,47.6094],[-122.3403,47.6094],[-122.3384,47.6098],[-122.3389,47.6095],[-122.3396,47.6095],[-122.3379,47.6097],[-122.3378,47.6097],[-122.3396,47.6091],[-122.3383,47.6089],[-122.3379,47.6093],[-122.3381,47.6095],[-122.3378,47.6095]].forEach(([r,l])=>{const c=new i({position:new google.maps.LatLng({lat:l,lng:r}),collisionBehavior:t});a.appendChild(c),n.push(c)})}u(); diff --git a/dist/samples/advanced-markers-collision/dist/assets/index-CSEW3kTE.css b/dist/samples/advanced-markers-collision/dist/assets/index-CSEW3kTE.css deleted file mode 100644 index 46f6c6ae..00000000 --- a/dist/samples/advanced-markers-collision/dist/assets/index-CSEW3kTE.css +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */:root{--mdc-theme-primary: #1a73e8;--mdc-theme-secondary: #rgb(225, 245, 254);--mdc-theme-on-primary: #fff;--mdc-theme-on-secondary: rgb(1, 87, 155)}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-theme-primary)}.mdc-select--focused .mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:var(--mdc-theme-primary)}html,body{height:100%;margin:0;padding:0}#container{height:100%;display:flex}#sidebar{flex-basis:15rem;flex-grow:1;padding:1rem;max-width:33rem;height:100%;box-sizing:border-box;overflow:auto}gmp-map{flex-basis:0;flex-grow:4;height:100%}.mdc-select,.mdc-select__anchor,.mdc-select__menu{width:100%} diff --git a/dist/samples/advanced-markers-collision/dist/assets/index-DUwID064.css b/dist/samples/advanced-markers-collision/dist/assets/index-DUwID064.css new file mode 100644 index 00000000..a7e08400 --- /dev/null +++ b/dist/samples/advanced-markers-collision/dist/assets/index-DUwID064.css @@ -0,0 +1 @@ +:root{--mdc-theme-primary: #1a73e8;--mdc-theme-secondary: #rgb(225, 245, 254);--mdc-theme-on-primary: #fff;--mdc-theme-on-secondary: rgb(1, 87, 155)}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-theme-primary)}.mdc-select--focused .mdc-select__dropdown-icon{background:url(data:image/svg+xml,%3Csvg%20width%3D%2210px%22%20height%3D%225px%22%20viewBox%3D%227%2010%2010%205%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%20%20%3Cpolygon%20id%3D%22Shape%22%20stroke%3D%22none%22%20fill%3D%22%23000%22%20fill-rule%3D%22evenodd%22%20opacity%3D%220.54%22%20points%3D%227%2010%2012%2015%2017%2010%22%3E%3C%2Fpolygon%3E%0A%3C%2Fsvg%3E) no-repeat center}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:var(--mdc-theme-primary)}html,body{height:100%;margin:0;padding:0}#container{height:100%;display:flex}#sidebar{flex-basis:15rem;flex-grow:1;padding:1rem;max-width:33rem;height:100%;box-sizing:border-box;overflow:auto}gmp-map{flex-basis:0;flex-grow:4;height:100%}.mdc-select,.mdc-select__anchor,.mdc-select__menu{width:100%} diff --git a/dist/samples/advanced-markers-collision/dist/assets/index-DVEpXRXB.js b/dist/samples/advanced-markers-collision/dist/assets/index-DVEpXRXB.js deleted file mode 100644 index 9c043b56..00000000 --- a/dist/samples/advanced-markers-collision/dist/assets/index-DVEpXRXB.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.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 n(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=n(e);fetch(e.href,o)}})();/** - * @license - * Copyright 2019 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */const a=document.querySelector("gmp-map");async function u(){const{Map:s}=await google.maps.importLibrary("maps"),{AdvancedMarkerElement:i}=await google.maps.importLibrary("marker");let n=[],t=google.maps.CollisionBehavior.REQUIRED;const e=new mdc.select.MDCSelect(document.querySelector(".mdc-select"));e.listen("MDCSelect:change",()=>{t=e.value,n.forEach(r=>{r.collisionBehavior=t})}),e.value=t,[[-122.3402,47.6093],[-122.3402,47.6094],[-122.3403,47.6094],[-122.3384,47.6098],[-122.3389,47.6095],[-122.3396,47.6095],[-122.3379,47.6097],[-122.3378,47.6097],[-122.3396,47.6091],[-122.3383,47.6089],[-122.3379,47.6093],[-122.3381,47.6095],[-122.3378,47.6095]].forEach(([r,l])=>{const c=new i({position:new google.maps.LatLng({lat:l,lng:r}),collisionBehavior:t});a.appendChild(c),n.push(c)})}u(); diff --git a/dist/samples/advanced-markers-collision/dist/index.html b/dist/samples/advanced-markers-collision/dist/index.html index d8f51325..65494944 100644 --- a/dist/samples/advanced-markers-collision/dist/index.html +++ b/dist/samples/advanced-markers-collision/dist/index.html @@ -6,75 +6,73 @@ --> - - Advanced Marker Collision Management + + Advanced Marker Collision Management - - - + + + - - - - - - -
- - -
- + diff --git a/dist/samples/advanced-markers-collision/docs/index.html b/dist/samples/advanced-markers-collision/docs/index.html index b4725575..4dce2363 100644 --- a/dist/samples/advanced-markers-collision/docs/index.html +++ b/dist/samples/advanced-markers-collision/docs/index.html @@ -6,75 +6,73 @@ --> - - Advanced Marker Collision Management + + Advanced Marker Collision Management - - - + + + - - - - + + - - -
- - -
- + diff --git a/dist/samples/advanced-markers-collision/jsfiddle/demo.html b/dist/samples/advanced-markers-collision/jsfiddle/demo.html index 0f05e76d..e59cd265 100644 --- a/dist/samples/advanced-markers-collision/jsfiddle/demo.html +++ b/dist/samples/advanced-markers-collision/jsfiddle/demo.html @@ -6,75 +6,73 @@ --> - - Advanced Marker Collision Management + + Advanced Marker Collision Management - - - + + + - - - - + + - - -
- - -
- + diff --git a/dist/samples/boundaries-choropleth/app/README.md b/dist/samples/boundaries-choropleth/app/README.md index 183237d4..5dd30048 100644 --- a/dist/samples/boundaries-choropleth/app/README.md +++ b/dist/samples/boundaries-choropleth/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. +## boundaries-choropleth + +The boundaries-choropleth sample demonstrates how to create a choropleth map using data-driven styling for boundaries. + +Follow these instructions to set up and run boundaries-choropleth sample on your local computer. ## Setup diff --git a/dist/samples/boundaries-choropleth/app/index.html b/dist/samples/boundaries-choropleth/app/index.html index 80ea24c5..f5d8afc0 100644 --- a/dist/samples/boundaries-choropleth/app/index.html +++ b/dist/samples/boundaries-choropleth/app/index.html @@ -6,17 +6,20 @@ --> - - Choropleth Map + + Choropleth Map - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-choropleth/dist/assets/index-BZDSROJH.css b/dist/samples/boundaries-choropleth/dist/assets/index-BZDSROJH.css new file mode 100644 index 00000000..59d9a4df --- /dev/null +++ b/dist/samples/boundaries-choropleth/dist/assets/index-BZDSROJH.css @@ -0,0 +1 @@ +gmp-map{height:100%}html,body{height:100%;margin:0;padding:0} diff --git a/dist/samples/boundaries-choropleth/dist/assets/index-CgdwweuI.js b/dist/samples/boundaries-choropleth/dist/assets/index-CgdwweuI.js deleted file mode 100644 index 0513e904..00000000 --- a/dist/samples/boundaries-choropleth/dist/assets/index-CgdwweuI.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const I of t.addedNodes)I.tagName==="LINK"&&I.rel==="modulepreload"&&o(I)}).observe(document,{childList:!0,subtree:!0});function h(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 o(e){if(e.ep)return;e.ep=!0;const t=h(e);fetch(e.href,t)}})();/** - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */async function s(){await google.maps.importLibrary("maps");const h=document.querySelector("gmp-map").innerMap.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);h.style=e=>{const t=e.feature,I=o[t.placeId];let r;return I<2e6?r="green":I<5e6?r="red":I<1e7?r="blue":I<4e7&&(r="yellow"),{fillColor:r,fillOpacity:.5}};const o={ChIJdf5LHzR_hogR6czIUzU0VV4:5039877,ChIJG8CuwJzfAFQRNduKqSde27w:732673,"ChIJaxhMy-sIK4cRcc3Bf7EnOUI":7276316,"ChIJYSc_dD-e0ocR0NLf_z5pBaQ":3025891,ChIJPV4oX_65j4ARVW8IJ6IJUYs:39237836,ChIJt1YYm3QUQIcR_6eQSTGDVMc:5812069,ChIJpVER8hFT5okR5XBhBVttmq4:3605597,ChIJO9YMTXYFx4kReOgEjBItHZQ:1003384,ChIJvypWkWV2wYgR0E7HW9MTLvc:21781128,ChIJV4FfHcU28YgR5xBP7BC8hGY:10799566,ChIJBeB5Twbb_3sRKIbMdNKCd0s:1441553,ChIJ6Znkhaj_WFMRWIf3FQUwa9A:1900923,ChIJGSZubzgtC4gRVlkRZFCCFX8:12671469,ChIJHRv42bxQa4gRcuwyy84vEH4:6805985,ChIJGWD48W9e7ocR2VnHV0pj78Y:3193079,"ChIJawF8cXEXo4cRXwk-S6m0wmg":2934582,ChIJyVMZi0xzQogR_N_MxU5vH3c:4509394,ChIJZYIRslSkIIYRA0flgTL3Vck:4624047,ChIJ1YpTHd4dsEwR0KggZ2_MedY:1372247,ChIJ35Dx6etNtokRsfZVdmU3r_I:6165129,ChIJ_b9z6W1l44kRHA2DVTbQxkU:6984723,ChIJEQTKxz2qTE0Rs8liellI3Zc:10050811,"ChIJmwt4YJpbWE0RD6L-EJvJogI":5707390,ChIJGdRK5OQyKIYR2qbc6X8XDWI:2949965,ChIJfeMiSNXmwIcRcr1mBFnEW7U:6168187,ChIJ04p7LZwrQVMRGGwqz1jWcfU:1104271,ChIJ7fwMtciNk4cRxArzDwyQJ6E:1963692,"ChIJcbTe-KEKmYARs5X8qooDR88":3143991,ChIJ66bAnUtEs0wR64CmJa8CyNc:1388992,"ChIJn0AAnpX7wIkRjW0_-Ad70iw":9267130,ChIJqVKY50NQGIcRup41Yxpuv0Y:2115877,ChIJqaUj8fBLzEwRZ5UY3sHGz90:19835913,ChIJgRo4_MQfVIgRGa4i6fUwP60:10551162,"ChIJY-nYVxKD11IRyc9egzmahA0":774948,ChIJwY5NtXrpNogRFtmfnDlkzeU:11780017,"ChIJnU-ssRE5rIcRSOoKQDPPHF0":3986639,ChIJVWqfm3xuk1QRdrgLettlTH0:4246155,ChIJieUyHiaALYgRPbQiUEchRsI:12964056,ChIJD9cOYhQ15IkR5wbB57wYTh4:1095610,"ChIJ49ExeWml-IgRnhcF9TKh_7k":5190705,ChIJpTjphS1DfYcRt6SGMSnW8Ac:895376,"ChIJA8-XniNLYYgRVpGBpcEgPgM":6975218,ChIJSTKCCzZwQIYRPN4IGI8c6xY:29527941,ChIJzfkTj8drTIcRP0bXbKVK370:3337975,ChIJ_87aSGzctEwRtGtUNnSJTSY:645570,ChIJzbK8vXDWTIgRlaZGt0lBTsA:8642274,"ChIJ-bDD5__lhVQRuvNfbGh4QpQ":7738692,ChIJRQnL1KVUSogRQzrN3mjHALs:1782959,"ChIJr-OEkw_0qFIR1kmG-LjV1fI":5895908,ChIJaS7hSDTiXocRLzh90nkisCY:578803}}s(); diff --git a/dist/samples/boundaries-choropleth/dist/assets/index-SjyzEaVt.js b/dist/samples/boundaries-choropleth/dist/assets/index-SjyzEaVt.js new file mode 100644 index 00000000..32ad79db --- /dev/null +++ b/dist/samples/boundaries-choropleth/dist/assets/index-SjyzEaVt.js @@ -0,0 +1 @@ +(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const I of t.addedNodes)I.tagName==="LINK"&&I.rel==="modulepreload"&&o(I)}).observe(document,{childList:!0,subtree:!0});function h(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 o(e){if(e.ep)return;e.ep=!0;const t=h(e);fetch(e.href,t)}})();async function s(){await google.maps.importLibrary("maps");const h=document.querySelector("gmp-map").innerMap.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);h.style=e=>{const t=e.feature,I=o[t.placeId];let r;return I<2e6?r="green":I<5e6?r="red":I<1e7?r="blue":I<4e7&&(r="yellow"),{fillColor:r,fillOpacity:.5}};const o={ChIJdf5LHzR_hogR6czIUzU0VV4:5039877,ChIJG8CuwJzfAFQRNduKqSde27w:732673,"ChIJaxhMy-sIK4cRcc3Bf7EnOUI":7276316,"ChIJYSc_dD-e0ocR0NLf_z5pBaQ":3025891,ChIJPV4oX_65j4ARVW8IJ6IJUYs:39237836,ChIJt1YYm3QUQIcR_6eQSTGDVMc:5812069,ChIJpVER8hFT5okR5XBhBVttmq4:3605597,ChIJO9YMTXYFx4kReOgEjBItHZQ:1003384,ChIJvypWkWV2wYgR0E7HW9MTLvc:21781128,ChIJV4FfHcU28YgR5xBP7BC8hGY:10799566,ChIJBeB5Twbb_3sRKIbMdNKCd0s:1441553,ChIJ6Znkhaj_WFMRWIf3FQUwa9A:1900923,ChIJGSZubzgtC4gRVlkRZFCCFX8:12671469,ChIJHRv42bxQa4gRcuwyy84vEH4:6805985,ChIJGWD48W9e7ocR2VnHV0pj78Y:3193079,"ChIJawF8cXEXo4cRXwk-S6m0wmg":2934582,ChIJyVMZi0xzQogR_N_MxU5vH3c:4509394,ChIJZYIRslSkIIYRA0flgTL3Vck:4624047,ChIJ1YpTHd4dsEwR0KggZ2_MedY:1372247,ChIJ35Dx6etNtokRsfZVdmU3r_I:6165129,ChIJ_b9z6W1l44kRHA2DVTbQxkU:6984723,ChIJEQTKxz2qTE0Rs8liellI3Zc:10050811,"ChIJmwt4YJpbWE0RD6L-EJvJogI":5707390,ChIJGdRK5OQyKIYR2qbc6X8XDWI:2949965,ChIJfeMiSNXmwIcRcr1mBFnEW7U:6168187,ChIJ04p7LZwrQVMRGGwqz1jWcfU:1104271,ChIJ7fwMtciNk4cRxArzDwyQJ6E:1963692,"ChIJcbTe-KEKmYARs5X8qooDR88":3143991,ChIJ66bAnUtEs0wR64CmJa8CyNc:1388992,"ChIJn0AAnpX7wIkRjW0_-Ad70iw":9267130,ChIJqVKY50NQGIcRup41Yxpuv0Y:2115877,ChIJqaUj8fBLzEwRZ5UY3sHGz90:19835913,ChIJgRo4_MQfVIgRGa4i6fUwP60:10551162,"ChIJY-nYVxKD11IRyc9egzmahA0":774948,ChIJwY5NtXrpNogRFtmfnDlkzeU:11780017,"ChIJnU-ssRE5rIcRSOoKQDPPHF0":3986639,ChIJVWqfm3xuk1QRdrgLettlTH0:4246155,ChIJieUyHiaALYgRPbQiUEchRsI:12964056,ChIJD9cOYhQ15IkR5wbB57wYTh4:1095610,"ChIJ49ExeWml-IgRnhcF9TKh_7k":5190705,ChIJpTjphS1DfYcRt6SGMSnW8Ac:895376,"ChIJA8-XniNLYYgRVpGBpcEgPgM":6975218,ChIJSTKCCzZwQIYRPN4IGI8c6xY:29527941,ChIJzfkTj8drTIcRP0bXbKVK370:3337975,ChIJ_87aSGzctEwRtGtUNnSJTSY:645570,ChIJzbK8vXDWTIgRlaZGt0lBTsA:8642274,"ChIJ-bDD5__lhVQRuvNfbGh4QpQ":7738692,ChIJRQnL1KVUSogRQzrN3mjHALs:1782959,"ChIJr-OEkw_0qFIR1kmG-LjV1fI":5895908,ChIJaS7hSDTiXocRLzh90nkisCY:578803}}s(); diff --git a/dist/samples/boundaries-choropleth/dist/assets/index-i_98oPIq.css b/dist/samples/boundaries-choropleth/dist/assets/index-i_98oPIq.css deleted file mode 100644 index c48393ed..00000000 --- a/dist/samples/boundaries-choropleth/dist/assets/index-i_98oPIq.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} diff --git a/dist/samples/boundaries-choropleth/dist/index.html b/dist/samples/boundaries-choropleth/dist/index.html index cb0d65b4..5b926843 100644 --- a/dist/samples/boundaries-choropleth/dist/index.html +++ b/dist/samples/boundaries-choropleth/dist/index.html @@ -6,17 +6,20 @@ --> - - Choropleth Map + + Choropleth Map - - - - - - - - + + + + + + diff --git a/dist/samples/boundaries-choropleth/docs/index.html b/dist/samples/boundaries-choropleth/docs/index.html index 80ea24c5..f5d8afc0 100644 --- a/dist/samples/boundaries-choropleth/docs/index.html +++ b/dist/samples/boundaries-choropleth/docs/index.html @@ -6,17 +6,20 @@ --> - - Choropleth Map + + Choropleth Map - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-choropleth/jsfiddle/demo.html b/dist/samples/boundaries-choropleth/jsfiddle/demo.html index 20462283..2a8f522b 100644 --- a/dist/samples/boundaries-choropleth/jsfiddle/demo.html +++ b/dist/samples/boundaries-choropleth/jsfiddle/demo.html @@ -6,17 +6,20 @@ --> - - Choropleth Map + + Choropleth Map - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-click/app/README.md b/dist/samples/boundaries-click/app/README.md index 813f357a..520172b1 100644 --- a/dist/samples/boundaries-click/app/README.md +++ b/dist/samples/boundaries-click/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. +## boundaries-click + +The boundaries-click sample demonstrates how to handle click events on administrative boundaries. + +Follow these instructions to set up and run boundaries-click sample on your local computer. ## Setup diff --git a/dist/samples/boundaries-click/app/index.html b/dist/samples/boundaries-click/app/index.html index 2da437a2..5f69d7ac 100644 --- a/dist/samples/boundaries-click/app/index.html +++ b/dist/samples/boundaries-click/app/index.html @@ -6,17 +6,20 @@ --> - - Handle Region Boundary Click Event + + Handle Region Boundary Click Event - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-click/dist/assets/index-BZDSROJH.css b/dist/samples/boundaries-click/dist/assets/index-BZDSROJH.css new file mode 100644 index 00000000..59d9a4df --- /dev/null +++ b/dist/samples/boundaries-click/dist/assets/index-BZDSROJH.css @@ -0,0 +1 @@ +gmp-map{height:100%}html,body{height:100%;margin:0;padding:0} diff --git a/dist/samples/boundaries-click/dist/assets/index-C1Myve7P.js b/dist/samples/boundaries-click/dist/assets/index-C1Myve7P.js deleted file mode 100644 index 9cbbd8fe..00000000 --- a/dist/samples/boundaries-click/dist/assets/index-C1Myve7P.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const n of t)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function c(t){const n={};return t.integrity&&(n.integrity=t.integrity),t.referrerPolicy&&(n.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?n.credentials="include":t.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(t){if(t.ep)return;t.ep=!0;const n=c(t);fetch(t.href,n)}})();/** - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */let i,l,d,s=[],f=[];function m(o){f=o.features.map(e=>e.placeId),s=[],l.style=p,g(o)}function y(o){s=o.features.map(e=>e.placeId),l.style=p}async function h(){const{Map:o,InfoWindow:e}=await google.maps.importLibrary("maps");i=document.querySelector("gmp-map").innerMap,i.setOptions({mapTypeControl:!1}),l=i.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_2),l.addListener("click",m),l.addListener("mousemove",y),i.addListener("mousemove",()=>{s?.length&&(s=[],l.style=p)}),d=new e({}),l.style=p}async function g(o){let e=o.features[0];if(!e.placeId)return;const c=await e.fetchPlace();let r=document.createElement("div"),t=document.createElement("span");t.textContent=`Display name: ${c.displayName}`;let n=document.createElement("span");n.textContent=`Place ID: ${e.placeId}`;let a=document.createElement("span");a.textContent=`Feature type: ${e.featureType}`,r.appendChild(t),r.appendChild(document.createElement("br")),r.appendChild(n),r.appendChild(document.createElement("br")),r.appendChild(a),L(r,o.latLng)}const u={strokeColor:"#810FCB",strokeOpacity:1,strokeWeight:2,fillColor:"white",fillOpacity:.1},C={...u,fillColor:"#810FCB",fillOpacity:.5},I={...u,strokeWeight:4};function p(o){const e=o.feature.placeId;return f.includes(e)?C:s.includes(e)?I:u}function L(o,e){d.setContent(o),d.setPosition(e),d.open({map:i,shouldFocus:!1})}h(); diff --git a/dist/samples/boundaries-click/dist/assets/index-i_98oPIq.css b/dist/samples/boundaries-click/dist/assets/index-i_98oPIq.css deleted file mode 100644 index c48393ed..00000000 --- a/dist/samples/boundaries-click/dist/assets/index-i_98oPIq.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} diff --git a/dist/samples/boundaries-click/dist/assets/index-w-0QUZ9u.js b/dist/samples/boundaries-click/dist/assets/index-w-0QUZ9u.js new file mode 100644 index 00000000..6a12b542 --- /dev/null +++ b/dist/samples/boundaries-click/dist/assets/index-w-0QUZ9u.js @@ -0,0 +1 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const n of t)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function c(t){const n={};return t.integrity&&(n.integrity=t.integrity),t.referrerPolicy&&(n.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?n.credentials="include":t.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(t){if(t.ep)return;t.ep=!0;const n=c(t);fetch(t.href,n)}})();let i,l,d,s=[],f=[];function m(o){f=o.features.map(e=>e.placeId),s=[],l.style=p,g(o)}function y(o){s=o.features.map(e=>e.placeId),l.style=p}async function h(){const{Map:o,InfoWindow:e}=await google.maps.importLibrary("maps");i=document.querySelector("gmp-map").innerMap,i.setOptions({mapTypeControl:!1}),l=i.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_2),l.addListener("click",m),l.addListener("mousemove",y),i.addListener("mousemove",()=>{s?.length&&(s=[],l.style=p)}),d=new e({}),l.style=p}async function g(o){let e=o.features[0];if(!e.placeId)return;const c=await e.fetchPlace();let r=document.createElement("div"),t=document.createElement("span");t.textContent=`Display name: ${c.displayName}`;let n=document.createElement("span");n.textContent=`Place ID: ${e.placeId}`;let a=document.createElement("span");a.textContent=`Feature type: ${e.featureType}`,r.appendChild(t),r.appendChild(document.createElement("br")),r.appendChild(n),r.appendChild(document.createElement("br")),r.appendChild(a),L(r,o.latLng)}const u={strokeColor:"#810FCB",strokeOpacity:1,strokeWeight:2,fillColor:"white",fillOpacity:.1},C={...u,fillColor:"#810FCB",fillOpacity:.5},I={...u,strokeWeight:4};function p(o){const e=o.feature.placeId;return f.includes(e)?C:s.includes(e)?I:u}function L(o,e){d.setContent(o),d.setPosition(e),d.open({map:i,shouldFocus:!1})}h(); diff --git a/dist/samples/boundaries-click/dist/index.html b/dist/samples/boundaries-click/dist/index.html index 2bcf2dc3..14d3dcd9 100644 --- a/dist/samples/boundaries-click/dist/index.html +++ b/dist/samples/boundaries-click/dist/index.html @@ -6,17 +6,20 @@ --> - - Handle Region Boundary Click Event + + Handle Region Boundary Click Event - - - - - - - - + + + + + + diff --git a/dist/samples/boundaries-click/docs/index.html b/dist/samples/boundaries-click/docs/index.html index 2da437a2..5f69d7ac 100644 --- a/dist/samples/boundaries-click/docs/index.html +++ b/dist/samples/boundaries-click/docs/index.html @@ -6,17 +6,20 @@ --> - - Handle Region Boundary Click Event + + Handle Region Boundary Click Event - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-click/jsfiddle/demo.html b/dist/samples/boundaries-click/jsfiddle/demo.html index d24671b6..036513ec 100644 --- a/dist/samples/boundaries-click/jsfiddle/demo.html +++ b/dist/samples/boundaries-click/jsfiddle/demo.html @@ -6,17 +6,20 @@ --> - - Handle Region Boundary Click Event + + Handle Region Boundary Click Event - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-simple/app/README.md b/dist/samples/boundaries-simple/app/README.md index 3eb0a93e..149568a5 100644 --- a/dist/samples/boundaries-simple/app/README.md +++ b/dist/samples/boundaries-simple/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. +## boundaries-simple + +The boundaries-simple sample demonstrates a simple example of how to display administrative boundaries on a map. + +Follow these instructions to set up and run boundaries-simple sample on your local computer. ## Setup diff --git a/dist/samples/boundaries-simple/app/index.html b/dist/samples/boundaries-simple/app/index.html index ca3f5cbc..3967b957 100644 --- a/dist/samples/boundaries-simple/app/index.html +++ b/dist/samples/boundaries-simple/app/index.html @@ -6,17 +6,20 @@ --> - - Boundaries Simple + + Boundaries Simple - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-simple/dist/assets/index-BZDSROJH.css b/dist/samples/boundaries-simple/dist/assets/index-BZDSROJH.css new file mode 100644 index 00000000..59d9a4df --- /dev/null +++ b/dist/samples/boundaries-simple/dist/assets/index-BZDSROJH.css @@ -0,0 +1 @@ +gmp-map{height:100%}html,body{height:100%;margin:0;padding:0} diff --git a/dist/samples/boundaries-simple/dist/assets/index-i_98oPIq.css b/dist/samples/boundaries-simple/dist/assets/index-i_98oPIq.css deleted file mode 100644 index c48393ed..00000000 --- a/dist/samples/boundaries-simple/dist/assets/index-i_98oPIq.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} diff --git a/dist/samples/boundaries-simple/dist/assets/index-DJGsUxfk.js b/dist/samples/boundaries-simple/dist/assets/index-mN_SxfeC.js similarity index 61% rename from dist/samples/boundaries-simple/dist/assets/index-DJGsUxfk.js rename to dist/samples/boundaries-simple/dist/assets/index-mN_SxfeC.js index e2190fa0..6f4e03c9 100644 --- a/dist/samples/boundaries-simple/dist/assets/index-DJGsUxfk.js +++ b/dist/samples/boundaries-simple/dist/assets/index-mN_SxfeC.js @@ -1,5 +1 @@ -(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(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"&&o(n)}).observe(document,{childList:!0,subtree:!0});function i(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 o(e){if(e.ep)return;e.ep=!0;const t=i(e);fetch(e.href,t)}})();/** -* @license -* Copyright 2025 Google LLC. All Rights Reserved. -* SPDX-License-Identifier: Apache-2.0 -*/let s;async function l(){await google.maps.importLibrary("maps"),s=document.querySelector("gmp-map").innerMap.getFeatureLayer(google.maps.FeatureType.LOCALITY);const i={strokeColor:"#810FCB",strokeOpacity:1,strokeWeight:3,fillColor:"#810FCB",fillOpacity:.5};s.style=o=>{if(o.feature.placeId=="ChIJ0zQtYiWsVHkRk8lRoB1RNPo")return i}}l(); +(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(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"&&o(n)}).observe(document,{childList:!0,subtree:!0});function i(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 o(e){if(e.ep)return;e.ep=!0;const t=i(e);fetch(e.href,t)}})();let s;async function l(){await google.maps.importLibrary("maps"),s=document.querySelector("gmp-map").innerMap.getFeatureLayer(google.maps.FeatureType.LOCALITY);const i={strokeColor:"#810FCB",strokeOpacity:1,strokeWeight:3,fillColor:"#810FCB",fillOpacity:.5};s.style=o=>{if(o.feature.placeId=="ChIJ0zQtYiWsVHkRk8lRoB1RNPo")return i}}l(); diff --git a/dist/samples/boundaries-simple/dist/index.html b/dist/samples/boundaries-simple/dist/index.html index a67af00d..6901d741 100644 --- a/dist/samples/boundaries-simple/dist/index.html +++ b/dist/samples/boundaries-simple/dist/index.html @@ -6,17 +6,20 @@ --> - - Boundaries Simple + + Boundaries Simple - - - - - - - - + + + + + + diff --git a/dist/samples/boundaries-simple/docs/index.html b/dist/samples/boundaries-simple/docs/index.html index ca3f5cbc..3967b957 100644 --- a/dist/samples/boundaries-simple/docs/index.html +++ b/dist/samples/boundaries-simple/docs/index.html @@ -6,17 +6,20 @@ --> - - Boundaries Simple + + Boundaries Simple - - - - + + - - - - + + + + diff --git a/dist/samples/boundaries-simple/jsfiddle/demo.html b/dist/samples/boundaries-simple/jsfiddle/demo.html index 55d12ebd..9c22e4ee 100644 --- a/dist/samples/boundaries-simple/jsfiddle/demo.html +++ b/dist/samples/boundaries-simple/jsfiddle/demo.html @@ -6,17 +6,20 @@ --> - - Boundaries Simple + + Boundaries Simple - - - - + + - - - - + + + + diff --git a/dist/samples/place-text-search/app/README.md b/dist/samples/place-text-search/app/README.md index e89ad5bb..f73b86dc 100644 --- a/dist/samples/place-text-search/app/README.md +++ b/dist/samples/place-text-search/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. +## place-text-search + +The place-text-search sample demonstrates how to perform a text search for places. + +Follow these instructions to set up and run place-text-search 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=place-text-search/` ### Build all of the examples. @@ -29,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/place-text-search/app/index.html b/dist/samples/place-text-search/app/index.html index b641c55d..0f12265e 100644 --- a/dist/samples/place-text-search/app/index.html +++ b/dist/samples/place-text-search/app/index.html @@ -6,22 +6,25 @@ --> - - Text Search + + Text Search - - - - -
- - -
-
+ + + + +
+ + +
+
- - - + diff --git a/dist/samples/place-text-search/dist/assets/index-B0L17ZdS.css b/dist/samples/place-text-search/dist/assets/index-B0L17ZdS.css deleted file mode 100644 index 33244fe4..00000000 --- a/dist/samples/place-text-search/dist/assets/index-B0L17ZdS.css +++ /dev/null @@ -1,5 +0,0 @@ -/* - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */#map{height:100%}html,body{height:100%;margin:0;padding:0}#text-input-card{width:25%;background-color:#fff;border-radius:5px;box-shadow:#00000059 0 5px 15px;margin:10px;padding:5px;font-family:Roboto,sans-serif;font-size:large;font-weight:700}#text-input{width:100%;padding:10px;margin:0;box-sizing:border-box}#text-input-button{display:inline-block;margin-top:.5rem;width:auto;padding:.6rem .75rem;font-size:.875rem;font-weight:500;color:#fff;background-color:#2563eb;border:none;border-radius:.375rem;cursor:pointer;transition:background-color .15s ease-in-out;text-align:center} diff --git a/dist/samples/place-text-search/dist/assets/index-D3DoV7sY.js b/dist/samples/place-text-search/dist/assets/index-D3DoV7sY.js deleted file mode 100644 index 35031897..00000000 --- a/dist/samples/place-text-search/dist/assets/index-D3DoV7sY.js +++ /dev/null @@ -1,5 +0,0 @@ -(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 s(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=s(e);fetch(e.href,t)}})();/* - * @license - * Copyright 2025 Google LLC. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */let a,l={},u;async function p(){const{Map:c,InfoWindow:n}=await google.maps.importLibrary("maps"),s={lat:37.4161493,lng:-122.0812166};a=new c(document.getElementById("map"),{center:s,zoom:11,mapTypeControl:!1,mapId:"DEMO_MAP_ID"});const i=document.getElementById("text-input"),e=document.getElementById("text-input-button"),t=document.getElementById("text-input-card");a.controls[google.maps.ControlPosition.TOP_LEFT].push(t),e.addEventListener("click",()=>{m(i.value)}),i.addEventListener("keydown",r=>{r.key==="Enter"&&m(i.value)}),u=new google.maps.InfoWindow}async function m(c){const{Place:n}=await google.maps.importLibrary("places"),{AdvancedMarkerElement:s}=await google.maps.importLibrary("marker"),i={textQuery:c,fields:["displayName","location","businessStatus"],includedType:"",useStrictTypeFiltering:!0,locationBias:a.center,isOpenNow:!0,language:"en-US",maxResultCount:8,minRating:1,region:"us"},{places:e}=await n.searchByText(i);if(e.length){const{LatLngBounds:t}=await google.maps.importLibrary("core"),r=new t;for(const o in l)l[o].map=null;l={},e.forEach(o=>{const d=new s({map:a,position:o.location,title:o.displayName});l[o.id]=d,d.addListener("gmp-click",()=>{a.panTo(o.location),f(o.displayName,o.id,d)}),o.location!=null&&r.extend(o.location)}),a.fitBounds(r)}else console.log("No results")}async function f(c,n,s){u.setContent(n),u.setHeaderContent(c),u.open({map:a,anchor:s,shouldFocus:!1})}p(); diff --git a/dist/samples/place-text-search/dist/assets/index-D7_52T9M.css b/dist/samples/place-text-search/dist/assets/index-D7_52T9M.css new file mode 100644 index 00000000..1fa09405 --- /dev/null +++ b/dist/samples/place-text-search/dist/assets/index-D7_52T9M.css @@ -0,0 +1 @@ +#map{height:100%}html,body{height:100%;margin:0;padding:0}#text-input-card{width:25%;background-color:#fff;border-radius:5px;box-shadow:#00000059 0 5px 15px;margin:10px;padding:5px;font-family:Roboto,sans-serif;font-size:large;font-weight:700}#text-input{width:100%;padding:10px;margin:0;box-sizing:border-box}#text-input-button{display:inline-block;margin-top:.5rem;width:auto;padding:.6rem .75rem;font-size:.875rem;font-weight:500;color:#fff;background-color:#2563eb;border:none;border-radius:.375rem;cursor:pointer;transition:background-color .15s ease-in-out;text-align:center} diff --git a/dist/samples/place-text-search/dist/assets/index-DnhF614C.js b/dist/samples/place-text-search/dist/assets/index-DnhF614C.js new file mode 100644 index 00000000..e5af1fbe --- /dev/null +++ b/dist/samples/place-text-search/dist/assets/index-DnhF614C.js @@ -0,0 +1 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 s(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=s(e);fetch(e.href,t)}})();let a,l={},u;async function p(){const{Map:c,InfoWindow:n}=await google.maps.importLibrary("maps"),s={lat:37.4161493,lng:-122.0812166};a=new c(document.getElementById("map"),{center:s,zoom:11,mapTypeControl:!1,mapId:"DEMO_MAP_ID"});const i=document.getElementById("text-input"),e=document.getElementById("text-input-button"),t=document.getElementById("text-input-card");a.controls[google.maps.ControlPosition.TOP_LEFT].push(t),e.addEventListener("click",()=>{m(i.value)}),i.addEventListener("keydown",r=>{r.key==="Enter"&&m(i.value)}),u=new google.maps.InfoWindow}async function m(c){const{Place:n}=await google.maps.importLibrary("places"),{AdvancedMarkerElement:s}=await google.maps.importLibrary("marker"),i={textQuery:c,fields:["displayName","location","businessStatus"],includedType:"",useStrictTypeFiltering:!0,locationBias:a.center,isOpenNow:!0,language:"en-US",maxResultCount:8,minRating:1,region:"us"},{places:e}=await n.searchByText(i);if(e.length){const{LatLngBounds:t}=await google.maps.importLibrary("core"),r=new t;for(const o in l)l[o].map=null;l={},e.forEach(o=>{const d=new s({map:a,position:o.location,title:o.displayName});l[o.id]=d,d.addListener("gmp-click",()=>{a.panTo(o.location),f(o.displayName,o.id,d)}),o.location!=null&&r.extend(o.location)}),a.fitBounds(r)}else console.log("No results")}async function f(c,n,s){u.setContent(n),u.setHeaderContent(c),u.open({map:a,anchor:s,shouldFocus:!1})}p(); diff --git a/dist/samples/place-text-search/dist/index.html b/dist/samples/place-text-search/dist/index.html index 4e178c4b..71483ff5 100644 --- a/dist/samples/place-text-search/dist/index.html +++ b/dist/samples/place-text-search/dist/index.html @@ -6,22 +6,25 @@ --> - - Text Search + + Text Search - - - - -
- - -
-
+ + + + +
+ + +
+
- - - + diff --git a/dist/samples/place-text-search/docs/index.html b/dist/samples/place-text-search/docs/index.html index b641c55d..0f12265e 100644 --- a/dist/samples/place-text-search/docs/index.html +++ b/dist/samples/place-text-search/docs/index.html @@ -6,22 +6,25 @@ --> - - Text Search + + Text Search - - - - -
- - -
-
+ + + + +
+ + +
+
- - - + diff --git a/dist/samples/place-text-search/jsfiddle/demo.html b/dist/samples/place-text-search/jsfiddle/demo.html index d8aff6f4..d648c82e 100644 --- a/dist/samples/place-text-search/jsfiddle/demo.html +++ b/dist/samples/place-text-search/jsfiddle/demo.html @@ -6,22 +6,25 @@ --> - - Text Search + + Text Search - - - - -
- - -
-
+ + + + +
+ + +
+
- - - +