AnsweredAssumed Answered

Measurement Tool - "clearResult() is not a function"

Question asked by lcesri on Jan 23, 2014
Latest reply on Jan 23, 2014 by lcesri
I'm having an issue where the measurement tool's graphics are not going away after I dismiss the measurement tool.

The tool's markup looks like this:

<td align="center" align="left" id="tdMeasure" class="tdHeader">
                                <img alt="Measure" src="images/measure.png" class="imgOptions" title="Measure"
                                    onclick="
                                    if (measureDialog.open){
                                    measureDialog.clearResult();
                                    measureDialog.hide();
                                    alert('worked');
                                    }
                                    else{
                                    measureDialog.show();
                                    }
                                    " />
                            </td>

According to the documentation (https://developers.arcgis.com/en/javascript/jsapi/measurement.html), clearResult() is indeed a method that should remove the graphics (apparently it was added in v2.4). My application is using the 3.5compact version of the API, so why would the browser tell me clearResult() is not a function? I am completely stumped here.

Thanks for the help.

Outcomes