Skip to content

Update dist folder [skip ci] #308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025
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
12 changes: 9 additions & 3 deletions dist/samples/ui-kit-place-search-text/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ let marker = document.querySelector('gmp-advanced-marker') as any;
let markers = {};
let infoWindow;
let center = { lat: 37.395641, lng: -122.077627 };
let bounds;

async function initMap(): Promise<void> {
await google.maps.importLibrary("places");
const { InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
const { Place } = await google.maps.importLibrary("places") as google.maps.PlacesLibrary;

// Set bounds for location restriction.
bounds = new google.maps.LatLngBounds(
{ lat: 37.37808200917261, lng: -122.13741583377849 },
{ lat: 37.416676154341324, lng: -122.02261728794109 }
);

infoWindow = new google.maps.InfoWindow;

// Center the map
Expand All @@ -40,7 +46,7 @@ async function initMap(): Promise<void> {
async function searchByTextRequest(textQuery) {
if (textQuery) {
placeList.configureFromSearchByTextRequest({
locationRestriction: map.innerMap.getBounds(),
locationRestriction: bounds,
includedType: "restaurant",
textQuery: textQuery,
}).then(addMarkers);
Expand Down

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

This file was deleted.

2 changes: 1 addition & 1 deletion dist/samples/ui-kit-place-search-text/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Place List Text Search with Google Maps</title>
<meta charset="utf-8">
<script type="module" crossorigin src="./assets/index-wtb0ylRH.js"></script>
<script type="module" crossorigin src="./assets/index--q_VeX4d.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Dq92m9UV.css">
</head>
<body>
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/ui-kit-place-search-text/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ let marker = document.querySelector('gmp-advanced-marker');
let markers = {};
let infoWindow;
let center = { lat: 37.395641, lng: -122.077627 };
let bounds;
async function initMap() {
await google.maps.importLibrary("places");
const { InfoWindow } = await google.maps.importLibrary("maps");
const { Map, InfoWindow } = await google.maps.importLibrary("maps");
const { Place } = await google.maps.importLibrary("places");
// Set bounds for location restriction.
bounds = new google.maps.LatLngBounds({ lat: 37.37808200917261, lng: -122.13741583377849 }, { lat: 37.416676154341324, lng: -122.02261728794109 });
infoWindow = new google.maps.InfoWindow;
// Center the map
let adjustedCenter = offsetLatLngRight(center, -0.005);
Expand All @@ -35,7 +37,7 @@ async function initMap() {
async function searchByTextRequest(textQuery) {
if (textQuery) {
placeList.configureFromSearchByTextRequest({
locationRestriction: map.innerMap.getBounds(),
locationRestriction: bounds,
includedType: "restaurant",
textQuery: textQuery,
}).then(addMarkers);
Expand Down
12 changes: 9 additions & 3 deletions dist/samples/ui-kit-place-search-text/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ let marker = document.querySelector('gmp-advanced-marker') as any;
let markers = {};
let infoWindow;
let center = { lat: 37.395641, lng: -122.077627 };
let bounds;

async function initMap(): Promise<void> {
await google.maps.importLibrary("places");
const { InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
const { Place } = await google.maps.importLibrary("places") as google.maps.PlacesLibrary;

// Set bounds for location restriction.
bounds = new google.maps.LatLngBounds(
{ lat: 37.37808200917261, lng: -122.13741583377849 },
{ lat: 37.416676154341324, lng: -122.02261728794109 }
);

infoWindow = new google.maps.InfoWindow;

// Center the map
Expand All @@ -40,7 +46,7 @@ async function initMap(): Promise<void> {
async function searchByTextRequest(textQuery) {
if (textQuery) {
placeList.configureFromSearchByTextRequest({
locationRestriction: map.innerMap.getBounds(),
locationRestriction: bounds,
includedType: "restaurant",
textQuery: textQuery,
}).then(addMarkers);
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/ui-kit-place-search-text/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ let marker = document.querySelector('gmp-advanced-marker');
let markers = {};
let infoWindow;
let center = { lat: 37.395641, lng: -122.077627 };
let bounds;
async function initMap() {
await google.maps.importLibrary("places");
const { InfoWindow } = await google.maps.importLibrary("maps");
const { Map, InfoWindow } = await google.maps.importLibrary("maps");
const { Place } = await google.maps.importLibrary("places");
// Set bounds for location restriction.
bounds = new google.maps.LatLngBounds({ lat: 37.37808200917261, lng: -122.13741583377849 }, { lat: 37.416676154341324, lng: -122.02261728794109 });
infoWindow = new google.maps.InfoWindow;
// Center the map
let adjustedCenter = offsetLatLngRight(center, -0.005);
Expand All @@ -35,7 +37,7 @@ async function initMap() {
async function searchByTextRequest(textQuery) {
if (textQuery) {
placeList.configureFromSearchByTextRequest({
locationRestriction: map.innerMap.getBounds(),
locationRestriction: bounds,
includedType: "restaurant",
textQuery: textQuery,
}).then(addMarkers);
Expand Down