Skip to content

Commit cae5f5c

Browse files
Update dist folder [skip ci] (#518)
Co-authored-by: William French <[email protected]>
1 parent b812b54 commit cae5f5c

File tree

9 files changed

+73
-5
lines changed

9 files changed

+73
-5
lines changed

dist/samples/test-example/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
// TEST COMMENT 005
6+
// TEST COMMENT 006
77
// [START maps_test_example]
88
// Initialize and add the map.
99
let map;

dist/samples/test-example/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@js-api-samples/test-example",
33
"version": "1.0.0",
44
"scripts": {
5-
"build": "tsc && bash ../jsfiddle.sh test-example && bash ../app.sh test-example && bash ../docs.sh test-example && npm run build:vite --workspace=. && bash ../dist.sh test-example",
5+
"build": "tsc && bash ../jsfiddle.sh test-example && bash ../app.sh test-example && bash ../docs.sh test-example && npm run build:vite --workspace=.",
66
"test": "tsc && npm run build:vite --workspace=.",
77
"start": "tsc && vite build --base './' && vite",
88
"build:vite": "vite build --base './'",

dist/samples/test-example/docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright 2025 Google LLC. All Rights Reserved.
55
* SPDX-License-Identifier: Apache-2.0
66
*/
7-
// TEST COMMENT 005
7+
// TEST COMMENT 006
88
// [START maps_test_example]
99
// Initialize and add the map.
1010
let map;

dist/samples/test-example/docs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
// TEST COMMENT 005
6+
// TEST COMMENT 006
77
// [START maps_test_example]
88
// Initialize and add the map.
99
let map;

dist/samples/test-example/jsfiddle/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright 2025 Google LLC. All Rights Reserved.
55
* SPDX-License-Identifier: Apache-2.0
66
*/
7-
// TEST COMMENT 005
7+
// TEST COMMENT 006
88

99
// Initialize and add the map.
1010
let map;

samples/test-example/dist/assets/index-35dha72j.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/*
2+
* @license
3+
* Copyright 2025 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/#map{height:100%}html,body{height:100%;margin:0;padding:0}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright 2025 Google LLC. All Rights Reserved.
5+
SPDX-License-Identifier: Apache-2.0
6+
-->
7+
<!--[START maps_test_example]-->
8+
<html>
9+
<head>
10+
<title>Add a Map</title>
11+
12+
<script type="module" crossorigin src="./assets/index-35dha72j.js"></script>
13+
<link rel="stylesheet" crossorigin href="./assets/index-kz-ac4rW.css">
14+
</head>
15+
<body>
16+
<!--[START maps_test_example_heading]-->
17+
<h3>My Google Maps Demo</h3>
18+
<!--[END maps_test_example_heading]-->
19+
<!--[START maps_test_example_body]-->
20+
<div id="map"></div>
21+
<!--[END maps_test_example_body]-->
22+
<!-- prettier-ignore -->
23+
<script>(g=>{var h,a,k,p="The Google Maps JavaScript API",c="google",l="importLibrary",q="__ib__",m=document,b=window;b=b[c]||(b[c]={});var d=b.maps||(b.maps={}),r=new Set,e=new URLSearchParams,u=()=>h||(h=new Promise(async(f,n)=>{await (a=m.createElement("script"));e.set("libraries",[...r]+"");for(k in g)e.set(k.replace(/[A-Z]/g,t=>"_"+t[0].toLowerCase()),g[k]);e.set("callback",c+".maps."+q);a.src=`https://maps.${c}apis.com/maps/api/js?`+e;d[q]=f;a.onerror=()=>h=n(Error(p+" could not load."));a.nonce=m.querySelector("script[nonce]")?.nonce||"";m.head.append(a)}));d[l]?console.warn(p+" only loads once. Ignoring:",g):d[l]=(f,...n)=>r.add(f)&&u().then(()=>d[l](f,...n))})
24+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
25+
</body>
26+
</html>
27+
<!--[END maps_test_example]-->

samples/test-example/index.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"use strict";
2+
/*
3+
* @license
4+
* Copyright 2025 Google LLC. All Rights Reserved.
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
// TEST COMMENT 006
8+
// [START maps_test_example]
9+
// Initialize and add the map.
10+
let map;
11+
async function initMap() {
12+
// [START maps_test_example_instantiate_map]
13+
// The location of Uluru, Australia.
14+
const position = { lat: -25.344, lng: 131.031 };
15+
// Request the needed libraries.
16+
const { Map } = await google.maps.importLibrary('maps');
17+
const { AdvancedMarkerElement } = await google.maps.importLibrary('marker');
18+
// The map, centered at Uluru, Australia.
19+
map = new Map(document.getElementById('map'), {
20+
zoom: 4,
21+
center: position,
22+
mapId: 'DEMO_MAP_ID',
23+
});
24+
// [END maps_test_example_instantiate_map]
25+
// [START maps_test_example_instantiate_marker]
26+
// The marker, positioned at Uluru.
27+
const marker = new AdvancedMarkerElement({ map, position, title: 'Uluru' });
28+
// [END maps_test_example_instantiate_marker]
29+
}
30+
initMap();
31+
// [END maps_test_example]

0 commit comments

Comments
 (0)