diff --git a/dist/index.html b/dist/index.html index ba940676..d5f0f220 100644 --- a/dist/index.html +++ b/dist/index.html @@ -43,6 +43,7 @@

Maps JSAPI Samples

  • place-autocomplete-element
  • place-autocomplete-map
  • place-text-search
  • +
  • test-example
  • ui-kit-customization
  • ui-kit-place-details
  • ui-kit-place-details-compact
  • diff --git a/dist/samples/test-example/app/index.html b/dist/samples/test-example/app/index.html index 106d4063..82aa3c89 100644 --- a/dist/samples/test-example/app/index.html +++ b/dist/samples/test-example/app/index.html @@ -14,7 +14,7 @@ -

    My Google Maps Demo

    +

    Maps Test Example

    diff --git a/dist/samples/test-example/app/index.ts b/dist/samples/test-example/app/index.ts index 4f23bda8..cc54ed8a 100644 --- a/dist/samples/test-example/app/index.ts +++ b/dist/samples/test-example/app/index.ts @@ -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 { // [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. @@ -18,7 +18,7 @@ async function initMap(): Promise { 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, diff --git a/dist/samples/test-example/app/package.json b/dist/samples/test-example/app/package.json index bd9d2bc1..b319e8c4 100644 --- a/dist/samples/test-example/app/package.json +++ b/dist/samples/test-example/app/package.json @@ -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 './'", diff --git a/dist/samples/test-example/dist/index.html b/dist/samples/test-example/dist/index.html index 60c7255a..46fb0b36 100644 --- a/dist/samples/test-example/dist/index.html +++ b/dist/samples/test-example/dist/index.html @@ -14,7 +14,7 @@ -

    My Google Maps Demo

    +

    Maps Test Example

    diff --git a/dist/samples/test-example/docs/index.html b/dist/samples/test-example/docs/index.html index 106d4063..82aa3c89 100644 --- a/dist/samples/test-example/docs/index.html +++ b/dist/samples/test-example/docs/index.html @@ -14,7 +14,7 @@ -

    My Google Maps Demo

    +

    Maps Test Example

    diff --git a/dist/samples/test-example/docs/index.js b/dist/samples/test-example/docs/index.js index 3f5350d1..c9bf2f77 100644 --- a/dist/samples/test-example/docs/index.js +++ b/dist/samples/test-example/docs/index.js @@ -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, diff --git a/dist/samples/test-example/docs/index.ts b/dist/samples/test-example/docs/index.ts index 4f23bda8..cc54ed8a 100644 --- a/dist/samples/test-example/docs/index.ts +++ b/dist/samples/test-example/docs/index.ts @@ -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 { // [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. @@ -18,7 +18,7 @@ async function initMap(): Promise { 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, diff --git a/dist/samples/test-example/jsfiddle/demo.html b/dist/samples/test-example/jsfiddle/demo.html index f1de1d31..32d11de0 100644 --- a/dist/samples/test-example/jsfiddle/demo.html +++ b/dist/samples/test-example/jsfiddle/demo.html @@ -14,7 +14,7 @@ -

    My Google Maps Demo

    +

    Maps Test Example

    diff --git a/dist/samples/test-example/jsfiddle/demo.js b/dist/samples/test-example/jsfiddle/demo.js index fbaaa17a..ae15d35d 100644 --- a/dist/samples/test-example/jsfiddle/demo.js +++ b/dist/samples/test-example/jsfiddle/demo.js @@ -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, diff --git a/index.html b/index.html index ba940676..d5f0f220 100644 --- a/index.html +++ b/index.html @@ -43,6 +43,7 @@

    Maps JSAPI Samples

  • place-autocomplete-element
  • place-autocomplete-map
  • place-text-search
  • +
  • test-example
  • ui-kit-customization
  • ui-kit-place-details
  • ui-kit-place-details-compact
  • diff --git a/package-lock.json b/package-lock.json index acb87ea2..ebe14703 100644 --- a/package-lock.json +++ b/package-lock.json @@ -609,6 +609,10 @@ "resolved": "samples/place-text-search", "link": true }, + "node_modules/@js-api-samples/test-example": { + "resolved": "samples/test-example", + "link": true + }, "node_modules/@js-api-samples/ui-kit-customization": { "resolved": "samples/ui-kit-customization", "link": true @@ -2461,8 +2465,7 @@ }, "samples/test-example": { "name": "@js-api-samples/test-example", - "version": "1.0.0", - "extraneous": true + "version": "1.0.0" }, "samples/ui-kit-customization": { "name": "@js-api-samples/ui-kit-customization",