Skip to content

Commit b14d054

Browse files
Update dist folder [skip ci] (#979)
1 parent 5db20cc commit b14d054

File tree

9 files changed

+72
-34
lines changed

9 files changed

+72
-34
lines changed

dist/samples/js-api-loader-map/dist/assets/index-CtsZJvLO.js renamed to dist/samples/js-api-loader-map/dist/assets/index-t3cVcvuX.js

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

dist/samples/js-api-loader-map/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<!--
33
@license
4-
Copyright 2019 Google LLC. All Rights Reserved.
4+
Copyright 2025 Google LLC. All Rights Reserved.
55
SPDX-License-Identifier: Apache-2.0
66
-->
77
<!-- [START maps_js_api_loader_map] -->
@@ -10,7 +10,7 @@
1010
<title>@googlemaps/js-api-loader map</title>
1111
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
1212
<meta charset="utf-8">
13-
<script type="module" crossorigin src="./assets/index-CtsZJvLO.js"></script>
13+
<script type="module" crossorigin src="./assets/index-t3cVcvuX.js"></script>
1414
<link rel="stylesheet" crossorigin href="./assets/index-Wl6o4y82.css">
1515
</head>
1616
<body>

dist/samples/js-api-loader-map/docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<!--
33
@license
4-
Copyright 2019 Google LLC. All Rights Reserved.
4+
Copyright 2025 Google LLC. All Rights Reserved.
55
SPDX-License-Identifier: Apache-2.0
66
-->
77
<!-- [START maps_js_api_loader_map] -->
Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC. All Rights Reserved.
3+
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
// [START maps_js_api_loader_map]
7-
import { setOptions, importLibrary } from "@googlemaps/js-api-loader";
8-
const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8";
7+
// [START maps_js_api_loader_map_load]
8+
// Import the needed libraries.
9+
import { setOptions, importLibrary } from '@googlemaps/js-api-loader';
10+
// [END maps_js_api_loader_map_load]
11+
const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8';
912
async function initMap() {
10-
setOptions({ key: API_KEY });
11-
const { Map } = await importLibrary("maps");
13+
// [START maps_js_api_loader_map_options]
14+
// Set loader options.
15+
setOptions({
16+
key: API_KEY,
17+
v: 'weekly',
18+
});
19+
// [END maps_js_api_loader_map_options]
20+
// Load the Maps library.
21+
const { Map } = (await importLibrary('maps'));
22+
// Set map options.
1223
const mapOptions = {
1324
center: { lat: 48.8566, lng: 2.3522 },
1425
zoom: 3,
1526
};
16-
const map = new Map(document.getElementById("map"), mapOptions);
27+
// Declare the map.
28+
const map = new Map(document.getElementById('map'), mapOptions);
1729
}
1830
initMap();
1931
// [END maps_js_api_loader_map]
Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC. All Rights Reserved.
3+
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

77
// [START maps_js_api_loader_map]
8-
import { setOptions, importLibrary } from "@googlemaps/js-api-loader";
8+
// [START maps_js_api_loader_map_load]
9+
// Import the needed libraries.
10+
import { setOptions, importLibrary } from '@googlemaps/js-api-loader';
11+
// [END maps_js_api_loader_map_load]
912

10-
const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8";
13+
const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8';
1114

1215
async function initMap(): Promise<void> {
13-
setOptions({ key: API_KEY });
14-
15-
const { Map } = await importLibrary("maps") as google.maps.MapsLibrary;
16-
17-
const mapOptions = {
18-
center: { lat: 48.8566, lng: 2.3522 },
19-
zoom: 3,
20-
};
21-
22-
const map = new Map(document.getElementById("map") as HTMLElement, mapOptions);
23-
16+
// [START maps_js_api_loader_map_options]
17+
// Set loader options.
18+
setOptions({
19+
key: API_KEY,
20+
v: 'weekly',
21+
});
22+
// [END maps_js_api_loader_map_options]
23+
24+
// Load the Maps library.
25+
const { Map } = (await importLibrary('maps')) as google.maps.MapsLibrary;
26+
27+
// Set map options.
28+
const mapOptions = {
29+
center: { lat: 48.8566, lng: 2.3522 },
30+
zoom: 3,
31+
};
32+
33+
// Declare the map.
34+
const map = new Map(
35+
document.getElementById('map') as HTMLElement,
36+
mapOptions
37+
);
2438
}
2539

2640
initMap();
27-
// [END maps_js_api_loader_map]
41+
// [END maps_js_api_loader_map]

dist/samples/js-api-loader-map/docs/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC. All Rights Reserved.
3+
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
/* [START maps_js_api_loader_map] */

dist/samples/js-api-loader-map/jsfiddle/demo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC. All Rights Reserved.
3+
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

dist/samples/js-api-loader-map/jsfiddle/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<!--
33
@license
4-
Copyright 2019 Google LLC. All Rights Reserved.
4+
Copyright 2025 Google LLC. All Rights Reserved.
55
SPDX-License-Identifier: Apache-2.0
66
-->
77

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,31 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC. All Rights Reserved.
3+
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import { setOptions, importLibrary } from "@googlemaps/js-api-loader";
8-
const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8";
7+
8+
// Import the needed libraries.
9+
import { setOptions, importLibrary } from '@googlemaps/js-api-loader';
10+
11+
const API_KEY = 'AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8';
912
async function initMap() {
10-
setOptions({ key: API_KEY });
11-
const { Map } = await importLibrary("maps");
13+
14+
// Set loader options.
15+
setOptions({
16+
key: API_KEY,
17+
v: 'weekly',
18+
});
19+
20+
// Load the Maps library.
21+
const { Map } = (await importLibrary('maps'));
22+
// Set map options.
1223
const mapOptions = {
1324
center: { lat: 48.8566, lng: 2.3522 },
1425
zoom: 3,
1526
};
16-
const map = new Map(document.getElementById("map"), mapOptions);
27+
// Declare the map.
28+
const map = new Map(document.getElementById('map'), mapOptions);
1729
}
1830
initMap();
1931

0 commit comments

Comments
 (0)