Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions samples/place-autocomplete-map/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
</head>
<body>
<!-- [START maps_place_autocomplete_map_add] -->
<gmp-map center="40.749933,-73.98633" zoom="13" map-id="DEMO_MAP_ID">
<div
class="place-autocomplete-card"
Expand All @@ -24,6 +25,7 @@
<gmp-place-autocomplete></gmp-place-autocomplete>
</div>
</gmp-map>
<!-- [END maps_place_autocomplete_map_add]-->
</body>
</html>
<!-- [END maps_place_autocomplete_map] -->
2 changes: 0 additions & 2 deletions samples/place-autocomplete-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async function initMap(): Promise<void> {
google.maps.importLibrary('places'),
]);

// [START maps_place_autocomplete_map_add]
// Get the inner map.
innerMap = mapElement.innerMap;
innerMap.setOptions({
Expand All @@ -31,7 +30,6 @@ async function initMap(): Promise<void> {
google.maps.event.addListener(innerMap, 'bounds_changed', async () => {
placeAutocomplete.locationRestriction = innerMap.getBounds();
});
// [END maps_place_autocomplete_map_add]

// Create the marker and infowindow.
marker = new google.maps.marker.AdvancedMarkerElement({
Expand Down