<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Draw and Measure widget - live measure function in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/draw-and-measure-widget-live-measure-function/m-p/139035#M4567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added a live measure to the Draw and Measure widget for the line and polyline draw functions by adding mouse click and move listeners to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is functional, but this fails to distinguish pan events from real click events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an approach I should use to avoid this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it should be using a drawStart event and then the 'active' graphic to base measurements off. But I can not find where to listen for the drawStart or how to get a handle on the graphic being drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This in in the 2.3 version of the viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 20:50:54 GMT</pubDate>
    <dc:creator>StevenHaslemore</dc:creator>
    <dc:date>2011-09-27T20:50:54Z</dc:date>
    <item>
      <title>Draw and Measure widget - live measure function</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/draw-and-measure-widget-live-measure-function/m-p/139035#M4567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added a live measure to the Draw and Measure widget for the line and polyline draw functions by adding mouse click and move listeners to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is functional, but this fails to distinguish pan events from real click events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have an approach I should use to avoid this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it should be using a drawStart event and then the 'active' graphic to base measurements off. But I can not find where to listen for the drawStart or how to get a handle on the graphic being drawn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This in in the 2.3 version of the viewer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 20:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/draw-and-measure-widget-live-measure-function/m-p/139035#M4567</guid>
      <dc:creator>StevenHaslemore</dc:creator>
      <dc:date>2011-09-27T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Draw and Measure widget - live measure function</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/draw-and-measure-widget-live-measure-function/m-p/139036#M4568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Steven,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently tasked with adding this 'on-the-fly' measurement functionality as you describe. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate that the new Advanced Draw and Measure widget does exaclty this, but as we are using a live viewer released at 2.3.1 with other customizations, i would prefer to just add in this fucntionality rather than upgrade completely to the Advanced widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wondered if you had managed to get your widget doing as you wanted?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would love to be able to simply add the mouseMove listener to the drawStart event and enable this to work with the current basic draw and measure tool if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Really appreciate any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the very best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caroline&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 12:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/draw-and-measure-widget-live-measure-function/m-p/139036#M4568</guid>
      <dc:creator>CarolineCochrane</dc:creator>
      <dc:date>2012-01-26T12:38:23Z</dc:date>
    </item>
  </channel>
</rss>

