don't clear the map when clearing the track
[lantea.git] / 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 = {