m3h0w / covid19-coronavirus-react-visualization

Visualizing coronavirus covid-19 cases and deaths on a map with time travel + infection trajectory comparison
https://covid19pink.vercel.app/
MIT License
22 stars 3 forks source link

Bind country dashboard and infection trajectories state to url to allow sharing url #7

Open m3h0w opened 4 years ago

m3h0w commented 4 years ago

Bind country dashboard and infection trajectories state to url to allow sharing URL. Pass a list of countries in the infection trajectories and country + region in country dashboard.

m3h0w commented 4 years ago

This has been partially done. Works for country dashboard now, but still haven't done it for the infection trajectories (right now putting a country name after '/' will make sure that that country is added to the list but I'd hope that the URL would contain a list of all added countries or integers that map to countries somehow so that the URL can be shared)