<?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: SketchValueOptions for new arcgis-sketch web component in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705661#M88493</link>
    <description>&lt;P&gt;The documentation doesn't explain this very well, but all the properties and functions of a Widget should still be accessible in a Component through JavaScript. You just need to use the document.getElementById() method to capture the DOM node of the Component. That DOM node is for all practical purposes the Widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const sketchWidget = document.getElementById('sketchComponentId')
sketchWidget.valueOptions = myValueOptions&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jun 2026 14:27:45 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2026-06-02T14:27:45Z</dc:date>
    <item>
      <title>SketchValueOptions for new arcgis-sketch web component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705145#M88485</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently in the process of migrating our widgets to the new web components.&amp;nbsp;&lt;/P&gt;&lt;P&gt;While migrating the Sketch Widget, I ran into an issue. I do not see any option anymore to set the SketchValueOptions. We use the valueOptions to change the units for the tooltip to nautical-miles like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;valueOptions&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;displayUnits&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;length&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'nautical-miles'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;area&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'square-nautical-miles'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The only unit related option when working with the arcgis-sketch (that I found) is setting the unit system for the labels (labelOptions) via a PortalItem on the Map?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Insa_bel_0-1780046723266.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/153217i97DA6DF77BE62D12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Insa_bel_0-1780046723266.png" alt="Insa_bel_0-1780046723266.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;BR /&gt;This only works with SceneViews, but we use a MapView.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not find any unit options that only apply to the sketch component directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me out there?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 May 2026 09:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705145#M88485</guid>
      <dc:creator>Insa_bel</dc:creator>
      <dc:date>2026-05-29T09:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: SketchValueOptions for new arcgis-sketch web component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705143#M88486</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 12:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705143#M88486</guid>
      <dc:creator>Insa_bel</dc:creator>
      <dc:date>2026-06-01T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: SketchValueOptions for new arcgis-sketch web component</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705661#M88493</link>
      <description>&lt;P&gt;The documentation doesn't explain this very well, but all the properties and functions of a Widget should still be accessible in a Component through JavaScript. You just need to use the document.getElementById() method to capture the DOM node of the Component. That DOM node is for all practical purposes the Widget.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const sketchWidget = document.getElementById('sketchComponentId')
sketchWidget.valueOptions = myValueOptions&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2026 14:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchvalueoptions-for-new-arcgis-sketch-web/m-p/1705661#M88493</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2026-06-02T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

