Add registration and source to hover box
This commit is contained in:
parent
7d61b2aaab
commit
e0bb6e11e7
|
@ -19,7 +19,7 @@
|
|||
<script type="text/javascript" src="dbloader.js"></script>
|
||||
<script type="text/javascript" src="registrations.js"></script>
|
||||
<script type="text/javascript" src="planeObject.js"></script>
|
||||
<script type="text/javascript" src="formatter.js"></script>
|
||||
<script type="text/javascript" src="formatter.js?v=2"></script>
|
||||
<script type="text/javascript" src="flags.js"></script>
|
||||
<script type="text/javascript" src="layers.js"></script>
|
||||
<script type="text/javascript" src="script.js?v=2"></script>
|
||||
|
@ -83,6 +83,14 @@
|
|||
<div class="infoHeading infoRowTitle">Speed: </div>
|
||||
<div class="infoData infoRowContent"><span id="highlighted_speed">n/a</span></div>
|
||||
</div>
|
||||
<div class="infoRow">
|
||||
<div class="infoHeading infoRowTitle">Registration: </div>
|
||||
<div class="infoData infoRowContent"><span id="highlighted_registration">n/a</span></div>
|
||||
</div>
|
||||
<div class="infoRow">
|
||||
<div class="infoHeading infoRowTitle">Source: </div>
|
||||
<div class="infoData infoRowContent"><span id="highlighted_source">n/a</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1165,6 +1165,21 @@ function refreshHighlighted() {
|
|||
$('#higlighted_icaotype').text("");
|
||||
}
|
||||
|
||||
if (highlighted.getDataSource() === "adsb_icao") {
|
||||
$('#highlighted_source').text("ADS-B");
|
||||
} else if (highlighted.getDataSource() === "tisb_trackfile" || highlighted.getDataSource() === "tisb_icao" || highlighted.getDataSource() === "tisb_other") {
|
||||
$('#highlighted_source').text("TIS-B");
|
||||
} else if (highlighted.getDataSource() === "mlat") {
|
||||
$('#highlighted_source').text("MLAT");
|
||||
} else {
|
||||
$('#highlighted_source').text("Other");
|
||||
}
|
||||
|
||||
if (highlighted.registration !== null) {
|
||||
$('#highlighted_registration').text(highlighted.registration);
|
||||
} else {
|
||||
$('#highlighted_registration').text("");
|
||||
}
|
||||
|
||||
$('#highlighted_speed').text(format_speed_long(highlighted.speed, DisplayUnits));
|
||||
|
||||
|
|
Loading…
Reference in a new issue