Skip to content

Commit

Permalink
Revert "Update route.js"
Browse files Browse the repository at this point in the history
This reverts commit 6b64217.
  • Loading branch information
yadorogi committed Jan 25, 2024
1 parent 6263a38 commit 001192a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions route.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ function initMap() {

// マーカーを配列に追加する
markers.push(marker);

// マーカーが追加されたときに地図のズームレベルが変わると使いづらいので変更しないようにする
const bounds = new google.maps.LatLngBounds();
markers.forEach(marker => bounds.extend(marker.getPosition()));
map.fitBounds(bounds);
google.maps.event.addListener(map, 'zoom_changed', function() {
if (map.get_zoom() > 12 ) {
map.set_zoom(12);
}
});
});

// マーカーを巡回する機能
Expand Down Expand Up @@ -77,7 +67,7 @@ function initMap() {
}
);
}
}, 2000); // マーカーを立ててから画面の表示位置と、ズームを変更するまでの時間を2秒に設定する
}, 8000); // マーカーを立ててから画面の表示位置と、ズームを変更するまでの時間を8秒に設定する

// cycleMarkers関数を呼び出して、マーカーのサイクルを開始する
cycleMarkers();
Expand Down

0 comments on commit 001192a

Please sign in to comment.