Skip to content

Commit 0c39087

Browse files
authored
feat: Adds text placeholder for AC widget. (#1026)
1 parent 43bdd81 commit 0c39087

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

samples/place-autocomplete-map/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<div
2222
class="place-autocomplete-card"
2323
slot="control-inline-start-block-start">
24-
<p>Search for a place here:</p>
2524
<gmp-place-autocomplete></gmp-place-autocomplete>
2625
</div>
2726
</gmp-map>

samples/place-autocomplete-map/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ async function initMap(): Promise<void> {
2626
mapTypeControl: false,
2727
});
2828

29+
//@ts-ignore
30+
placeAutocomplete.placeholder = 'Search for a place...';
31+
2932
// Use the bounds_changed event to restrict results to the current map bounds.
3033
google.maps.event.addListener(innerMap, 'bounds_changed', async () => {
3134
placeAutocomplete.locationRestriction = innerMap.getBounds();

0 commit comments

Comments
 (0)