Skip to content

Commit 2cc7a5b

Browse files
Update dist folder [skip ci] (#964)
1 parent 91ea54e commit 2cc7a5b

File tree

39 files changed

+1284
-1177
lines changed

39 files changed

+1284
-1177
lines changed

dist/samples/place-autocomplete-element/app/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Google Maps JavaScript Sample
22

3-
This sample is generated from @googlemaps/js-samples located at
4-
https://github.com/googlemaps-samples/js-api-samples.
3+
## place-autocomplete-element
4+
5+
The place-autocomplete-element sample demonstrates how to use the Place Autocomplete element.
6+
7+
Follow these instructions to set up and run place-autocomplete-element sample on your local computer.
58

69
## Setup
710

@@ -19,7 +22,7 @@ First `cd` to the folder for the sample to run, then:
1922

2023
From `samples/`:
2124

22-
`npm run build --workspace=sample-name/`
25+
`npm run build --workspace=place-autocomplete-element/`
2326

2427
### Build all of the examples.
2528

@@ -30,4 +33,4 @@ From `samples/`:
3033
## Feedback
3134

3235
For feedback related to this sample, please open a new issue on
33-
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
36+
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).

dist/samples/place-autocomplete-element/app/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
async function initMap(): Promise<void> {
99
// [START maps_place_autocomplete_element_add]
1010
// Request needed libraries.
11-
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
11+
(await google.maps.importLibrary('places')) as google.maps.PlacesLibrary;
1212
// Create the input HTML element, and append it.
13-
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
13+
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(
14+
{}
15+
);
1416
document.body.appendChild(placeAutocomplete);
1517
// [END maps_place_autocomplete_element_add]
1618

@@ -25,6 +27,7 @@ async function initMap(): Promise<void> {
2527

2628
// [START maps_place_autocomplete_element_listener]
2729
// Add the gmp-placeselect listener, and display the results.
30+
//prettier-ignore
2831
//@ts-ignore
2932
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
3033
const place = placePrediction.toPlace();

dist/samples/place-autocomplete-element/dist/assets/index-D9iSq2zC.js renamed to dist/samples/place-autocomplete-element/dist/assets/index-BOKk2IBi.js

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/samples/place-autocomplete-element/dist/assets/index-BY0NZIga.css

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#map{height:100%}html,body{height:100%;margin:0;padding:0}p{font-family:Roboto,sans-serif;font-weight:700}

dist/samples/place-autocomplete-element/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<head>
1010
<title>Place Autocomplete element</title>
1111

12-
<script type="module" crossorigin src="./assets/index-D9iSq2zC.js"></script>
13-
<link rel="stylesheet" crossorigin href="./assets/index-BY0NZIga.css">
12+
<script type="module" crossorigin src="./assets/index-BOKk2IBi.js"></script>
13+
<link rel="stylesheet" crossorigin href="./assets/index-CaT-T0ot.css">
1414
</head>
1515
<body>
1616
<p style="font-family: roboto, sans-serif">Search for a place here:</p>

dist/samples/place-autocomplete-element/docs/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
async function initMap() {
99
// [START maps_place_autocomplete_element_add]
1010
// Request needed libraries.
11-
await google.maps.importLibrary("places");
11+
(await google.maps.importLibrary('places'));
1212
// Create the input HTML element, and append it.
1313
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
1414
document.body.appendChild(placeAutocomplete);
@@ -22,6 +22,7 @@ async function initMap() {
2222
document.body.appendChild(selectedPlaceInfo);
2323
// [START maps_place_autocomplete_element_listener]
2424
// Add the gmp-placeselect listener, and display the results.
25+
//prettier-ignore
2526
//@ts-ignore
2627
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
2728
const place = placePrediction.toPlace();

dist/samples/place-autocomplete-element/docs/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
async function initMap(): Promise<void> {
99
// [START maps_place_autocomplete_element_add]
1010
// Request needed libraries.
11-
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
11+
(await google.maps.importLibrary('places')) as google.maps.PlacesLibrary;
1212
// Create the input HTML element, and append it.
13-
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
13+
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(
14+
{}
15+
);
1416
document.body.appendChild(placeAutocomplete);
1517
// [END maps_place_autocomplete_element_add]
1618

@@ -25,6 +27,7 @@ async function initMap(): Promise<void> {
2527

2628
// [START maps_place_autocomplete_element_listener]
2729
// Add the gmp-placeselect listener, and display the results.
30+
//prettier-ignore
2831
//@ts-ignore
2932
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
3033
const place = placePrediction.toPlace();

dist/samples/place-autocomplete-element/jsfiddle/demo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
async function initMap() {
99

1010
// Request needed libraries.
11-
await google.maps.importLibrary("places");
11+
(await google.maps.importLibrary('places'));
1212
// Create the input HTML element, and append it.
1313
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
1414
document.body.appendChild(placeAutocomplete);
@@ -22,6 +22,7 @@ async function initMap() {
2222
document.body.appendChild(selectedPlaceInfo);
2323

2424
// Add the gmp-placeselect listener, and display the results.
25+
//prettier-ignore
2526
//@ts-ignore
2627
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
2728
const place = placePrediction.toPlace();

dist/samples/place-autocomplete-map/app/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Google Maps JavaScript Sample
22

3-
This sample is generated from @googlemaps/js-samples located at
4-
https://github.com/googlemaps-samples/js-api-samples.
3+
## place-autocomplete-map
4+
5+
The place-autocomplete-map sample demonstrates how to use Place Autocomplete with a map.
6+
7+
Follow these instructions to set up and run place-autocomplete-map sample on your local computer.
58

69
## Setup
710

@@ -19,7 +22,7 @@ First `cd` to the folder for the sample to run, then:
1922

2023
From `samples/`:
2124

22-
`npm run build --workspace=sample-name/`
25+
`npm run build --workspace=place-autocomplete-map/`
2326

2427
### Build all of the examples.
2528

@@ -30,4 +33,4 @@ From `samples/`:
3033
## Feedback
3134

3235
For feedback related to this sample, please open a new issue on
33-
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
36+
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).

0 commit comments

Comments
 (0)