Skip to content

Commit b3a8035

Browse files
committed
Show Launches by Default
1 parent bb86eac commit b3a8035

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h4>Overlays</h4>
210210
<h4>Other</h4>
211211
<hr/>
212212
<div class="row option">
213-
<span><b>Show Launch Sites</b></span>
213+
<span><b>Hide Launch Sites</b></span>
214214
<div class="switch off" id="sw_layers_launches">
215215
<span class="thumb"></span>
216216
<input type="checkbox" id="opt_layers_launches">

js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,9 @@ $(window).ready(function() {
844844
case "opt_layers_launches":
845845
showLaunchSites();
846846
if(on) {
847-
map.addLayer(launches);
848-
} else {
849847
map.removeLayer(launches);
848+
} else {
849+
map.addLayer(launches);
850850
}
851851
break;
852852
case "opt_interpolate":

js/tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ function load() {
513513
map.addLayer(nite);
514514
}
515515

516-
if (offline.get("opt_layers_launches")) {
516+
517+
if (!offline.get("opt_layers_launches")) {
517518
showLaunchSites();
518519
map.addLayer(launches);
519520
}
@@ -2095,7 +2096,7 @@ function mapInfoBox_handle_prediction(event) {
20952096
formatDate(new Date(parseInt(data.time) * 1000), true) + "\n\n" +
20962097
"<b>Altitude:</b> " + altitude + "\n" +
20972098
"<b>Latitude:</b> " + data.lat + "\n" +
2098-
"<b>Longtitude:</b> " + data.lon + "\n" +
2099+
"<b>Longitude:</b> " + data.lon + "\n" +
20992100
"</pre>"
21002101
);
21012102
mapInfoBox.setLatLng(event.latlng);

0 commit comments

Comments
 (0)