Skip to content

Commit 48e2a7b

Browse files
committed
fix google maps not resetting properly
1 parent 16e5337 commit 48e2a7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/googleMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
window.opentrace = {
22
Hops: [],
33
reset: function (hideMapPopup = false) {
4-
if (typeof gmap == "undefined") window.gmap = new google.maps.Map(document.getElementById("map"), { center: { lat: 0, lng: 0 }, zoom: 2 });
4+
window.gmap = new google.maps.Map(document.getElementById("map"), { center: { lat: 0, lng: 0 }, zoom: 2 });
55
gmap.overlayMapTypes.clear();
66
this.Hops = [];
77
this.hideMapPopup = hideMapPopup;

0 commit comments

Comments
 (0)