File tree Expand file tree Collapse file tree 12 files changed +22
-19
lines changed
Expand file tree Collapse file tree 12 files changed +22
-19
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ <h1>Maps JSAPI Samples</h1>
4343 < li > < a href ='/samples/place-autocomplete-element/dist '> place-autocomplete-element</ a > </ li >
4444 < li > < a href ='/samples/place-autocomplete-map/dist '> place-autocomplete-map</ a > </ li >
4545 < li > < a href ='/samples/place-text-search/dist '> place-text-search</ a > </ li >
46+ < li > < a href ='/samples/test-example/dist '> test-example</ a > </ li >
4647 < li > < a href ='/samples/ui-kit-customization/dist '> ui-kit-customization</ a > </ li >
4748 < li > < a href ='/samples/ui-kit-place-details/dist '> ui-kit-place-details</ a > </ li >
4849 < li > < a href ='/samples/ui-kit-place-details-compact/dist '> ui-kit-place-details-compact</ a > </ li >
Original file line number Diff line number Diff line change 1414 </ head >
1515 < body >
1616 <!--[START maps_test_example_heading]-->
17- < h3 > My Google Maps Demo </ h3 >
17+ < h3 > Maps Test Example </ h3 >
1818 <!--[END maps_test_example_heading]-->
1919 <!--[START maps_test_example_body]-->
2020 < div id ="map "> </ div >
Original file line number Diff line number Diff line change 33 * Copyright 2025 Google LLC. All Rights Reserved.
44 * SPDX-License-Identifier: Apache-2.0
55 */
6- // TEST COMMENT 009
6+
77// [START maps_test_example]
88// Initialize and add the map.
99let map ;
1010async function initMap ( ) : Promise < void > {
1111 // [START maps_test_example_instantiate_map]
12- // The location of Uluru, Australia .
12+ // The location of Uluru.
1313 const position = { lat : - 25.344 , lng : 131.031 } ;
1414
1515 // Request the needed libraries.
@@ -18,7 +18,7 @@ async function initMap(): Promise<void> {
1818 const { AdvancedMarkerElement} =
1919 await google . maps . importLibrary ( 'marker' ) as google . maps . MarkerLibrary ;
2020
21- // The map, centered at Uluru, Australia .
21+ // The map, centered at Uluru.
2222 map = new Map ( document . getElementById ( 'map' ) as HTMLElement , {
2323 zoom : 4 ,
2424 center : position ,
Original file line number Diff line number Diff line change 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=." ,
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 " ,
66 "test" : " tsc && npm run build:vite --workspace=." ,
77 "start" : " tsc && vite build --base './' && vite" ,
88 "build:vite" : " vite build --base './'" ,
Original file line number Diff line number Diff line change 1414 </ head >
1515 < body >
1616 <!--[START maps_test_example_heading]-->
17- < h3 > My Google Maps Demo </ h3 >
17+ < h3 > Maps Test Example </ h3 >
1818 <!--[END maps_test_example_heading]-->
1919 <!--[START maps_test_example_body]-->
2020 < div id ="map "> </ div >
Original file line number Diff line number Diff line change 1414 </ head >
1515 < body >
1616 <!--[START maps_test_example_heading]-->
17- < h3 > My Google Maps Demo </ h3 >
17+ < h3 > Maps Test Example </ h3 >
1818 <!--[END maps_test_example_heading]-->
1919 <!--[START maps_test_example_body]-->
2020 < div id ="map "> </ div >
Original file line number Diff line number Diff line change 44 * Copyright 2025 Google LLC. All Rights Reserved.
55 * SPDX-License-Identifier: Apache-2.0
66 */
7- // TEST COMMENT 009
87// [START maps_test_example]
98// Initialize and add the map.
109let map ;
1110async function initMap ( ) {
1211 // [START maps_test_example_instantiate_map]
13- // The location of Uluru, Australia .
12+ // The location of Uluru.
1413 const position = { lat : - 25.344 , lng : 131.031 } ;
1514 // Request the needed libraries.
1615 const { Map } = await google . maps . importLibrary ( 'maps' ) ;
1716 const { AdvancedMarkerElement } = await google . maps . importLibrary ( 'marker' ) ;
18- // The map, centered at Uluru, Australia .
17+ // The map, centered at Uluru.
1918 map = new Map ( document . getElementById ( 'map' ) , {
2019 zoom : 4 ,
2120 center : position ,
Original file line number Diff line number Diff line change 33 * Copyright 2025 Google LLC. All Rights Reserved.
44 * SPDX-License-Identifier: Apache-2.0
55 */
6- // TEST COMMENT 009
6+
77// [START maps_test_example]
88// Initialize and add the map.
99let map ;
1010async function initMap ( ) : Promise < void > {
1111 // [START maps_test_example_instantiate_map]
12- // The location of Uluru, Australia .
12+ // The location of Uluru.
1313 const position = { lat : - 25.344 , lng : 131.031 } ;
1414
1515 // Request the needed libraries.
@@ -18,7 +18,7 @@ async function initMap(): Promise<void> {
1818 const { AdvancedMarkerElement} =
1919 await google . maps . importLibrary ( 'marker' ) as google . maps . MarkerLibrary ;
2020
21- // The map, centered at Uluru, Australia .
21+ // The map, centered at Uluru.
2222 map = new Map ( document . getElementById ( 'map' ) as HTMLElement , {
2323 zoom : 4 ,
2424 center : position ,
Original file line number Diff line number Diff line change 1414 </ head >
1515 < body >
1616
17- < h3 > My Google Maps Demo </ h3 >
17+ < h3 > Maps Test Example </ h3 >
1818
1919
2020 < div id ="map "> </ div >
Original file line number Diff line number Diff line change 44 * Copyright 2025 Google LLC. All Rights Reserved.
55 * SPDX-License-Identifier: Apache-2.0
66 */
7- // TEST COMMENT 009
87
98// Initialize and add the map.
109let map ;
1110async function initMap ( ) {
1211
13- // The location of Uluru, Australia .
12+ // The location of Uluru.
1413 const position = { lat : - 25.344 , lng : 131.031 } ;
1514 // Request the needed libraries.
1615 const { Map } = await google . maps . importLibrary ( 'maps' ) ;
1716 const { AdvancedMarkerElement } = await google . maps . importLibrary ( 'marker' ) ;
18- // The map, centered at Uluru, Australia .
17+ // The map, centered at Uluru.
1918 map = new Map ( document . getElementById ( 'map' ) , {
2019 zoom : 4 ,
2120 center : position ,
You can’t perform that action at this time.
0 commit comments