<?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: Measurement in 2D sample - Disable the Info window and configure utilized units in code  ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1326643#M82192</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/27569"&gt;@BhavinSanghani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank-you very much for your reply.&lt;BR /&gt;I tried adding&amp;nbsp;&lt;SPAN&gt;popupEnabled: &lt;/SPAN&gt;&lt;SPAN&gt;false&amp;nbsp;&lt;/SPAN&gt;to the MapView constructor, but that did not cause a change in behaviour ie. the popup still shows at runtime when using the measurement2D tool, when the view has the following constructor code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; view = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; MapView({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; container: &lt;/SPAN&gt;&lt;SPAN&gt;"viewDiv"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; map: map,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; center: [&lt;/SPAN&gt;&lt;SPAN&gt;144.95&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;37.8&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zoom: &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; popupEnabled: &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also (optimistically) tried adding it to the function that runs once the view is loaded (included below), however this also appears to have no affect at runtime.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;view.when(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view.popupEnabled = &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any further advice on this topic greatly appreciated, as I would have thought the subject functionality should be possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Allison&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 08 Sep 2023 00:05:06 GMT</pubDate>
    <dc:creator>AllisonRobertson</dc:creator>
    <dc:date>2023-09-08T00:05:06Z</dc:date>
    <item>
      <title>Measurement in 2D sample - Disable the Info window and configure utilized units in code  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1325735#M82156</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Using the DistanceMeasurement2D and AreaMeasurement2D widgets, as represented in the "Measurement in 2D" sample (at &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement-2d/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement-2d/&lt;/A&gt;), is it possible to configure the widgets to disable the display of the info window, and hard code the unit of measurement used by the respective widgets?&lt;BR /&gt;Version 3.x of the ArcGIS JavaScript API allowed this, as discussed here : &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-measurement-widget-in-draw-mode-and/td-p/233929" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-measurement-widget-in-draw-mode-and/td-p/233929&lt;/A&gt;&lt;BR /&gt;... However the available properties and methods for the DistanceMeasurement2D and AreaMeasurement2D widgets, at Javascript 4.x, apparently do not. Please let me know if you are aware of how this may be done.&lt;/P&gt;&lt;P&gt;Thanks for any advice on this ...&lt;BR /&gt;Regards,&lt;BR /&gt;Allison&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 06:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1325735#M82156</guid>
      <dc:creator>AllisonRobertson</dc:creator>
      <dc:date>2023-09-06T06:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement in 2D sample - Disable the Info window and configure utilized units in code  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1325993#M82163</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/715279"&gt;@AllisonRobertson&lt;/a&gt;&amp;nbsp;Did you try popupEnabled: false with the MapView to disable the popup? MeasurementViewModel has view property that can give you MapView instance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 16:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1325993#M82163</guid>
      <dc:creator>BhavinSanghani</dc:creator>
      <dc:date>2023-09-06T16:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement in 2D sample - Disable the Info window and configure utilized units in code  ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1326643#M82192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/27569"&gt;@BhavinSanghani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank-you very much for your reply.&lt;BR /&gt;I tried adding&amp;nbsp;&lt;SPAN&gt;popupEnabled: &lt;/SPAN&gt;&lt;SPAN&gt;false&amp;nbsp;&lt;/SPAN&gt;to the MapView constructor, but that did not cause a change in behaviour ie. the popup still shows at runtime when using the measurement2D tool, when the view has the following constructor code&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt;&lt;SPAN&gt; view = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;SPAN&gt; MapView({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; container: &lt;/SPAN&gt;&lt;SPAN&gt;"viewDiv"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; map: map,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; center: [&lt;/SPAN&gt;&lt;SPAN&gt;144.95&lt;/SPAN&gt;&lt;SPAN&gt;, -&lt;/SPAN&gt;&lt;SPAN&gt;37.8&lt;/SPAN&gt;&lt;SPAN&gt;], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zoom: &lt;/SPAN&gt;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; popupEnabled: &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also (optimistically) tried adding it to the function that runs once the view is loaded (included below), however this also appears to have no affect at runtime.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;view.when(&lt;/SPAN&gt;&lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; view.popupEnabled = &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any further advice on this topic greatly appreciated, as I would have thought the subject functionality should be possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Allison&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Sep 2023 00:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-in-2d-sample-disable-the-info-window/m-p/1326643#M82192</guid>
      <dc:creator>AllisonRobertson</dc:creator>
      <dc:date>2023-09-08T00:05:06Z</dc:date>
    </item>
  </channel>
</rss>

