File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
samples/place-autocomplete-map Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1616 ( { key : "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" , v : "weekly" } ) ; </ script >
1717 </ head >
1818 < body >
19+ <!-- [START maps_place_autocomplete_map_add] -->
1920 < gmp-map center ="40.749933,-73.98633 " zoom ="13 " map-id ="DEMO_MAP_ID ">
2021 < div
2122 class ="place-autocomplete-card "
2425 < gmp-place-autocomplete > </ gmp-place-autocomplete >
2526 </ div >
2627 </ gmp-map >
28+ <!-- [END maps_place_autocomplete_map_add]-->
2729 </ body >
2830</ html >
2931<!-- [END maps_place_autocomplete_map] -->
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ async function initMap(): Promise<void> {
2020 google . maps . importLibrary ( 'places' ) ,
2121 ] ) ;
2222
23- // [START maps_place_autocomplete_map_add]
2423 // Get the inner map.
2524 innerMap = mapElement . innerMap ;
2625 innerMap . setOptions ( {
@@ -31,7 +30,6 @@ async function initMap(): Promise<void> {
3130 google . maps . event . addListener ( innerMap , 'bounds_changed' , async ( ) => {
3231 placeAutocomplete . locationRestriction = innerMap . getBounds ( ) ;
3332 } ) ;
34- // [END maps_place_autocomplete_map_add]
3533
3634 // Create the marker and infowindow.
3735 marker = new google . maps . marker . AdvancedMarkerElement ( {
You can’t perform that action at this time.
0 commit comments