Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhefeiGong committed Mar 24, 2024
1 parent d4747d4 commit 551e610
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
57 changes: 29 additions & 28 deletions map/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,34 @@ function initMap() {
center: { lat: 34.84555, lng: -111.8035 },
mapId: "4504f8b37365c3d0",
});
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
// receives the initial focus when tab is pressed. Use arrow keys to
// move between markers; press tab again to cycle through the map controls.
const tourStops = [
{
position: { lat: 34.8791806, lng: -111.8265049 },
title: "Boynton Pass",
},
{
position: { lat: 34.8559195, lng: -111.7988186 },
title: "Airport Mesa",
},
{
position: { lat: 34.832149, lng: -111.7695277 },
title: "Chapel of the Holy Cross",
},
{
position: { lat: 34.823736, lng: -111.8001857 },
title: "Red Rock Crossing",
},
{
position: { lat: 34.800326, lng: -111.7665047 },
title: "Bell Rock",
},
];
// Create an info window to share between markers.
const infoWindow = new google.maps.InfoWindow();

// // Set LatLng and title text for the markers. The first marker (Boynton Pass)
// // receives the initial focus when tab is pressed. Use arrow keys to
// // move between markers; press tab again to cycle through the map controls.
// const tourStops = [
// {
// position: { lat: 34.8791806, lng: -111.8265049 },
// title: "Boynton Pass",
// },
// {
// position: { lat: 34.8559195, lng: -111.7988186 },
// title: "Airport Mesa",
// },
// {
// position: { lat: 34.832149, lng: -111.7695277 },
// title: "Chapel of the Holy Cross",
// },
// {
// position: { lat: 34.823736, lng: -111.8001857 },
// title: "Red Rock Crossing",
// },
// {
// position: { lat: 34.800326, lng: -111.7665047 },
// title: "Bell Rock",
// },
// ];
// // Create an info window to share between markers.
// const infoWindow = new google.maps.InfoWindow();

// // Create the markers.
// tourStops.forEach(({ position, title }, i) => {
Expand All @@ -53,7 +54,7 @@ function initMap() {
// infoWindow.open(marker.map, marker);
// });
// });

}

window.initMap = initMap;
2 changes: 1 addition & 1 deletion map/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: >
for more information.
-->
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCBlxDPSkfw9ZBQ5zkKA3mpgVD7twJVATI&callback=initMap&libraries=marker&v=beta"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCBlxDPSkfw9ZBQ5zkKA3mpgVD7twJVATI&callback=initMap"
defer
></script>
</body>
Expand Down

0 comments on commit 551e610

Please sign in to comment.