Draw line or polygon ?

Hi everyone,

I drawn bounding box successfully. I wonder how to draw line or polygon metadata ?

Thanks,

Please see this sample and explore it;

https://doc.developer.milestonesys.com/html/index.html?base=samples/analyticsoverlay_sample.html&tree=tree_1.html

There might be a definition of a square which you can change it into polygon or line.