Select to view content in your preferred language

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

912
2
05-16-2014 06:40 AM
Montgomery_CountyPlanning_Depa
Deactivated User
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"));
    measurement.startup();


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>
        </div>
      </div>
0 Kudos
2 Replies
JonathanUihlein
Esri Regular Contributor
Hello.

Using the following sample, I added your code but it is working as expected.

http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=widget_measurement

In what browsers does your issue occur?
Does it work for any particular browser?
What browser versions are you using?
Could you post a screenshot so I can visually confirm what I am trying to replicate.

Because the Measurement widget is recieving significant updates in the next release, I want to make sure any existing issues are resolved.
0 Kudos
MarkLewin2
Emerging Contributor
Hi,

I'm also having problems with the measurement tool at 3.9. I've specified a geometry service and proxy in esri.defaults.config, but when I try to draw and area or a line, I just get a bunch of south-heading lines at each point I click. Please see below:

[ATTACH=CONFIG]34068[/ATTACH]

I would appreciate your help!
0 Kudos