Atur peta ke javascript penyimpanan lokal
localStorage.myMap = JSON.stringify(Array.from(map.entries()));
Daniel Jantulík
localStorage.myMap = JSON.stringify(Array.from(map.entries()));