<?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: Sketch Grid issue on 4.31 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1559955#M86090</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/724210"&gt;@DavidOke&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;It will be on the app to hide the grid before calling destroy on the widgets that utilize the GridControls. This means Sketch, Editor, SnappingControls, and GridControls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The way to hide the grid in Sketch is the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Sketch.snappingOptions.gridEnabled = false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is necessary because the grid lives in the view, and multiple widgets may be utilizing the grid. If we destroy one widget, the other widget maybe using the grid, so removing the grid would not be ideal in this scenario. We will be working on improving this experience for better widget communication, but at least for now this is how you can hide the grid.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Jose&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 21:52:45 GMT</pubDate>
    <dc:creator>JoseBanuelos</dc:creator>
    <dc:date>2024-11-18T21:52:45Z</dc:date>
    <item>
      <title>Sketch Grid issue on 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1559371#M86079</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We just upgraded an app to the new 4.31 version to try out the grid display in the sketch widget. I came across an issue where if I display the grid, then destroy the widget, the grid doesn't get cleaned up and becomes a permanent display feature in the map window.&lt;/P&gt;&lt;P&gt;Is this intended, and if so, is there a way to programmatically remove the grid from the display after the sketch widget has been destroyed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;*Edit: Found a workaround. Check for&amp;nbsp;&lt;EM&gt;mapview&lt;/EM&gt;.grid. If it is not null, set it to null. This property is not apart of the map view typings.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1559371#M86079</guid>
      <dc:creator>DavidOke</dc:creator>
      <dc:date>2024-11-15T20:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Grid issue on 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1559955#M86090</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/724210"&gt;@DavidOke&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;It will be on the app to hide the grid before calling destroy on the widgets that utilize the GridControls. This means Sketch, Editor, SnappingControls, and GridControls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The way to hide the grid in Sketch is the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Sketch.snappingOptions.gridEnabled = false;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is necessary because the grid lives in the view, and multiple widgets may be utilizing the grid. If we destroy one widget, the other widget maybe using the grid, so removing the grid would not be ideal in this scenario. We will be working on improving this experience for better widget communication, but at least for now this is how you can hide the grid.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Jose&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 21:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1559955#M86090</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2024-11-18T21:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Grid issue on 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1560266#M86098</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/724210"&gt;@DavidOke&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;The team also would like to mention that accessing view.grid directly is not recommended. This has not been&amp;nbsp; documented yet, as the API is likely to change.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 15:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1560266#M86098</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2024-11-19T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch Grid issue on 4.31</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1560279#M86099</link>
      <description>&lt;P&gt;Thanks Jose! Doesn't look like setting gridEnable to false immediately removed the grid.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidOke_0-1732032147299.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119889i58CBC0CEAB2D0A7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidOke_0-1732032147299.png" alt="DavidOke_0-1732032147299.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Got it to work doing this but not quite sure this is the best solution wrapping with requestAnimationFrame:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidOke_1-1732032218204.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119890i7474C622DD89F8EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidOke_1-1732032218204.png" alt="DavidOke_1-1732032218204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 16:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-grid-issue-on-4-31/m-p/1560279#M86099</guid>
      <dc:creator>DavidOke</dc:creator>
      <dc:date>2024-11-19T16:05:00Z</dc:date>
    </item>
  </channel>
</rss>

