Reset infoblock position on new plane selections. Update large ident styling
This commit is contained in:
parent
0e1e5df326
commit
0511d6fd3a
|
@ -14,6 +14,7 @@ var SelectedPlane = null;
|
||||||
var SelectedAllPlanes = false;
|
var SelectedAllPlanes = false;
|
||||||
var HighlightedPlane = null;
|
var HighlightedPlane = null;
|
||||||
var FollowSelected = false;
|
var FollowSelected = false;
|
||||||
|
var infoBoxOriginalPosition = {};
|
||||||
|
|
||||||
var SpecialSquawks = {
|
var SpecialSquawks = {
|
||||||
'7500' : { cssClass: 'squawk7500', markerColor: 'rgb(255, 85, 85)', text: 'Aircraft Hijacking' },
|
'7500' : { cssClass: 'squawk7500', markerColor: 'rgb(255, 85, 85)', text: 'Aircraft Hijacking' },
|
||||||
|
@ -1370,6 +1371,13 @@ function adjustSelectedInfoBlockPosition() {
|
||||||
// Get info box position and size
|
// Get info box position and size
|
||||||
var infoBox = $('#selected_infoblock');
|
var infoBox = $('#selected_infoblock');
|
||||||
var infoBoxPosition = infoBox.position();
|
var infoBoxPosition = infoBox.position();
|
||||||
|
if (typeof infoBoxOriginalPosition.top === 'undefined') {
|
||||||
|
infoBoxOriginalPosition.top = infoBoxPosition.top;
|
||||||
|
infoBoxOriginalPosition.left = infoBoxPosition.left;
|
||||||
|
} else {
|
||||||
|
infoBox.css("left", infoBoxOriginalPosition.left);
|
||||||
|
infoBox.css("top", infoBoxOriginalPosition.top);
|
||||||
|
}
|
||||||
var infoBoxExtent = getExtent(infoBoxPosition.left, infoBoxPosition.top, infoBox.outerWidth(), infoBox.outerHeight());
|
var infoBoxExtent = getExtent(infoBoxPosition.left, infoBoxPosition.top, infoBox.outerWidth(), infoBox.outerHeight());
|
||||||
|
|
||||||
// Get map size
|
// Get map size
|
||||||
|
|
|
@ -440,11 +440,11 @@ select.error, textarea.error, input.error {
|
||||||
|
|
||||||
.identLarge {
|
.identLarge {
|
||||||
font-family: Helvetica Neue;
|
font-family: Helvetica Neue;
|
||||||
font-size: 19px;
|
font-size: 24px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
color: #002F5D;
|
color: #002F5D;
|
||||||
color: rgb(0, 47, 93);
|
color: rgb(0, 47, 93);
|
||||||
|
font-weight: lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
.identSmall {
|
.identSmall {
|
||||||
|
|
Loading…
Reference in a new issue