Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
zebrastribe authored Aug 17, 2024
1 parent f1998f1 commit 519e77e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function fetchCheckIns() {

// Clear existing markers
if (window.recordedMarkers) {
window.recordedMarkers.forEach(marker => marker.setMap(null));
window.recordedMarkers.forEach(marker => marker.map = null);
}
window.recordedMarkers = [];

Expand Down Expand Up @@ -141,8 +141,8 @@ async function fetchCheckIns() {

checkInsList.appendChild(row);

// Add marker to the recorded map
const marker = new google.maps.Marker({
// Add marker to the recorded map using AdvancedMarkerElement
const marker = new google.maps.marker.AdvancedMarkerElement({
position: { lat: latitude, lng: longitude },
map: window.recordedMap,
title: name
Expand Down

0 comments on commit 519e77e

Please sign in to comment.