<?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 isn't showing my drawn graphic in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-isn-t-showing-my-drawn-graphic/m-p/1134417#M75944</link>
    <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I'm working on getting my maps up in React and I'm having some issues with the Sketch module.&lt;/P&gt;&lt;P&gt;After I complete the shape it only shows me the outline of the selected area, but I don't see the grey selected area like the tutorial example &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=sketch-geometries" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const model = new Sketch({
                view: view,
                layer: graphicLayerCreate,
                creationMode: "update",    
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I have tried to add another graphic to the layer with the geometry I receive back. Any ideas?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;model.on("create", (evt) =&amp;gt; {
    if (evt.state === "complete") { 
        //put another graphic on the layer 
    }
})&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 17 Jan 2022 19:39:38 GMT</pubDate>
    <dc:creator>dowhathappens</dc:creator>
    <dc:date>2022-01-17T19:39:38Z</dc:date>
    <item>
      <title>Sketch isn't showing my drawn graphic</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-isn-t-showing-my-drawn-graphic/m-p/1134417#M75944</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I'm working on getting my maps up in React and I'm having some issues with the Sketch module.&lt;/P&gt;&lt;P&gt;After I complete the shape it only shows me the outline of the selected area, but I don't see the grey selected area like the tutorial example &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=sketch-geometries" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const model = new Sketch({
                view: view,
                layer: graphicLayerCreate,
                creationMode: "update",    
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I have tried to add another graphic to the layer with the geometry I receive back. Any ideas?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;model.on("create", (evt) =&amp;gt; {
    if (evt.state === "complete") { 
        //put another graphic on the layer 
    }
})&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jan 2022 19:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-isn-t-showing-my-drawn-graphic/m-p/1134417#M75944</guid>
      <dc:creator>dowhathappens</dc:creator>
      <dc:date>2022-01-17T19:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sketch isn't showing my drawn graphic</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-isn-t-showing-my-drawn-graphic/m-p/1135017#M75988</link>
      <description>&lt;P&gt;It might be that you are using a different theme or version.&amp;nbsp; You can set the symbology to whatever you desire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   /// Style the Sketch Symbol
    const fillSymbolsketch = {
      type: "simple-fill",
      color: [255,10,2, 0.5],
      outline: {
        color: [230,0,0],
        width: 1     
      },
      style: "frontward-diagonal"
    };
    
    // Construct sketch graphics layer
    const sketchlayer = new GraphicsLayer({
      symbol: fillSymbolsketch,
      title: "Sketch Layer",
      listMode: "hide"
    });

    // create the sketch widget
    const sketch = new Sketch({
      layer: sketchlayer,
      view: theView,
      position: "top-left", 
      layout: "vertical",
      index: 5,
      // graphic will be selected as soon as it is created
      creationMode: "update"    
    });&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketch-isn-t-showing-my-drawn-graphic/m-p/1135017#M75988</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2022-01-19T16:35:57Z</dc:date>
    </item>
  </channel>
</rss>

