Vis4Sense / HistoryMap

http://sensemap.io
45 stars 7 forks source link

Save session to / load session from local storage #154

Closed Yuu-Han closed 1 month ago

Yuu-Han commented 2 months ago

An alternative to local storage (10mb limit) is IndexedDB. It does not have a specific limit on the size of storage, only depending on the browser and disk (maximum item size in IndexedDB).

kaidatavis commented 2 months ago

Yes. I haven't tried this myself, but I heard it is not that easy to use. I think Jeff might have mentioned this as well.

Yuu-Han commented 1 month ago

This commit (cd403aaa83aaea526bea30c67a11abc5eb18cd49) automatically saves the hmPages to local storage when the array is updated and loads the saved array when historymap is opened (not sure if the timing of saving and loading needs to be changed).