|
| 1 | +<!-- |
| 2 | + @license |
| 3 | + Copyright 2025 Google LLC. All Rights Reserved. |
| 4 | + SPDX-License-Identifier: Apache-2.0 |
| 5 | +--> |
| 6 | +<!--[START maps_ui_kit_place_details_compact] --> |
| 7 | +<!DOCTYPE html> |
| 8 | +<html> |
| 9 | + <head> |
| 10 | + <title>Click on the map to view place details</title> |
| 11 | + <meta charset="utf-8"> |
| 12 | + <link rel="stylesheet" href="style.css"> |
| 13 | + <script type="module" src="./index.js"></script> |
| 14 | + </head> |
| 15 | + <body> |
| 16 | + <!--[START maps_ui_kit_place_details_compact_container]--> |
| 17 | + <gmp-map center="47.75972, -122.25094" zoom="19" map-id="DEMO_MAP_ID"> |
| 18 | + <div class="widget-container" slot="control-inline-start-block-start"> |
| 19 | + <gmp-place-details-compact orientation = "horizontal"> |
| 20 | + <!--[START maps_ui_kit_place_details_compact_request]--> |
| 21 | + <gmp-place-details-place-request place = "ChIJC8HakaIRkFQRiOgkgdHmqkk"></gmp-place-details-place-request> |
| 22 | + <!--[END maps_ui_kit_place_details_compact_request]--> |
| 23 | + <!--[START maps_ui_kit_place_details_compact_config]--> |
| 24 | + <gmp-place-content-config> |
| 25 | + <gmp-place-media lightbox-preferred></gmp-place-media> |
| 26 | + <gmp-place-address></gmp-place-address> |
| 27 | + <gmp-place-rating></gmp-place-rating> |
| 28 | + <gmp-place-type></gmp-place-type> |
| 29 | + <gmp-place-price></gmp-place-price> |
| 30 | + <gmp-place-accessible-entrance-icon></gmp-place-accessible-entrance-icon> |
| 31 | + <gmp-place-open-now-status></gmp-place-open-now-status> |
| 32 | + <gmp-place-attribution light-scheme-color="gray" dark-scheme-color="white"></gmp-place-attribution> |
| 33 | + </gmp-place-content-config> |
| 34 | + <!--[END maps_ui_kit_place_details_compact_config]--> |
| 35 | + </gmp-place-details-compact> |
| 36 | + </div> |
| 37 | + <gmp-advanced-marker></gmp-advanced-marker> |
| 38 | + </gmp-map> |
| 39 | + <!--[END maps_ui_kit_place_details_compact_container]--> |
| 40 | + <script>(g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))}) |
| 41 | + ({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script> |
| 42 | + </body> |
| 43 | +</html> |
| 44 | +<!--[END maps_ui_kit_place_details_compact] --> |
0 commit comments