<?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: Drawing polygon problem in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314831#M28928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to zoom and pan on the touch devices? If so then it is not possible to do so when you are creating graphics with hybrid or freehand create modes. You need to set the create mode to click as shown below and you should be able to pan and zoom in/out while creating the graphic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt; sketchViewModel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"polygon"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;mode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"click"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2020 16:52:13 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2020-02-13T16:52:13Z</dc:date>
    <item>
      <title>Drawing polygon problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314830#M28927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to create a polygon in the application that we created with ArcGIS API for Javascript.&lt;BR /&gt;However, when we want to zoom in-out or pan while drawing a polygon, it does not allow these steps and it still continue to enter vertex. &lt;BR /&gt;I attached video about our problem. You can see that we tried zoom out after 8 second and pan it after 14 second on the map.&lt;/P&gt;&lt;P&gt;Please let me know if you have any ideas, how we can we figure out this situation.Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 13:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314830#M28927</guid>
      <dc:creator>HaticeKorkulu2</dc:creator>
      <dc:date>2020-02-13T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing polygon problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314831#M28928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to zoom and pan on the touch devices? If so then it is not possible to do so when you are creating graphics with hybrid or freehand create modes. You need to set the create mode to click as shown below and you should be able to pan and zoom in/out while creating the graphic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt; sketchViewModel&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;create&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"polygon"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;mode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"click"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314831#M28928</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2020-02-13T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing polygon problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314832#M28929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right, we use with touch devices. We tried your advice, now it is better than before. Thank you for your helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 20:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314832#M28929</guid>
      <dc:creator>HaticeKorkulu2</dc:creator>
      <dc:date>2020-02-13T20:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing polygon problem</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314833#M28930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/51882"&gt;Undral Batsukh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have another problem. When we changed the system as what you said, we got problem for samsung devices.iOS and Xaimo devices is ok.&lt;/P&gt;&lt;P&gt;Before when we used this sketchViewModel.create("polygon"); everyting is ok for all devices.&lt;/P&gt;&lt;P&gt;After we change like this sketchViewModel.create("polygon", { mode: 'click' }); we have a problem about click event with samsung devices to draw polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached our app link:&amp;nbsp;&lt;A href="https://iotapiw.hektas.com.tr/Home/FarmView"&gt;https://iotapiw.hektas.com.tr/Home/FarmView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea? What should we do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Hati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 09:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-problem/m-p/314833#M28930</guid>
      <dc:creator>HaticeKorkulu2</dc:creator>
      <dc:date>2020-02-21T09:14:16Z</dc:date>
    </item>
  </channel>
</rss>

