From f853550b3cc17cba1e1ecdf93ec4d76a380c249c Mon Sep 17 00:00:00 2001 From: terribl Date: Wed, 22 May 2013 06:07:35 +0300 Subject: [PATCH] Fixing resetMap()-bug. --- public_html/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public_html/script.js b/public_html/script.js index 96b3926..0ac1f3f 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -388,9 +388,12 @@ function resetMap() { localStorage['CenterLat'] = 45.0; localStorage['CenterLon'] = 9.0; localStorage['ZoomLvl'] = 5; + CenterLat = 45.0; + CenterLon = 9.0; + ZoomLvl = 5; Map.setZoom(parseInt(localStorage['ZoomLvl'])); - Map.setCenter(new google.maps.LatLng(parseInt(localStorage['CenterLat']), - parseInt(localStorage['CenterLon']))); + Map.setCenter(new google.maps.LatLng(parseFloat(localStorage['CenterLat']), + parseFloat(localStorage['CenterLon']))); Selected = null; refreshSelectedInfo(); }