Solved! Go to Solution.
I actually would approach this differently and does not require using the database.
I would use a cookie.
All you have to do is
1. Listen to events onGraphicAdd ,onGraphicRemove, on Dbl Click (for editing) of the GraphicsLayer
2. On event, add or remove a cookie for the graphic
i.e. dojo.cookie (graphic:1, graphic.toJson(), 1000)
3. You may also store a cookie with the number of graphics
4. On application load, just read and add the graphics back in.
I actually would approach this differently and does not require using the database.
I would use a cookie.
All you have to do is
1. Listen to events onGraphicAdd ,onGraphicRemove, on Dbl Click (for editing) of the GraphicsLayer
2. On event, add or remove a cookie for the graphic
i.e. dojo.cookie (graphic:1, graphic.toJson(), 1000)
3. You may also store a cookie with the number of graphics
4. On application load, just read and add the graphics back in.
Hey guys...
The query which I put in first, I've got solution for it...means I can take points from the user at wherever he/she clicks on the map...store the points as lat long and redraw them when
user demands...
But its not about points now...Its much more....various drawings, attachments with the symbols and much important timeslider...
Thanks to all who have taken interest in this thread...I sincerely want to ask you about the implementation of timeslider...
I have studied the 4 examples provided in timeslider section of ArcGIS JavaScript API, but no modification available...I want to put my data in timesliders....
MORE IMPORTANT: I THINK TIME-SLIDER FEATURE IS NOT AVAILABLE IN WWW.ARCGIS.COM site....If it's there, do let me know how to acess it....
I've been making a lot of changes myself to the stock esri time slider. Here is the code I started out with. Notice that I changed the namespace and name of the class.
I originally posted it as a fix to the bug in the TimeSlider where you cannot have more than 1 timeslider on the same page. Other than that small fix, it's vanilla.
Teh Codez iz here: http://www.pastie.org/3489637