Fixing resetMap()-bug.
This commit is contained in:
parent
a1d4a9f320
commit
f853550b3c
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue