AnsweredAssumed Answered

How to save and read feature layer(s) from localstorage?

Question asked by levmichael on Sep 21, 2020
Latest reply on Sep 21, 2020 by rscheitlin

I'm using Web AppBuilder (Developer Edition) version 2.17 upon ESRI Javascript API 4.16


When the user is adding feature layers from zipped shapefiles into his 3D scene map,

I need to save them automatically into localstorage in order that when the user reenters the browser in a 2nd session,

they will be read and inserted into the map automatically.


I'm trying to use localstorage correctly by pure javascript (not by dojo libs) but I'm not succeeding. I assume there is a more correct way to do this.


I'll appreciate explanation/code_example how to do it.