File tree Expand file tree Collapse file tree 6 files changed +6
-14
lines changed
dist/samples/place-autocomplete-element Expand file tree Collapse file tree 6 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ async function initMap(): Promise<void> {
1010 // Request needed libraries.
1111 await google . maps . importLibrary ( "places" ) as google . maps . PlacesLibrary ;
1212 // Create the input HTML element, and append it.
13- //@ts -ignore
14- const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( ) ;
15- //@ts -ignore
13+ const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( { } ) ;
1614 document . body . appendChild ( placeAutocomplete ) ;
1715 // [END maps_place_autocomplete_element_add]
1816
Original file line number Diff line number Diff line change 99 < head >
1010 < title > Place Autocomplete element</ title >
1111
12- < script type ="module " crossorigin src ="./assets/index-Bw-JdENR .js "> </ script >
12+ < script type ="module " crossorigin src ="./assets/index-D9iSq2zC .js "> </ script >
1313 < link rel ="stylesheet " crossorigin href ="./assets/index-BY0NZIga.css ">
1414 </ head >
1515 < body >
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ async function initMap() {
1010 // Request needed libraries.
1111 await google . maps . importLibrary ( "places" ) ;
1212 // Create the input HTML element, and append it.
13- //@ts -ignore
14- const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( ) ;
15- //@ts -ignore
13+ const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( { } ) ;
1614 document . body . appendChild ( placeAutocomplete ) ;
1715 // [END maps_place_autocomplete_element_add]
1816 // Inject HTML UI.
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ async function initMap(): Promise<void> {
1010 // Request needed libraries.
1111 await google . maps . importLibrary ( "places" ) as google . maps . PlacesLibrary ;
1212 // Create the input HTML element, and append it.
13- //@ts -ignore
14- const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( ) ;
15- //@ts -ignore
13+ const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( { } ) ;
1614 document . body . appendChild ( placeAutocomplete ) ;
1715 // [END maps_place_autocomplete_element_add]
1816
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ async function initMap() {
1010 // Request needed libraries.
1111 await google . maps . importLibrary ( "places" ) ;
1212 // Create the input HTML element, and append it.
13- //@ts -ignore
14- const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( ) ;
15- //@ts -ignore
13+ const placeAutocomplete = new google . maps . places . PlaceAutocompleteElement ( { } ) ;
1614 document . body . appendChild ( placeAutocomplete ) ;
1715
1816 // Inject HTML UI.
You can’t perform that action at this time.
0 commit comments