Measurement area tool doesn't draw the entire polygon

Discussion created by schlot on May 29, 2013
Latest reply on Jun 19, 2013 by Jian
I have the measurement dijit activated in a floating pane, which opens with a button.  I have the common issue of needing to both measure and identify and keep track of each.  In general, this is working for me, until I noticed that the polygon I was drawing for measuring the area was only showing me one segment at a time, not the whole polygon!

I'm declaring the measurement dijit in the init function as
 measurement = new esri.dijit.Measurement({
        map: map,
        defaultAreaUnit: esri.Units.ACRES,
        defaultLengthUnit: esri.Units.FEET
      }, dojo.byId('measureDiv2'));

The function for opening the floating pane also sets the variable I'm using in the identify function for whether or not the measure tool is currently active

function openMeasure () {
    measureActive = true;
        var fp = dijit.byId('floater_measure');
        if (( =="visibility: hidden;") || ("VISIBILITY:hidden;")) {
      var snapManager = map.enableSnapping({snapKey:dojo.keys.copyKey});

dojo.connect(measurement.length, "onClick", function(){
            measureActive = true;
          console.log("Distance Tool activated");

dojo.connect(measurement.area, "onClick", function(){
            measureActive = true;
          console.log("Area Tool activated");
    dojo.connect(measurement, "onMeasureEnd", function(activeTool, geometry){
        this.setTool(activeTool, false);
        measureActive = false;
        }, 5000);;
       identifyHandler = dojo.connect(map, 'onClick' , doIdentify);
     //   console.log("Measurement done");

I've tried this in Firefox and IE and I get the same results.  I'm still using the 3.2 version of the API library.  I got an error in measurement.js when I tried version 3.3 and it didn't do anything different trying 3.4.