This callback defines which annotations are read-only. This callback will receive the Annotation a user wants to modify and by returning true or false you can define if the annotation should be read-only (false) or modifiable (true).
true
false
For more information, see Configuration#isEditableAnnotation.
The annotation.
Only allow the modification of annotations from the same author
NutrientViewer.load({ isEditableAnnotation: function(annotation) { return annotation.creatorName === myCurrentUser.name; },}); Copy
NutrientViewer.load({ isEditableAnnotation: function(annotation) { return annotation.creatorName === myCurrentUser.name; },});
This callback defines which annotations are read-only. This callback will receive the Annotation a user wants to modify and by returning
trueorfalseyou can define if the annotation should be read-only (false) or modifiable (true).For more information, see Configuration#isEditableAnnotation.