<?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 How to programmatically draw a sketchModel in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240489#M79625</link>
    <description>I want to use the button to trigger a click event for drawing a sketchModel. Is there any good way to do this?</description>
    <pubDate>Tue, 13 Dec 2022 08:06:49 GMT</pubDate>
    <dc:creator>Lzy</dc:creator>
    <dc:date>2022-12-13T08:06:49Z</dc:date>
    <item>
      <title>How to programmatically draw a sketchModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240489#M79625</link>
      <description>I want to use the button to trigger a click event for drawing a sketchModel. Is there any good way to do this?</description>
      <pubDate>Tue, 13 Dec 2022 08:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240489#M79625</guid>
      <dc:creator>Lzy</dc:creator>
      <dc:date>2022-12-13T08:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically draw a sketchModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240647#M79633</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sample shows how it can be done:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=highlight-features-by-geometry" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=highlight-features-by-geometry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the button click you call the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create" target="_self"&gt;SketchViewModel.create()&lt;/A&gt; method and pass in the tool name you need as shown below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;selectButton.addEventListener("click", () =&amp;gt; {
  sketchViewModel.create("rectangle");
});&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240647#M79633</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-12-13T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to programmatically draw a sketchModel</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240927#M79640</link>
      <description>&lt;P&gt;Thank you for your answer, maybe I didn't express it clearly. I want to finish drawing the polygon when creating a polygon given a coordinate point and adding each point by clicking the button. Instead of drawing by tapping the screen.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 02:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-programmatically-draw-a-sketchmodel/m-p/1240927#M79640</guid>
      <dc:creator>Lzy</dc:creator>
      <dc:date>2022-12-14T02:15:12Z</dc:date>
    </item>
  </channel>
</rss>

