<?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 skech widget is ignoring availableCreateTools property in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/skech-widget-is-ignoring-availablecreatetools/m-p/1619466#M87213</link>
    <description>&lt;P&gt;I am trying to create a sketch widget in esri javascript. I am using the 4.30 libraries. I am setting a property called availableCreateTools and giving it 6 or 7 tools but the api just does not render the tools I am providing. It goes back to default values.&lt;/P&gt;&lt;P&gt;Here is my code, attached is the screenshot from the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp; sketch = new Sketch({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: graphicsLayer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view: view,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;availableCreateTools: ["point", "polyline", "rectangle", "freehandPolygon", "multipoint", "freehandPolyline", "polygon"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creationMode: "update"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;Is this a server side setting that needs to change or&amp;nbsp;a bug in the api or is there a different way to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 21:31:37 GMT</pubDate>
    <dc:creator>RakeshAjwani</dc:creator>
    <dc:date>2025-05-29T21:31:37Z</dc:date>
    <item>
      <title>skech widget is ignoring availableCreateTools property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/skech-widget-is-ignoring-availablecreatetools/m-p/1619466#M87213</link>
      <description>&lt;P&gt;I am trying to create a sketch widget in esri javascript. I am using the 4.30 libraries. I am setting a property called availableCreateTools and giving it 6 or 7 tools but the api just does not render the tools I am providing. It goes back to default values.&lt;/P&gt;&lt;P&gt;Here is my code, attached is the screenshot from the debugger.&lt;/P&gt;&lt;P&gt;&amp;nbsp; sketch = new Sketch({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: graphicsLayer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; view: view,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;availableCreateTools: ["point", "polyline", "rectangle", "freehandPolygon", "multipoint", "freehandPolyline", "polygon"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; creationMode: "update"&lt;/P&gt;&lt;P&gt;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;Is this a server side setting that needs to change or&amp;nbsp;a bug in the api or is there a different way to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insight is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 21:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/skech-widget-is-ignoring-availablecreatetools/m-p/1619466#M87213</guid>
      <dc:creator>RakeshAjwani</dc:creator>
      <dc:date>2025-05-29T21:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: skech widget is ignoring availableCreateTools property</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/skech-widget-is-ignoring-availablecreatetools/m-p/1621029#M87228</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html" target="_self"&gt;Sketch&lt;/A&gt; widget overrides the value of&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#availableCreateTools" target="_self"&gt;availableCreateTools&lt;/A&gt; supplied in the constructor.&amp;nbsp; Whether that's a bug or not is debatable (I would suggest that it is), but whatever the case, you should be able to set it after the constructor instead:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sketch = new Sketch({
	layer: graphicsLayer,
	view: view,
	creationMode: "update"
});

sketch.availableCreateTools = ["point", "polyline", "rectangle", "freehandPolygon", "multipoint", "freehandPolyline", "polygon"];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/skech-widget-is-ignoring-availablecreatetools/m-p/1621029#M87228</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-06-04T23:46:52Z</dc:date>
    </item>
  </channel>
</rss>

