[hamradio-commits] [dump1090] 198/389: Fixing resetMap()-bug.
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit f853550b3cc17cba1e1ecdf93ec4d76a380c249c
Author: terribl <terri at rannalla.net>
Date: Wed May 22 06:07:35 2013 +0300
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();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list