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
1 change: 0 additions & 1 deletion dist/samples/add-map/app/.env

This file was deleted.

1 change: 0 additions & 1 deletion dist/samples/map-simple/app/.env

This file was deleted.

4 changes: 2 additions & 2 deletions dist/samples/map-simple/jsfiddle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- [START maps_map_simple] -->

<html>
<head>
<title>Simple Map</title>
Expand All @@ -30,4 +30,4 @@
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
</body>
</html>
<!-- [END maps_map_simple] -->

1 change: 0 additions & 1 deletion dist/samples/place-autocomplete-element/app/.env

This file was deleted.

4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-element/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function initMap(): Promise<void> {
// [START maps_place_autocomplete_element_listener]
// Add the gmp-placeselect listener, and display the results.
//@ts-ignore
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });

selectedPlaceTitle.textContent = 'Selected Place:';
Expand All @@ -51,4 +51,4 @@ async function initMap(): Promise<void> {

initMap();
// [END maps_place_autocomplete_element]
export { };
export { };
4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-element/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function initMap(): Promise<void> {
// [START maps_place_autocomplete_element_listener]
// Add the gmp-placeselect listener, and display the results.
//@ts-ignore
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });

selectedPlaceTitle.textContent = 'Selected Place:';
Expand All @@ -51,4 +51,4 @@ async function initMap(): Promise<void> {

initMap();
// [END maps_place_autocomplete_element]
export { };
export { };
4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-element/jsfiddle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Copyright 2019 Google LLC. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
-->
<!-- [START maps_place_autocomplete_element] -->

<html>
<head>
<title>Place Autocomplete element</title>
Expand All @@ -20,4 +20,4 @@
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
</body>
</html>
<!-- [END maps_place_autocomplete_element] -->

1 change: 0 additions & 1 deletion dist/samples/place-autocomplete-map/app/.env

This file was deleted.

4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-map/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function initMap(): Promise<void> {
// [START maps_place_autocomplete_map_listener]
// Add the gmp-placeselect listener, and display the results on the map.
//@ts-ignore
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });

// If the place has a geometry, then present it on a map.
Expand Down Expand Up @@ -90,4 +90,4 @@ function updateInfoWindow(content, center) {

initMap();
// [END maps_place_autocomplete_map]
export { };
export { };
4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-map/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function initMap(): Promise<void> {
// [START maps_place_autocomplete_map_listener]
// Add the gmp-placeselect listener, and display the results on the map.
//@ts-ignore
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });

// If the place has a geometry, then present it on a map.
Expand Down Expand Up @@ -90,4 +90,4 @@ function updateInfoWindow(content, center) {

initMap();
// [END maps_place_autocomplete_map]
export { };
export { };
4 changes: 2 additions & 2 deletions dist/samples/place-autocomplete-map/jsfiddle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Copyright 2019 Google LLC. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
-->
<!-- [START maps_place_autocomplete_map] -->

<html>
<head>
<title>Place Autocomplete map</title>
Expand All @@ -23,4 +23,4 @@
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
</body>
</html>
<!-- [END maps_place_autocomplete_map] -->

1 change: 0 additions & 1 deletion dist/samples/place-text-search/app/.env

This file was deleted.

4 changes: 2 additions & 2 deletions dist/samples/place-text-search/jsfiddle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- [START maps_place_text_search] -->

<html>
<head>
<title>Text Search</title>
Expand All @@ -30,4 +30,4 @@
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
</body>
</html>
<!-- [END maps_place_text_search] -->