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 7cdf79f454421ae8e5552fffa2063133127f9058..ec60e01d905c6093cf8c6641feb8a98b2cfb637b 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -637,7 +637,7 @@ function endTracking() {
 function clearTrack() {
   gTrack = [];
   gTrackStore.clear();
-  drawMap();
+  drawMap({left: 0, right: 0, top: 0, bottom: 0});
 }
 
 var gTileService = {