From 2b09c26db2b5683cfed0733927ab727712c6f852 Mon Sep 17 00:00:00 2001 From: googlemaps-bot Date: Thu, 10 Apr 2025 17:58:01 +0000 Subject: [PATCH] Update dist folder [skip ci] --- dist/samples/ui-kit-place-details/app/index.ts | 4 ++-- .../ui-kit-place-details/dist/assets/index-B0_gTKaF.js | 5 +++++ .../ui-kit-place-details/dist/assets/index-CadsbSRj.js | 5 ----- dist/samples/ui-kit-place-details/dist/index.html | 2 +- dist/samples/ui-kit-place-details/docs/index.js | 1 + dist/samples/ui-kit-place-details/docs/index.ts | 4 ++-- dist/samples/ui-kit-place-details/jsfiddle/demo.js | 1 + 7 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 dist/samples/ui-kit-place-details/dist/assets/index-B0_gTKaF.js delete mode 100644 dist/samples/ui-kit-place-details/dist/assets/index-CadsbSRj.js diff --git a/dist/samples/ui-kit-place-details/app/index.ts b/dist/samples/ui-kit-place-details/app/index.ts index b1add48d..c18f0459 100644 --- a/dist/samples/ui-kit-place-details/app/index.ts +++ b/dist/samples/ui-kit-place-details/app/index.ts @@ -31,9 +31,9 @@ async function initMap(): Promise { let adjustedCenter = offsetLatLngRight(placeDetails.place.location, -0.005); map.innerMap.panTo(adjustedCenter); map.innerMap.setZoom(16); - marker.position = placeDetails.place.location; marker.style.display = 'block'; + marker.collisionBehavior = google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL; /* [START maps_ui_kit_place_details_event] */ // Add an event listener to handle map clicks. @@ -71,4 +71,4 @@ declare global { } window.initMap = initMap; /* [END maps_ui_kit_place_details] */ -export {}; \ No newline at end of file +export {}; diff --git a/dist/samples/ui-kit-place-details/dist/assets/index-B0_gTKaF.js b/dist/samples/ui-kit-place-details/dist/assets/index-B0_gTKaF.js new file mode 100644 index 00000000..0f3bcb42 --- /dev/null +++ b/dist/samples/ui-kit-place-details/dist/assets/index-B0_gTKaF.js @@ -0,0 +1,5 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function c(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 r(e){if(e.ep)return;e.ep=!0;const o=c(e);fetch(e.href,o)}})();/* + * @license + * Copyright 2025 Google LLC. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */const s=document.querySelector("gmp-map"),i=document.querySelector("gmp-place-details"),a=document.querySelector("gmp-advanced-marker");async function d(){await google.maps.importLibrary("maps"),await google.maps.importLibrary("marker");const{Place:n}=await google.maps.importLibrary("places");s.innerMap.setOptions({mapTypeControl:!1});const t=new n({id:"ChIJC8HakaIRkFQRiOgkgdHmqkk",requestedLanguage:"en"});await i.configureFromPlace(t);let c=p(i.place.location,-.005);s.innerMap.panTo(c),s.innerMap.setZoom(16),a.position=i.place.location,a.style.display="block",a.collisionBehavior=google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL,s.innerMap.addListener("click",async r=>{a.position=null,r.stop(),r.placeId?await i.configureFromPlace({id:r.placeId}):await i.configureFromLocation(r.latLng);let e=p(i.place.location,-.005);a.position=i.place.location,a.style.display="block",s.innerMap.panTo(e)})}function p(n,t){const c=n.lng()+t;return new google.maps.LatLng(n.lat(),c)}window.initMap=d; diff --git a/dist/samples/ui-kit-place-details/dist/assets/index-CadsbSRj.js b/dist/samples/ui-kit-place-details/dist/assets/index-CadsbSRj.js deleted file mode 100644 index 859c0ce7..00000000 --- a/dist/samples/ui-kit-place-details/dist/assets/index-CadsbSRj.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"]'))r(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const l of t.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 r(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 - */const c=document.querySelector("gmp-map"),a=document.querySelector("gmp-place-details"),s=document.querySelector("gmp-advanced-marker");async function d(){await google.maps.importLibrary("maps"),await google.maps.importLibrary("marker");const{Place:n}=await google.maps.importLibrary("places");c.innerMap.setOptions({mapTypeControl:!1});const o=new n({id:"ChIJC8HakaIRkFQRiOgkgdHmqkk",requestedLanguage:"en"});await a.configureFromPlace(o);let i=p(a.place.location,-.005);c.innerMap.panTo(i),c.innerMap.setZoom(16),s.position=a.place.location,s.style.display="block",c.innerMap.addListener("click",async r=>{s.position=null,r.stop(),r.placeId?await a.configureFromPlace({id:r.placeId}):await a.configureFromLocation(r.latLng);let e=p(a.place.location,-.005);s.position=a.place.location,s.style.display="block",c.innerMap.panTo(e)})}function p(n,o){const i=n.lng()+o;return new google.maps.LatLng(n.lat(),i)}window.initMap=d; diff --git a/dist/samples/ui-kit-place-details/dist/index.html b/dist/samples/ui-kit-place-details/dist/index.html index 14358dc5..d087ba3c 100644 --- a/dist/samples/ui-kit-place-details/dist/index.html +++ b/dist/samples/ui-kit-place-details/dist/index.html @@ -9,7 +9,7 @@ Click on the map to view place details - + diff --git a/dist/samples/ui-kit-place-details/docs/index.js b/dist/samples/ui-kit-place-details/docs/index.js index eab563d3..44d75386 100644 --- a/dist/samples/ui-kit-place-details/docs/index.js +++ b/dist/samples/ui-kit-place-details/docs/index.js @@ -29,6 +29,7 @@ async function initMap() { map.innerMap.setZoom(16); marker.position = placeDetails.place.location; marker.style.display = 'block'; + marker.collisionBehavior = google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL; /* [START maps_ui_kit_place_details_event] */ // Add an event listener to handle map clicks. map.innerMap.addListener('click', async (event) => { diff --git a/dist/samples/ui-kit-place-details/docs/index.ts b/dist/samples/ui-kit-place-details/docs/index.ts index b1add48d..c18f0459 100644 --- a/dist/samples/ui-kit-place-details/docs/index.ts +++ b/dist/samples/ui-kit-place-details/docs/index.ts @@ -31,9 +31,9 @@ async function initMap(): Promise { let adjustedCenter = offsetLatLngRight(placeDetails.place.location, -0.005); map.innerMap.panTo(adjustedCenter); map.innerMap.setZoom(16); - marker.position = placeDetails.place.location; marker.style.display = 'block'; + marker.collisionBehavior = google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL; /* [START maps_ui_kit_place_details_event] */ // Add an event listener to handle map clicks. @@ -71,4 +71,4 @@ declare global { } window.initMap = initMap; /* [END maps_ui_kit_place_details] */ -export {}; \ No newline at end of file +export {}; diff --git a/dist/samples/ui-kit-place-details/jsfiddle/demo.js b/dist/samples/ui-kit-place-details/jsfiddle/demo.js index eab563d3..44d75386 100644 --- a/dist/samples/ui-kit-place-details/jsfiddle/demo.js +++ b/dist/samples/ui-kit-place-details/jsfiddle/demo.js @@ -29,6 +29,7 @@ async function initMap() { map.innerMap.setZoom(16); marker.position = placeDetails.place.location; marker.style.display = 'block'; + marker.collisionBehavior = google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL; /* [START maps_ui_kit_place_details_event] */ // Add an event listener to handle map clicks. map.innerMap.addListener('click', async (event) => {