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: 1 addition & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h1>Maps JSAPI Samples</h1>
<li><a href='/samples/place-autocomplete-element/dist'>place-autocomplete-element</a></li>
<li><a href='/samples/place-autocomplete-map/dist'>place-autocomplete-map</a></li>
<li><a href='/samples/place-text-search/dist'>place-text-search</a></li>
<li><a href='/samples/test-example/dist'>test-example</a></li>
<li><a href='/samples/ui-kit-customization/dist'>ui-kit-customization</a></li>
<li><a href='/samples/ui-kit-place-details/dist'>ui-kit-place-details</a></li>
<li><a href='/samples/ui-kit-place-details-compact/dist'>ui-kit-place-details-compact</a></li>
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/test-example/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>
<body>
<!--[START maps_test_example_heading]-->
<h3>My Google Maps Demo</h3>
<h3>Maps Test Example</h3>
<!--[END maps_test_example_heading]-->
<!--[START maps_test_example_body]-->
<div id="map"></div>
Expand Down
6 changes: 3 additions & 3 deletions dist/samples/test-example/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// TEST COMMENT 009

// [START maps_test_example]
// Initialize and add the map.
let map;
async function initMap(): Promise<void> {
// [START maps_test_example_instantiate_map]
// The location of Uluru, Australia.
// The location of Uluru.
const position = {lat: -25.344, lng: 131.031};

// Request the needed libraries.
Expand All @@ -18,7 +18,7 @@ async function initMap(): Promise<void> {
const {AdvancedMarkerElement} =
await google.maps.importLibrary('marker') as google.maps.MarkerLibrary;

// The map, centered at Uluru, Australia.
// The map, centered at Uluru.
map = new Map(document.getElementById('map') as HTMLElement, {
zoom: 4,
center: position,
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/test-example/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@js-api-samples/test-example",
"version": "1.0.0",
"scripts": {
"build": "tsc && bash ../jsfiddle.sh test-example && bash ../app.sh test-example && bash ../docs.sh test-example && npm run build:vite --workspace=.",
"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",
"test": "tsc && npm run build:vite --workspace=.",
"start": "tsc && vite build --base './' && vite",
"build:vite": "vite build --base './'",
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/test-example/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>
<body>
<!--[START maps_test_example_heading]-->
<h3>My Google Maps Demo</h3>
<h3>Maps Test Example</h3>
<!--[END maps_test_example_heading]-->
<!--[START maps_test_example_body]-->
<div id="map"></div>
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/test-example/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>
<body>
<!--[START maps_test_example_heading]-->
<h3>My Google Maps Demo</h3>
<h3>Maps Test Example</h3>
<!--[END maps_test_example_heading]-->
<!--[START maps_test_example_body]-->
<div id="map"></div>
Expand Down
5 changes: 2 additions & 3 deletions dist/samples/test-example/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// TEST COMMENT 009
// [START maps_test_example]
// Initialize and add the map.
let map;
async function initMap() {
// [START maps_test_example_instantiate_map]
// The location of Uluru, Australia.
// The location of Uluru.
const position = { lat: -25.344, lng: 131.031 };
// Request the needed libraries.
const { Map } = await google.maps.importLibrary('maps');
const { AdvancedMarkerElement } = await google.maps.importLibrary('marker');
// The map, centered at Uluru, Australia.
// The map, centered at Uluru.
map = new Map(document.getElementById('map'), {
zoom: 4,
center: position,
Expand Down
6 changes: 3 additions & 3 deletions dist/samples/test-example/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// TEST COMMENT 009

// [START maps_test_example]
// Initialize and add the map.
let map;
async function initMap(): Promise<void> {
// [START maps_test_example_instantiate_map]
// The location of Uluru, Australia.
// The location of Uluru.
const position = {lat: -25.344, lng: 131.031};

// Request the needed libraries.
Expand All @@ -18,7 +18,7 @@ async function initMap(): Promise<void> {
const {AdvancedMarkerElement} =
await google.maps.importLibrary('marker') as google.maps.MarkerLibrary;

// The map, centered at Uluru, Australia.
// The map, centered at Uluru.
map = new Map(document.getElementById('map') as HTMLElement, {
zoom: 4,
center: position,
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/test-example/jsfiddle/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>
<body>

<h3>My Google Maps Demo</h3>
<h3>Maps Test Example</h3>


<div id="map"></div>
Expand Down
5 changes: 2 additions & 3 deletions dist/samples/test-example/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@
* Copyright 2025 Google LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
// TEST COMMENT 009

// Initialize and add the map.
let map;
async function initMap() {

// The location of Uluru, Australia.
// The location of Uluru.
const position = { lat: -25.344, lng: 131.031 };
// Request the needed libraries.
const { Map } = await google.maps.importLibrary('maps');
const { AdvancedMarkerElement } = await google.maps.importLibrary('marker');
// The map, centered at Uluru, Australia.
// The map, centered at Uluru.
map = new Map(document.getElementById('map'), {
zoom: 4,
center: position,
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ <h1>Maps JSAPI Samples</h1>
<li><a href='/samples/place-autocomplete-element/dist'>place-autocomplete-element</a></li>
<li><a href='/samples/place-autocomplete-map/dist'>place-autocomplete-map</a></li>
<li><a href='/samples/place-text-search/dist'>place-text-search</a></li>
<li><a href='/samples/test-example/dist'>test-example</a></li>
<li><a href='/samples/ui-kit-customization/dist'>ui-kit-customization</a></li>
<li><a href='/samples/ui-kit-place-details/dist'>ui-kit-place-details</a></li>
<li><a href='/samples/ui-kit-place-details-compact/dist'>ui-kit-place-details-compact</a></li>
Expand Down
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.