<?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 Re: Measure Tool no longer gives result on mouse MOVE, only on click in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000831#M70786</link>
    <description>&lt;P&gt;No, sorry, it doesn't.&amp;nbsp; On the working version you click to start the measure.&amp;nbsp; Then as you move the mouse the distance from the first point to the current mouse location is dynamically calculated in the results, so changes as you move the mouse.&lt;/P&gt;&lt;P&gt;In the non-working version you only get the node-to-node distance when you click&lt;/P&gt;&lt;P&gt;I've just done more testing and this broke in 3.14 - this page uses 3.13 and works&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/failmaybe.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/failmaybe.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The dynamic measure is import for our users as they need to see what is X metres away from a point, rather than how far are these two point from each other.&amp;nbsp; So they will click, then move the mouse until the measure tool says the number they are working with.&lt;/P&gt;&lt;P&gt;The only thing I can see in the release notes for 3.14 is&lt;/P&gt;&lt;P&gt;"BUG-000085838: Fixed an issue where polar projection coordinates displayed incorrectly when using the measurement widget."&lt;/P&gt;&lt;P&gt;It is even more obvious with the location tool, which will return long/lat as you move the mouse around.&amp;nbsp; On the fail site&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/fail.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/fail.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It only returns these on a mouse click&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ACM&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 19:04:58 GMT</pubDate>
    <dc:creator>AdrianMarsden</dc:creator>
    <dc:date>2020-11-12T19:04:58Z</dc:date>
    <item>
      <title>Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000639#M70782</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a site.&amp;nbsp; It was using 3.11, now the highest 3.30, pending some more refactoring to get it to 4.x&lt;/P&gt;&lt;P&gt;There is a measure tool.&amp;nbsp; It no longer gives a result when the mouse is moved around.&amp;nbsp; Only when the mouse is clicked.&lt;/P&gt;&lt;P&gt;It still works if I go back to 3.11&lt;/P&gt;&lt;P&gt;I have added this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        measurement.on("measure-end", function (evt) {
            console.log("Really done.");
           // measurement.setTool(evt.toolName, false);
            enableID()
        });

        measurement.on("measure", function (evt) {
            console.log("moved");
           // measurement.setTool(evt.toolName, false);
          
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the API ref "measure" event should be when the mouse moves&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Fires any time the mouse pointer moves while doing a distance measurement.&amp;nbsp;&lt;/SPAN&gt;&lt;I&gt;(Added at v3.11)&lt;/I&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Prior to v3.16, this event only fired on single-click."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yet on my new code I only get an output when I click - so showing&amp;nbsp;the pre-v3.16 behaviour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've stripped my code back as far as I can - I had added stuff to change the default units and to add more, and still the same behaviour.&amp;nbsp; I have compared my code with the sample, but can't see anything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edit: I stripped the Esri sample right down and now got a working version and a broken version - the broken version uses one of our services as the basemap, so in British National Grid.&amp;nbsp; And, yes, we have a Geometry service defined.&lt;/P&gt;&lt;P&gt;&lt;A href="http://maps.strata.solutions/eddc/test/fail.html" target="_blank"&gt;http://maps.strata.solutions/eddc/test/fail.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://maps.strata.solutions/eddc/test/work.html" target="_blank"&gt;http://maps.strata.solutions/eddc/test/work.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 14:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000639#M70782</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2020-11-12T14:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000800#M70785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6818"&gt;@AdrianMarsden&lt;/a&gt;, thanks for reporting this issue. I'm not sure I understand the problem though, as it seems to work as expected in the official 3x Measurement dijit (the current 3x version is 3.34) sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/3/samples/widget_measurement/index.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/samples/widget_measurement/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000800#M70785</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2020-11-12T17:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000831#M70786</link>
      <description>&lt;P&gt;No, sorry, it doesn't.&amp;nbsp; On the working version you click to start the measure.&amp;nbsp; Then as you move the mouse the distance from the first point to the current mouse location is dynamically calculated in the results, so changes as you move the mouse.&lt;/P&gt;&lt;P&gt;In the non-working version you only get the node-to-node distance when you click&lt;/P&gt;&lt;P&gt;I've just done more testing and this broke in 3.14 - this page uses 3.13 and works&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/failmaybe.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/failmaybe.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The dynamic measure is import for our users as they need to see what is X metres away from a point, rather than how far are these two point from each other.&amp;nbsp; So they will click, then move the mouse until the measure tool says the number they are working with.&lt;/P&gt;&lt;P&gt;The only thing I can see in the release notes for 3.14 is&lt;/P&gt;&lt;P&gt;"BUG-000085838: Fixed an issue where polar projection coordinates displayed incorrectly when using the measurement widget."&lt;/P&gt;&lt;P&gt;It is even more obvious with the location tool, which will return long/lat as you move the mouse around.&amp;nbsp; On the fail site&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/fail.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/fail.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It only returns these on a mouse click&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ACM&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 19:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000831#M70786</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2020-11-12T19:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000879#M70788</link>
      <description>&lt;P&gt;More samples&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/work.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/work.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is more or less the Esri sample with a few consoles.logs added one on the measure.end and one on the measure - remember the measure event "&lt;SPAN&gt;Fires any time the mouse pointer moves while doing a distance measurement."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Look at the console after the first mouse click for a line measurement.&amp;nbsp; It sends loads of "moved" values&lt;/P&gt;&lt;P&gt;Now look at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/failmaybe.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/failmaybe.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the sample using 3.13.&lt;/P&gt;&lt;P&gt;Do a line measure.&amp;nbsp; After the first click, as you move the mouse the distance from the first click is outputted into the widget fine (change to feet to get&amp;nbsp; some bigger numbers)&lt;/P&gt;&lt;P&gt;HOWEVER - the console.log which fires off with the measure event is only firing when you click the mouse, not when it is moved.&amp;nbsp; Not crucial as the output is working.&lt;/P&gt;&lt;P&gt;Finally&lt;/P&gt;&lt;P&gt;&lt;A href="https://maps.strata.solutions/eddc/test/fail.html" target="_blank"&gt;https://maps.strata.solutions/eddc/test/fail.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the total fail version with anything newer than 3.14&lt;/P&gt;&lt;P&gt;Again, length measure.&amp;nbsp; One click, move the mouse - no distance until that second click, then the result only gets updated on the mouse click, rather than mouse move.&amp;nbsp; output from the "measure" even is the same as the partial fail above.&lt;/P&gt;&lt;P&gt;I hope that helps.&amp;nbsp; Now time to stop for the day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 20:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1000879#M70788</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2020-11-12T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1001217#M70806</link>
      <description>&lt;P&gt;To me it looks like the "measure" event is broken when the Projection of the map isn't a standard one, as that is the only thing that is different and as can be seen from the console.log on those examples, very different results show.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1001217#M70806</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2020-11-13T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Tool no longer gives result on mouse MOVE, only on click</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1005139#M70923</link>
      <description>&lt;P&gt;I have had this from Esri(UK)&amp;nbsp; - so I guess I've got to go back to 3.13 for my main site - In no way have I the time or skills to get to 4.x&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;BUG-000103128 : Measurement widget's 'measure' event shows incorrect behavior when using a non-mercator projection&lt;BR /&gt;&lt;BR /&gt;the development team had already looked at it as closed it as a known issue and would not be addressing in 3.x&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 27 Nov 2020 08:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measure-tool-no-longer-gives-result-on-mouse-move/m-p/1005139#M70923</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2020-11-27T08:43:30Z</dc:date>
    </item>
  </channel>
</rss>

