<?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: Measuring widgets unit property in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measuring-widgets-unit-property/m-p/151758#M14114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the find. This is an equivalency issue with 4.12.&amp;nbsp;I have submitted a bug for this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #080707; background-color: #ffffff;"&gt;BUG-000123678&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jul 2019 00:09:46 GMT</pubDate>
    <dc:creator>BenElan</dc:creator>
    <dc:date>2019-07-13T00:09:46Z</dc:date>
    <item>
      <title>Measuring widgets unit property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measuring-widgets-unit-property/m-p/151757#M14113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As of the release of the API 4.12 we have a problem with the Measuring tools. When instantiating the tools with the unit property set to "meters" or "square-meters", the tools won't initialize and report&amp;nbsp;the following error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Cannot read property 'coordsys' of null&lt;BR /&gt; at Function.b.DX (geometryEngine.js:1155)&lt;BR /&gt; at Function.b.vR (geometryEngine.js:1149)&lt;BR /&gt; at g.Ao (geometryEngine.js:1149)&lt;BR /&gt; at Function.d._getTransformation (geometryEngine.js:1280)&lt;BR /&gt; at p (projection.js:4)&lt;BR /&gt; at k (projection.js:4)&lt;BR /&gt; at Object.b.project (projection.js:5)&lt;BR /&gt; at Object.a._updatePolylines (DistanceMeasurement2DTool.js:14)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (DistanceMeasurement2DTool.js:6)&lt;BR /&gt; at f (dojo.js:386)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;This is also the case with other units. Only "metric" works for me (haven't tried imperial).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try it in de sample at:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-measurement-2d"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=widgets-measurement-2d&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;activeWidget = new DistanceMeasurement2D({&lt;BR /&gt; view: view,&lt;BR /&gt; unit: "meters"&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;activeWidget = new DistanceMeasurement2D({&lt;BR /&gt;view: view,&lt;BR /&gt;unit: "metric"&lt;BR /&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;works, so I use that now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug introduced in 4.12? In 4.11 we had no problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 14:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measuring-widgets-unit-property/m-p/151757#M14113</guid>
      <dc:creator>FreddyBroring</dc:creator>
      <dc:date>2019-07-12T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring widgets unit property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measuring-widgets-unit-property/m-p/151758#M14114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freddy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the find. This is an equivalency issue with 4.12.&amp;nbsp;I have submitted a bug for this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #080707; background-color: #ffffff;"&gt;BUG-000123678&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jul 2019 00:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measuring-widgets-unit-property/m-p/151758#M14114</guid>
      <dc:creator>BenElan</dc:creator>
      <dc:date>2019-07-13T00:09:46Z</dc:date>
    </item>
  </channel>
</rss>

