I actually would approach this differently and does not require using the database. I would use a cookie.All you have to do is1. Listen to events onGraphicAdd ,onGraphicRemove, on Dbl Click (for editing) of the GraphicsLayer2. On event, add or remove a cookie for the graphici.e. dojo.cookie (graphic:1, graphic.toJson(), 1000)3. You may also store a cookie with the number of graphics4. 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
Sorry I should have clarified more. That widget is a slightly updated clone of the esri time slider. Put that code into it's own file in /js/app/widgets/TemplatedTimeSlider.js and then add it to your main html page with a <script src="/js/app/widgets/TemplatedTimeSlider.js"></script>This is the actual time slider widget itself. So you can use it as a base to start your modifications. Instead of <div data-dojo-type="esri.dijit.TimeSlider"></div> you would do <div data-dojo-type="app.widgets.TemplatedTimeSlider"></div>
Hi
I need the same kinda solution but in my case i want to store all the drawing into feature layers which can be rendered when the same user log in . He can make changes to the same and can save it again.
Thanks
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.