Skip to content

Commit 3048945

Browse files
fix bug current position icon not showing
1 parent 237738b commit 3048945

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 39
2+
# version 40
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ function load() {
7878
scrollwheel: true
7979
});
8080

81+
if(currentPosition) updateCurrentPosition(currentPosition.lat, currentPosition.lon);
82+
8183
nite.init(map);
8284
if(!offline.get('opt_daylight')) nite.hide();
8385
setInterval(function() { nite.refresh(); }, 60000); // 1min
@@ -876,6 +878,7 @@ function updateCurrentPosition(lat, lon) {
876878
} else {
877879
currentPosition.lat = lat;
878880
currentPosition.lon = lon;
881+
currentPosition.marker.setMap(map);
879882
currentPosition.marker.setPosition(latlng);
880883
}
881884
}

0 commit comments

Comments
 (0)