From 551e610c7c70a1d194f0a60428a846038d4af34c Mon Sep 17 00:00:00 2001 From: zhefeigong Date: Sun, 24 Mar 2024 19:17:27 +0900 Subject: [PATCH] update --- map/test.js | 57 +++++++++++++++++++++++----------------------- map/test/README.md | 2 +- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/map/test.js b/map/test.js index e08817d..015b1c2 100644 --- a/map/test.js +++ b/map/test.js @@ -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) => { @@ -53,7 +54,7 @@ function initMap() { // infoWindow.open(marker.map, marker); // }); // }); - + } window.initMap = initMap; \ No newline at end of file diff --git a/map/test/README.md b/map/test/README.md index 9557af3..ada2bdd 100644 --- a/map/test/README.md +++ b/map/test/README.md @@ -24,7 +24,7 @@ description: > for more information. -->