Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using arcgis javascript api i am adding different graphics to the map. Later i will save them in server. If i forgot to save or due to some reasons page is refreshed before saving i am losing all the graphics. My requirement is replace the graphics to that particular session. Is there any possible way to save the graphics...?? Thanks in advance.

share|improve this question

What you can do, is to save the graphics on the local storage of the client browser.

Note that local storage or DOM storage, is an HTML5 feature, and older IE browsers do not support it.

For a deeper understanding, read this article from Dive into HTML5.

Here are two ESRI JS samples which might be useful:

  1. Store bookmarks client side
  2. Local storage - experimental
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.