Skip to content

Commit 5cfc59e

Browse files
Update dist folder [skip ci] (#740)
1 parent 238549b commit 5cfc59e

File tree

10 files changed

+33
-17
lines changed

10 files changed

+33
-17
lines changed

dist/samples/routes-get-directions/app/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ async function initMap(): Promise<void> {
7676
};
7777
// [END maps_routes_get_directions_request_pluscode]
7878

79+
// [START maps_routes_get_directions_request_complete]
7980
// [START maps_routes_get_directions_request_simple]
8081
// Define a routes request.
8182
const request = {
@@ -87,14 +88,10 @@ async function initMap(): Promise<void> {
8788
// [END maps_routes_get_directions_request_simple]
8889

8990
// Call computeRoutes to get the directions.
90-
//@ts-ignore
9191
// [START maps_routes_get_directions_compute]
9292
const {routes, fallbackInfo, geocodingResults} = await Route.computeRoutes(request);
9393
// [END maps_routes_get_directions_compute]
9494

95-
// Display the raw JSON for the result in the console.
96-
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
97-
9895
// [START maps_routes_get_directions_polyline]
9996
// Use createPolylines to create polylines for the route.
10097
mapPolylines = routes[0].createPolylines();
@@ -106,7 +103,12 @@ async function initMap(): Promise<void> {
106103
// Add markers to the map
107104
markers.forEach((marker) => marker.setMap(map));
108105
// [END maps_routes_get_directions_polyline]
106+
// [END maps_routes_get_directions_request_complete]
107+
108+
// Display the raw JSON for the result in the console.
109+
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
109110

111+
// Fit the map to the path.
110112
fitMapToPath(routes[0].path!);
111113
}
112114

dist/samples/routes-get-directions/dist/assets/index-CQ7LYNHt.js renamed to dist/samples/routes-get-directions/dist/assets/index-CXMSbPFr.js

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

dist/samples/routes-get-directions/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<head>
1010
<title>Get directions</title>
1111

12-
<script type="module" crossorigin src="./assets/index-CQ7LYNHt.js"></script>
12+
<script type="module" crossorigin src="./assets/index-CXMSbPFr.js"></script>
1313
<link rel="stylesheet" crossorigin href="./assets/index-kz-ac4rW.css">
1414
</head>
1515
<body>

dist/samples/routes-get-directions/docs/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ async function initMap() {
6767
fields: ['path'],
6868
};
6969
// [END maps_routes_get_directions_request_pluscode]
70+
// [START maps_routes_get_directions_request_complete]
7071
// [START maps_routes_get_directions_request_simple]
7172
// Define a routes request.
7273
const request = {
@@ -77,12 +78,9 @@ async function initMap() {
7778
};
7879
// [END maps_routes_get_directions_request_simple]
7980
// Call computeRoutes to get the directions.
80-
//@ts-ignore
8181
// [START maps_routes_get_directions_compute]
8282
const { routes, fallbackInfo, geocodingResults } = await Route.computeRoutes(request);
8383
// [END maps_routes_get_directions_compute]
84-
// Display the raw JSON for the result in the console.
85-
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
8684
// [START maps_routes_get_directions_polyline]
8785
// Use createPolylines to create polylines for the route.
8886
mapPolylines = routes[0].createPolylines();
@@ -93,6 +91,10 @@ async function initMap() {
9391
// Add markers to the map
9492
markers.forEach((marker) => marker.setMap(map));
9593
// [END maps_routes_get_directions_polyline]
94+
// [END maps_routes_get_directions_request_complete]
95+
// Display the raw JSON for the result in the console.
96+
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
97+
// Fit the map to the path.
9698
fitMapToPath(routes[0].path);
9799
}
98100
// Helper function to fit the map to the path.

dist/samples/routes-get-directions/docs/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ async function initMap(): Promise<void> {
7676
};
7777
// [END maps_routes_get_directions_request_pluscode]
7878

79+
// [START maps_routes_get_directions_request_complete]
7980
// [START maps_routes_get_directions_request_simple]
8081
// Define a routes request.
8182
const request = {
@@ -87,14 +88,10 @@ async function initMap(): Promise<void> {
8788
// [END maps_routes_get_directions_request_simple]
8889

8990
// Call computeRoutes to get the directions.
90-
//@ts-ignore
9191
// [START maps_routes_get_directions_compute]
9292
const {routes, fallbackInfo, geocodingResults} = await Route.computeRoutes(request);
9393
// [END maps_routes_get_directions_compute]
9494

95-
// Display the raw JSON for the result in the console.
96-
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
97-
9895
// [START maps_routes_get_directions_polyline]
9996
// Use createPolylines to create polylines for the route.
10097
mapPolylines = routes[0].createPolylines();
@@ -106,7 +103,12 @@ async function initMap(): Promise<void> {
106103
// Add markers to the map
107104
markers.forEach((marker) => marker.setMap(map));
108105
// [END maps_routes_get_directions_polyline]
106+
// [END maps_routes_get_directions_request_complete]
107+
108+
// Display the raw JSON for the result in the console.
109+
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
109110

111+
// Fit the map to the path.
110112
fitMapToPath(routes[0].path!);
111113
}
112114

dist/samples/routes-get-directions/jsfiddle/demo.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ async function initMap() {
6868
};
6969

7070

71+
7172
// Define a routes request.
7273
const request = {
7374
origin: 'Mountain View, CA',
@@ -77,12 +78,9 @@ async function initMap() {
7778
};
7879

7980
// Call computeRoutes to get the directions.
80-
//@ts-ignore
8181

8282
const { routes, fallbackInfo, geocodingResults } = await Route.computeRoutes(request);
8383

84-
// Display the raw JSON for the result in the console.
85-
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
8684

8785
// Use createPolylines to create polylines for the route.
8886
mapPolylines = routes[0].createPolylines();
@@ -93,6 +91,10 @@ async function initMap() {
9391
// Add markers to the map
9492
markers.forEach((marker) => marker.setMap(map));
9593

94+
95+
// Display the raw JSON for the result in the console.
96+
console.log(`Response:\n ${JSON.stringify(routes, null, 2)}`);
97+
// Fit the map to the path.
9698
fitMapToPath(routes[0].path);
9799
}
98100
// Helper function to fit the map to the path.

dist/samples/routes-route-matrix/app/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@ async function initMap(): Promise<void> {
4848
destinationB.fetchFields({ fields: ['location', 'displayName']}),
4949
]);
5050

51+
// [START maps_routes_route_matrix_request]
5152
const request = {
5253
origins: [origin1, origin2],
5354
destinations: [destinationA, destinationB],
5455
travelMode: 'DRIVING',
5556
units: google.maps.UnitSystem.METRIC,
5657
fields: ['distanceMeters', 'durationMillis', 'condition'],
5758
};
59+
// [END maps_routes_route_matrix_request]
5860

5961
// Show the request.
6062
(document.getElementById("request") as HTMLDivElement).innerText =

dist/samples/routes-route-matrix/docs/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ async function initMap() {
4343
destinationA.fetchFields({ fields: ['location', 'displayName'] }),
4444
destinationB.fetchFields({ fields: ['location', 'displayName'] }),
4545
]);
46+
// [START maps_routes_route_matrix_request]
4647
const request = {
4748
origins: [origin1, origin2],
4849
destinations: [destinationA, destinationB],
4950
travelMode: 'DRIVING',
5051
units: google.maps.UnitSystem.METRIC,
5152
fields: ['distanceMeters', 'durationMillis', 'condition'],
5253
};
54+
// [END maps_routes_route_matrix_request]
5355
// Show the request.
5456
document.getElementById("request").innerText =
5557
JSON.stringify(request, null, 2);

dist/samples/routes-route-matrix/docs/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@ async function initMap(): Promise<void> {
4848
destinationB.fetchFields({ fields: ['location', 'displayName']}),
4949
]);
5050

51+
// [START maps_routes_route_matrix_request]
5152
const request = {
5253
origins: [origin1, origin2],
5354
destinations: [destinationA, destinationB],
5455
travelMode: 'DRIVING',
5556
units: google.maps.UnitSystem.METRIC,
5657
fields: ['distanceMeters', 'durationMillis', 'condition'],
5758
};
59+
// [END maps_routes_route_matrix_request]
5860

5961
// Show the request.
6062
(document.getElementById("request") as HTMLDivElement).innerText =

dist/samples/routes-route-matrix/jsfiddle/demo.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ async function initMap() {
4343
destinationA.fetchFields({ fields: ['location', 'displayName'] }),
4444
destinationB.fetchFields({ fields: ['location', 'displayName'] }),
4545
]);
46+
4647
const request = {
4748
origins: [origin1, origin2],
4849
destinations: [destinationA, destinationB],
4950
travelMode: 'DRIVING',
5051
units: google.maps.UnitSystem.METRIC,
5152
fields: ['distanceMeters', 'durationMillis', 'condition'],
5253
};
54+
5355
// Show the request.
5456
document.getElementById("request").innerText =
5557
JSON.stringify(request, null, 2);

0 commit comments

Comments
 (0)