don't clear the map when clearing the track
authorRobert Kaiser <kairo@kairo.at>
Sun, 27 Jan 2013 19:38:48 +0000 (20:38 +0100)
committerRobert Kaiser <kairo@kairo.at>
Sun, 27 Jan 2013 19:38:48 +0000 (20:38 +0100)
js/map.js

index 7cdf79f..ec60e01 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -637,7 +637,7 @@ function endTracking() {
 function clearTrack() {
   gTrack = [];
   gTrackStore.clear();
 function clearTrack() {
   gTrack = [];
   gTrackStore.clear();
-  drawMap();
+  drawMap({left: 0, right: 0, top: 0, bottom: 0});
 }
 
 var gTileService = {
 }
 
 var gTileService = {