Phi: cleanup aircraft icon's label in map widget
This commit is contained in:
parent
4aac51e73d
commit
99020d4841
2 changed files with 14 additions and 4 deletions
|
@ -19,6 +19,15 @@
|
|||
margin: 5px 5px;
|
||||
}
|
||||
|
||||
.aircraft-marker-altitude {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.aircraft-marker-heading {
|
||||
text-align: center;
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.aircraft-marker {
|
||||
float: left;
|
||||
color: #00ff00;
|
||||
|
@ -28,4 +37,4 @@
|
|||
.aircraft-marker span {
|
||||
padding-left: 0.5em;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -80,15 +80,16 @@ define(
|
|||
className : 'aircraft-marker-popup',
|
||||
closeOnClick : false,
|
||||
maxWidth : 200,
|
||||
minWidth : 100,
|
||||
minWidth : 120,
|
||||
offset : [
|
||||
30, 30
|
||||
],
|
||||
}, this);
|
||||
this.popup
|
||||
.setContent('<div class="aircraft-marker aircraft-marker-altitude"><span data-bind="text: altitude().toFixed(0)"></span>ft</div>'
|
||||
.setContent( '<div class="aircraft-marker aircraft-marker-altitude"><span data-bind="text: altitude().toFixed(0)"></span>ft</div>'
|
||||
+ '<div class="aircraft-marker aircraft-marker-heading"><span data-bind="text: heading().toFixed(0)"></span>°</div>'
|
||||
+ '<div class="aircraft-marker aircraft-marker-tas"><span data-bind="text: tas().toFixed(0)"></span>kt</div><div style="clear: both"/>');
|
||||
+ '<div class="aircraft-marker aircraft-marker-tas"><span data-bind="text: tas().toFixed(0)"></span>kt</div><div style="clear: both"/>'
|
||||
);
|
||||
this.bindPopup(this.popup);
|
||||
this.addTo(this._map);
|
||||
this.openPopup();
|
||||
|
|
Loading…
Add table
Reference in a new issue