Merge pull request #6 from terribl/master

resetMap()

Did I manage to do this right? Let's try.
This commit is contained in:
Terhi 2013-05-21 20:18:39 -07:00
commit 3117b1cda5

View file

@ -388,9 +388,12 @@ function resetMap() {
localStorage['CenterLat'] = 45.0; localStorage['CenterLat'] = 45.0;
localStorage['CenterLon'] = 9.0; localStorage['CenterLon'] = 9.0;
localStorage['ZoomLvl'] = 5; localStorage['ZoomLvl'] = 5;
CenterLat = 45.0;
CenterLon = 9.0;
ZoomLvl = 5;
Map.setZoom(parseInt(localStorage['ZoomLvl'])); Map.setZoom(parseInt(localStorage['ZoomLvl']));
Map.setCenter(new google.maps.LatLng(parseInt(localStorage['CenterLat']), Map.setCenter(new google.maps.LatLng(parseFloat(localStorage['CenterLat']),
parseInt(localStorage['CenterLon']))); parseFloat(localStorage['CenterLon'])));
Selected = null; Selected = null;
refreshSelectedInfo(); refreshSelectedInfo();
} }