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

Timeline - map PlatformType to icon name #1076

Open
IanMayo opened this issue Nov 10, 2021 · 0 comments
Open

Timeline - map PlatformType to icon name #1076

IanMayo opened this issue Nov 10, 2021 · 0 comments
Assignees
Labels
Task Package of work

Comments

@IanMayo
Copy link
Member

IanMayo commented Nov 10, 2021

Each type of platform has a unique name. The agreed list of platform types is here: #936 (comment)

The set of icons representing these types is here: https://github.com/debrief/debrief-icons/tree/master/counters/pepys

Preview them here

We aim to show a different icon for each platform type.

But, we need to map the PlatformType to an icon filename.

To this we must:

  • remove hyphens/underscores
  • replace each group of spaces for a single underscore
  • switch to lowercase

So, Naval - fixed wing will go to naval_fixed_wing.svg.

We should do this in the JS for timeline, IMHO.

@IanMayo IanMayo added the Task Package of work label Nov 10, 2021
@IanMayo IanMayo self-assigned this Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Package of work
Projects
None yet
Development

No branches or pull requests

1 participant