I am persisting annotations by users. But when i relead the drawing annotations
seems to be shift both in x and t
What steps will reproduce the problem?
Saving;
1. OnMarkChanged i save the annotations as follows
2. var marks = JSON.stringify(api.getMarkList());
3. the marks are send to the server and saved as a string
Reloading
4. When the document gets loaded i do this (little simplified):
5. function onDocumentLoaded(totalPages)
{
var marks = '<%=Marks%>';
if (marks !== '') {
var initialMarks = JSON.parse(marks);
api.addMarks(initialMarks);
}
}
Since the marks in addMarks are exactly the same as the one in getMarkList I
expect the position of the drawing to be exactly the same. This is essential
for annotations which are by very context specific by nature. If you need any
assistance in reproducing the problem i would be happy to provide extra
information.
Original issue reported on code.google.com by mmuur...@gmail.com on 29 Aug 2012 at 9:06
Original issue reported on code.google.com by
mmuur...@gmail.com
on 29 Aug 2012 at 9:06