diff --git a/samples/place-nearby-search/index.ts b/samples/place-nearby-search/index.ts index ecf6acfaf7..a17c4d74f7 100644 --- a/samples/place-nearby-search/index.ts +++ b/samples/place-nearby-search/index.ts @@ -62,7 +62,7 @@ async function nearbySearch() { title: place.displayName, }); - bounds.extend(place.location); + bounds.extend(place.location as google.maps.LatLng); console.log(place); }); diff --git a/samples/place-text-search/index.ts b/samples/place-text-search/index.ts index 8a879e0282..57da84cccb 100644 --- a/samples/place-text-search/index.ts +++ b/samples/place-text-search/index.ts @@ -16,9 +16,7 @@ async function initMap() { map = new Map(document.getElementById('map') as HTMLElement, { center: center, zoom: 11, - // [START_EXCLUDE] - mapId: '4504f8b37365c3d0', - // [END_EXCLUDE] + mapId: 'DEMO_MAP_ID', }); findPlaces(); @@ -59,7 +57,7 @@ async function findPlaces() { title: place.displayName, }); - bounds.extend(place.location); + bounds.extend(place.location as google.maps.LatLng); console.log(place); });