Value's not getting proper during co-ordinates calculation

Hi,

Sorry for the delay in the reply.

I think I understand what you are trying to achieve and the issue you are facing now.

As I mentioned in the other post, the values you see in the getPath are in pt, so you would need to do some transformation.

The information you need to do the transformation is contained in annot.Measure. For polyline, the transformation would be as the following:

adjustContents: function() {
  var perimeter = getPerimeter(annot.getPath());
  var axisNumberFormat = annot['Measure']['axis'][0];
  var distanceNumberFormatArray = annot['Measure']['distance'];
  var convertedPerimeter = perimeter * axisNumberFormat['factor'] * distanceNumberFormatArray[0]['factor'];
  console.log(convertedPerimeter);
},

Thanks,
Zhijie