Measurement : Shows one segment of the draw polygon at a time while measuring areas

Discussion created by mcplng on May 16, 2014
Latest reply on May 25, 2014 by mlewin-esriuk-esridist
Hello all,
I am using ArcGIS JavaScript API version 3.9

I am having an issue where the MEasurement tool displays only one segment of the drawn polygon at a time while measuring areas. Is this a bug? Is there any way of fixing it?

My code is below:

JS Code:
    var measurement = new Measurement({
        map: map,
        defaultAreaUnit: esri.Units.ACRES,
        defaultLengthUnit: esri.Units.FEET
    }, dom.byId("measurementDiv"));

HTML Code:

      <!-- Measure tool -->
      <div style="position:absolute; left:45px; top:50px; z-Index:998;width: 230px">
        <div id="titlePane" data-dojo-type="dijit.TitlePane" data-dojo-props="title:'Measurement', closable:false, open:false">
            <div id="measurementDiv"></div>
            <span style="font-size:smaller;padding:5px 5px;">Press <b>CTRL</b> to enable snapping.</span>