<?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 Widget selects existing graphics in Graphic Layer (Sketch widget) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-selects-existing-graphics-in/m-p/1123480#M75503</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/30471"&gt;@CameronBlandy&lt;/a&gt;,&amp;nbsp;thanks for the question. Are you setting the "&lt;SPAN&gt;updateOnGraphicClick" property on the Sketch widget, or SketchViewModel? If you set it on the ViewModel, it seems to behave as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;test-app (with measure)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://codepen.io/noash/pen/zYEqdbr?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/zYEqdbr?editors=1000&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 18:33:57 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-12-07T18:33:57Z</dc:date>
    <item>
      <title>Measurement Widget selects existing graphics in Graphic Layer (Sketch widget)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-selects-existing-graphics-in/m-p/1122666#M75472</link>
      <description>&lt;P&gt;I am trying to use both the Sketch and Measurement widgets in a single map view. I do not want the graphics to be editable once the graphic is drawn so I set&amp;nbsp;updateOnGraphicClick to false on construction of the Sketch widget.&lt;/P&gt;&lt;P&gt;When I switch to a Measurement tool and click on the map view where the graphic is it selects the graphic and I am unable to do the measurement. If I click outside the graphic as the first measure point (line or area) and then click a point inside the graphic it seems to work fine. Is this the intended use of the Measurement widget?&lt;/P&gt;&lt;P&gt;I would like to think you can use the Measurement widget independently of the graphics on the map view.&lt;/P&gt;&lt;P&gt;I am using the 4.21 api.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 21:34:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-selects-existing-graphics-in/m-p/1122666#M75472</guid>
      <dc:creator>CameronBlandy</dc:creator>
      <dc:date>2021-12-03T21:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget selects existing graphics in Graphic Layer (Sketch widget)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-selects-existing-graphics-in/m-p/1123480#M75503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/30471"&gt;@CameronBlandy&lt;/a&gt;,&amp;nbsp;thanks for the question. Are you setting the "&lt;SPAN&gt;updateOnGraphicClick" property on the Sketch widget, or SketchViewModel? If you set it on the ViewModel, it seems to behave as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;test-app (with measure)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://codepen.io/noash/pen/zYEqdbr?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/zYEqdbr?editors=1000&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:33:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-selects-existing-graphics-in/m-p/1123480#M75503</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-12-07T18:33:57Z</dc:date>
    </item>
  </channel>
</rss>

