Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.