<?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 Sketch Widget : disabling tools and draw options in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-widget-disabling-tools-and-draw-options/m-p/1055817#M72998</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I’m trying to code the Sketch widget (4.x) to only display the rectangle draw tool on my map. I want the ability to limit the tool to just draw one graphic at a time.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Displaying the rectangle draw tool was easy to do, however, trying to remove the ability to draw multiple graphics at a time is my current issue with this widget.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also noticed when I click on the drawn graphic after drawing the rectangle, the scaling boxes change to vertices, but I don’t want that as an option for my rectangle graphics, and I am unable to find the event that removes the vertices.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to&amp;nbsp; limit the tool to just draw one graphic at a time and remove the vertices from the graphic?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 18:50:58 GMT</pubDate>
    <dc:creator>RachelPower</dc:creator>
    <dc:date>2021-05-07T18:50:58Z</dc:date>
    <item>
      <title>Sketch Widget : disabling tools and draw options</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-widget-disabling-tools-and-draw-options/m-p/1055817#M72998</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I’m trying to code the Sketch widget (4.x) to only display the rectangle draw tool on my map. I want the ability to limit the tool to just draw one graphic at a time.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Displaying the rectangle draw tool was easy to do, however, trying to remove the ability to draw multiple graphics at a time is my current issue with this widget.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also noticed when I click on the drawn graphic after drawing the rectangle, the scaling boxes change to vertices, but I don’t want that as an option for my rectangle graphics, and I am unable to find the event that removes the vertices.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to&amp;nbsp; limit the tool to just draw one graphic at a time and remove the vertices from the graphic?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 18:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-widget-disabling-tools-and-draw-options/m-p/1055817#M72998</guid>
      <dc:creator>RachelPower</dc:creator>
      <dc:date>2021-05-07T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Widget : disabling tools and draw options</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-widget-disabling-tools-and-draw-options/m-p/1055833#M72999</link>
      <description>&lt;P&gt;This should give you the options you're looking for&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const sketch = new Sketch({
  layer: graphicsLayer,
  view: view,
  availableCreateTools: ["rectangle"],
  creationMode: "single",
  defaultUpdateOptions: {
    tool: "move"
  }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 19:20:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-widget-disabling-tools-and-draw-options/m-p/1055833#M72999</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-05-07T19:20:06Z</dc:date>
    </item>
  </channel>
</rss>

