Fixing resetMap()-bug.

This commit is contained in:
terribl 2013-05-22 06:07:35 +03:00
parent a1d4a9f320
commit f853550b3c

View file

@ -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();
}