Skip to content
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

Merged
merged 47 commits into from
Mar 22, 2017
Merged

Conversation

drakeapps
Copy link

  • 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

James Wilson added 30 commits January 17, 2017 17:19
…ading and add degree symbol. Remove the work Link from links
Show altitude color key on map

Correctly handle retina images with CSS
…of it, but don't need the switcher panel currently
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);

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?

imgSize: baseMarker.size,
src: svgPathToURI(baseMarker.path, baseMarker.size, outline, weight, col, transparentBorderWidth),
src: svgPathToURI(baseMarker.svg, baseMarker.size, outline, '', col, ''),

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.

var rotation = (this.track === null ? 0 : this.track);
var transparentBorderWidth = (32 / baseMarker.scale / scaleFactor).toFixed(1);
//var transparentBorderWidth = (32 / baseMarker.scale / scaleFactor).toFixed(1);

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.

Copy link
Author

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

function flightFeederCheck() {
$.ajax('/status.json', {
success: function(data) {
if (typeof data.serial !== 'undefined') {

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');

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.

Copy link
Author

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?

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.

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

Copy link
Author

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) {

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

Copy link
Author

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.

@mutability
Copy link

Also can you change the base branch to dev as that's where it will be merged?
(I can do it, but it might cause random fallout so it's probably best if you do it)

@drakeapps drakeapps changed the base branch from master to dev February 10, 2017 18:21
@Romeo-Golf
Copy link

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:

http:https://www.skyview.co.uk

@mutability
Copy link

None of the above.

@mutability
Copy link

Some issues I'm seeing:

  • We seem to have lost the "center / follow plane" functionality (or at least I can't find it) which was previously enabled by selecting the => symbol or doubleclicking on a table row

  • Discontinuity in tracks after a gap in data:

discontinuous-track

  • There is no strong visual indication on the aircraft icon that it is selected - it changes color slightly but that is not very noticeable; what happened to the change in stroke width?

  • the range ring spacing in metric mode is probably too low (try 100km intervals?)

  • the header section in table mode scrolls with the table rather than always being visible

@mutability
Copy link

Datablock on hover is slow to appear (maybe 750ms hover time?)

The hover datablock righthand margin needs some padding:

screenshot from 2017-03-16 18-01-43

@drakeapps
Copy link
Author

  • I looked over the follow plane functionality. Double clicking on the table works again

  • I get the discontinuity on the current version also
    screenshot 2017-03-18 13 27 29

  • Yeah, highlighting the selected aircraft probably should be better.

  • I didn't touch the size of the rings, just added the label. But can increase it

  • Not 100% sure what you mean. Should the table header hover/scroll with it? It doesn't look like it was before.

  • Added padding to the hover box

@mutability
Copy link

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.

@drakeapps
Copy link
Author

Added a 1px black stroke to selected aircraft

@mutability
Copy link

Need to add the outline only when a single aircraft is selected, not when select-all is used (see the original code)

@drakeapps
Copy link
Author

Done

@mutability mutability merged commit d790600 into flightaware:dev Mar 22, 2017
kpetrilli pushed a commit to kpetrilli/dump1090 that referenced this pull request Sep 15, 2020
Update design and use SkyView branding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants