-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update design and use SkyView branding #7
Conversation
drakeapps
commented
Feb 9, 2017
- Update the styling of page
- Use SkyView name instead of fa-dump1090
- Show aircraft altitude colors in aircraft paths
- Show small details pane if hovering over plane
- Add altitude chart
- Update icons
- Add back in current date/time display to page
Fix some indentation issues
…ading and add degree symbol. Remove the work Link from links
Show altitude color key on map Correctly handle retina images with CSS
Add box shadow to header
…of it, but don't need the switcher panel currently
public_html/planeObject.js
Outdated
PlaneObject.prototype.updateIcon = function() { | ||
var scaleFactor = Math.max(0.2, Math.min(1.2, 0.15 * Math.pow(1.25, ZoomLvl))).toFixed(1); | ||
|
||
var col = this.getMarkerColor(); | ||
var opacity = 1.0; | ||
var outline = (this.position_from_mlat ? OutlineMlatColor : OutlineADSBColor); | ||
var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc); | ||
var weight = ((this.selected && !SelectedAllPlanes ? 2 : 1) / baseMarker.scale / scaleFactor).toFixed(1); | ||
//var weight = ((this.selected && !SelectedAllPlanes ? 2 : 1) / baseMarker.scale / scaleFactor).toFixed(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to keep these lines?
public_html/planeObject.js
Outdated
imgSize: baseMarker.size, | ||
src: svgPathToURI(baseMarker.path, baseMarker.size, outline, weight, col, transparentBorderWidth), | ||
src: svgPathToURI(baseMarker.svg, baseMarker.size, outline, '', col, ''), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get rid of the redundant args here.
public_html/planeObject.js
Outdated
var rotation = (this.track === null ? 0 : this.track); | ||
var transparentBorderWidth = (32 / baseMarker.scale / scaleFactor).toFixed(1); | ||
//var transparentBorderWidth = (32 / baseMarker.scale / scaleFactor).toFixed(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the new icons still easy to hit? The transparent border thing was because I kept missing the old icons when they were scaled down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really have a problem clicking them, but I guess that varies to the user. It makes it equal to how clickable icons are on FA so making that consistent. I did find it annoying trying to click planes that are nearly on top of each with the transparent border. But it can be added back in if it seems like it should be
public_html/script.js
Outdated
function flightFeederCheck() { | ||
$.ajax('/status.json', { | ||
success: function(data) { | ||
if (typeof data.serial !== 'undefined') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the FF status.json in 7.6.0; there is now a "type": "flightfeeder"
key that is probably better to check than looking for the serial number (uncommissioned FFs won't have a serial number)
} | ||
|
||
#altitude_chart_button { | ||
background-image: url('images/alt_legend_feet.svg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These svgs have a fixed set of colors so they are going to be out of sync with the endpoints used in the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean that if the plane is selected or stale it'll be a slightly different color and won't match up? Or something else that I'm missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user changes the color configuration, the aircraft will change to reflect their modifications but the legends won't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If generating the gradient on the fly turns out to be tricky, another alternative is to disable the legend if the config.js settings don't match the defaults
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed so the chart will be hidden if using custom colors.
Generating the colors for a custom chart is pretty straight forward, but making it look good and consistent is the issue.
@@ -1308,6 +1473,14 @@ function onDisplayUnitsChanged(e) { | |||
}); | |||
} | |||
|
|||
function setAltitudeLegend(units) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to hide the legend entirely? It takes up a lot of screen real estate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an option to toggle it on and off.
Also can you change the base branch to dev as that's where it will be merged? |
Out of interest which of the many different things called skyview is this being named after? ;) Is it this ADS-B receiver: http:https://www.dynonavionics.com/skyview-system.php Or the NASA site: http:https://skyview.gsfc.nasa.gov/current/cgi/titlepage.pl Or the iPhone app: https://www.terminaleleven.com/skyview/iphone/ Or weather station: |
None of the above. |
… chart is based on default colors
Some issues I'm seeing:
|
|
OK I think if we can get the selected-aircraft-highlight restored in some form then this should be good to merge, the other stuff is enhancements or existing bugs that we can look at later. |
Added a 1px black stroke to selected aircraft |
Need to add the outline only when a single aircraft is selected, not when select-all is used (see the original code) |
Done |
Update design and use SkyView branding