File tree Expand file tree Collapse file tree 13 files changed +16
-21
lines changed
place-autocomplete-element Expand file tree Collapse file tree 13 files changed +16
-21
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1414 See the License for the specific language governing permissions and
1515 limitations under the License.
1616-->
17- <!-- [START maps_map_simple] -->
17+
1818< html >
1919 < head >
2020 < title > Simple Map</ title >
3030 ( { key : "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" , v : "weekly" } ) ; </ script >
3131 </ body >
3232</ html >
33- <!-- [END maps_map_simple] -->
33+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async function initMap(): Promise<void> {
3939 // [START maps_place_autocomplete_element_listener]
4040 // Add the gmp-placeselect listener, and display the results.
4141 //@ts -ignore
42- placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
42+ placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
4343 await place . fetchFields ( { fields : [ 'displayName' , 'formattedAddress' , 'location' ] } ) ;
4444
4545 selectedPlaceTitle . textContent = 'Selected Place:' ;
@@ -51,4 +51,4 @@ async function initMap(): Promise<void> {
5151
5252initMap ( ) ;
5353// [END maps_place_autocomplete_element]
54- export { } ;
54+ export { } ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async function initMap(): Promise<void> {
3939 // [START maps_place_autocomplete_element_listener]
4040 // Add the gmp-placeselect listener, and display the results.
4141 //@ts -ignore
42- placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
42+ placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
4343 await place . fetchFields ( { fields : [ 'displayName' , 'formattedAddress' , 'location' ] } ) ;
4444
4545 selectedPlaceTitle . textContent = 'Selected Place:' ;
@@ -51,4 +51,4 @@ async function initMap(): Promise<void> {
5151
5252initMap ( ) ;
5353// [END maps_place_autocomplete_element]
54- export { } ;
54+ export { } ;
Original file line number Diff line number Diff line change 44 Copyright 2019 Google LLC. All Rights Reserved.
55 SPDX-License-Identifier: Apache-2.0
66-->
7- <!-- [START maps_place_autocomplete_element] -->
7+
88< html >
99 < head >
1010 < title > Place Autocomplete element</ title >
2020 ( { key : "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8" , v : "beta" } ) ; </ script >
2121 </ body >
2222</ html >
23- <!-- [END maps_place_autocomplete_element] -->
23+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ async function initMap(): Promise<void> {
5555 // [START maps_place_autocomplete_map_listener]
5656 // Add the gmp-placeselect listener, and display the results on the map.
5757 //@ts -ignore
58- placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
58+ placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
5959 await place . fetchFields ( { fields : [ 'displayName' , 'formattedAddress' , 'location' ] } ) ;
6060
6161 // If the place has a geometry, then present it on a map.
@@ -90,4 +90,4 @@ function updateInfoWindow(content, center) {
9090
9191initMap ( ) ;
9292// [END maps_place_autocomplete_map]
93- export { } ;
93+ export { } ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ async function initMap(): Promise<void> {
5555 // [START maps_place_autocomplete_map_listener]
5656 // Add the gmp-placeselect listener, and display the results on the map.
5757 //@ts -ignore
58- placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
58+ placeAutocomplete . addEventListener ( 'gmp-placeselect' , async ( { place } ) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
5959 await place . fetchFields ( { fields : [ 'displayName' , 'formattedAddress' , 'location' ] } ) ;
6060
6161 // If the place has a geometry, then present it on a map.
@@ -90,4 +90,4 @@ function updateInfoWindow(content, center) {
9090
9191initMap ( ) ;
9292// [END maps_place_autocomplete_map]
93- export { } ;
93+ export { } ;
You can’t perform that action at this time.
0 commit comments