erik / derive

Generate personal heatmap from GPX/TCX/FIT/IGC data
https://erik.github.io/derive
MIT License
498 stars 63 forks source link

Style changes in URL? #44

Closed nedbat closed 4 years ago

nedbat commented 4 years ago

I love derive! I have just one wish: I always change the settings when I use the app (black routes, Positron). Is there a way to change those settings from the URL, so that I could bookmark it and not have to manually adjust it each time? Thanks <3

erik commented 4 years ago

Oh good idea, I like this. Another straightforward option would be to store last-used settings in local storage, but that wouldn't allow you to have multiple "presets" or bookmark your settings between machines. Maybe that's enough for the common case though?

nedbat commented 4 years ago

Local storage would also solve my use-case!

erik commented 4 years ago

@nedbat merged in a simple localStorage based implementation, let me know if you run into any issues

Thanks again for suggesting this!

nedbat commented 4 years ago

It works! Thanks, this makes me very happy :) Here are 78 walks I've done with my son during lockdown:

image

I'm using dérive to identify streets we haven't walked down yet.

hugovk commented 4 years ago

Beautiful!