Skip to content

Commit

Permalink
Display coordinates more elegantly
Browse files Browse the repository at this point in the history
  • Loading branch information
evdb committed Oct 30, 2015
1 parent 34f853f commit 3900bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script src="bower_components/jquery/dist/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/app.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="bower_components/magellan/magellan.js" type="text/javascript" charset="utf-8"></script>


</head>
Expand Down
4 changes: 2 additions & 2 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function init() {
var $heading = $("#heading");

function update_location (position) {
$latitude.text(position.coords.latitude);
$longitude.text(position.coords.longitude);
$latitude.text( magellan(position.coords.latitude).latitude().toDM(' ') );
$longitude.text( magellan(position.coords.longitude).longitude().toDM(' ') );
$accuracy.text(position.coords.accuracy);

$altitude.text(position.coords.altitude);
Expand Down

0 comments on commit 3900bcc

Please sign in to comment.