Detailed description of issue
I need to get the area measurements I draw on the plan to store in table. Also I should be able to load the stored measurements on the plan. How can i achieve this?
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
Does your issue happen with every document, or just one?
{Answer here}
Link to document
{Provide a link to the document in question if possible}
Depending on when you want to get the area (on annotation added, or on annotation changed) it can change the event you listen to, but generally you can do:
instance.Core.annotationManager.addEventListener('annotationChanged', (annots, action, info) => {
if(action === 'modify') {
annots[0].getContents() // get the area (the contents)
}
})