erik / derive

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

Style changes in URL? #44

Closed nedbat closed 3 years ago

nedbat commented 3 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 3 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 3 years ago

Local storage would also solve my use-case!

erik commented 3 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 3 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 3 years ago

Beautiful!