Skip to content

Commit

Permalink
Fix bug if marker is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
LolloDev5123 committed Jul 26, 2022
1 parent 805afef commit 1941fa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,6 @@ document.addEventListener("DOMContentLoaded", function () {
map.setBearing(current_heading);
}

if (myMarker.getIcon().options.html != follow_icon.options.html) myMarker.setIcon(follow_icon);



Expand All @@ -1587,7 +1586,7 @@ document.addEventListener("DOMContentLoaded", function () {
mym1 = true
}


if (myMarker.getIcon().options.html != follow_icon.options.html) myMarker.setIcon(follow_icon);

//store device location
device_lat = crd.latitude;
Expand Down

0 comments on commit 1941fa8

Please sign in to comment.