AnsweredAssumed Answered

WAB Draw Widget Measure Problem

Question asked by tsellste Champion on Feb 17, 2015
Latest reply on Apr 13, 2015 by tsellste

I found a minor bug in the draw widget.  When measuring a polygon, extent, triangle, the function performing the perimeter calculation was dropping the last point from the polygon ring.  This was creating an incomplete measurement of every polygon drawn.

 

The offending line in the _addPolygonMeasure function:

 

points = points.slice(0, points.length - 1);

 

I commented out this line and in calculates the perimeter correctly.  I am posting this in hopes that it will fixed in core project.

 

Regards,

 

Tom

 

Outcomes