Skip to content

Add link for radar viewer #2156

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

Open
3 tasks
partly-igor opened this issue Dec 5, 2024 · 0 comments
Open
3 tasks

Add link for radar viewer #2156

partly-igor opened this issue Dec 5, 2024 · 0 comments
Labels
Milestone

Comments

@partly-igor
Copy link
Collaborator

Description

As described in #1648 we'd like to add a link to the radar viewer so that users who are interested can more radar details. In #1648 @greg-does-weather noted that we should be able to pull the users location when sending the user to the radar viewer

Documenting here for posterity, the URL parameter is called settings, and is v1_{ base64-encoded JSON string}.

The JSON object looks like this:

{
  agenda: {
    id: 'weather',
    center: [ -92.37, 44.64 ],
    location: [ -100.405, 41.424 ],
    zoom: 7.839999999999999,
    layer: 'bref_qcd'
  },
  animating: false,
  base: 'standard',
  artcc: false,
  county: false,
  cwa: false,
  rfc: false,
  state: false,
  menu: true,
  shortFusedOnly: false,
  opacity: {
    alerts: 0.8,
    local: 0.6,
    localStations: 0.8,
    national: 0.6 }
}

Getting the right settings string would be ?settings=v1_${ btoa(JSON.stringify(obj)) }

Figma documentation

Designs/Context

Acceptance Criteria

  • Add a link to the radar viewer
  • Link should be based on the users' location and show the correct geography once they open up the radar viewer
  • Implementation follows the designs

Tag the related milestone to this story

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant