<?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: Draw Widget: Skip loading DrawBox and instead show Polyline and Polygon icons directly in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-skip-loading-drawbox-and-instead-show/m-p/1239651#M22695</link>
    <description>&lt;P&gt;A first step could be to only enable Polylines to be selectable in the Draw Widget Widget.html.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='types:["polyline"],showClear:false' style="margin-top:5px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then add Polygon symbols to jimu.js/dijit/SymbolsInfo/line.json.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[
    {
        "tags":
        [
            "solid"
        ],
        "title": "Test1 thin",
        "style": "esriSLSSolid", 
        "color":
        [
            48,
            133,
            3,
            255
        ],
        "width": 1,
        "name": "Test1",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "solid"
        ],
        "title": "Test2 Thin",
        "style": "esriSLSSolid",
        "color":
        [
            244,
            0,
            0,
            255
        ],
        "width": 1,
        "name": "Test2",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "solid"
        ],
        "title": "Other Thin",
        "style": "esriSLSSolid",
        "color":
        [
            104,
            107,
            106,
            255
        ],
        "width": 1,
        "name": "Other",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "opaque",
            "blue"
        ],
        "title": "Aqua",
        "style": "esriSFSSolid",
        "color":
        [
            203,
            207,
            8,
            150
        ],
        "name": "Aqua 6",
        "type": "esriSFS",
        "outline":
        {
            "style": "esriSLSSolid",
            "color":
            [
                0,
                0,
                0,
                0
            ],
            "width": 1.5,
            "type": "esriSLS"
        }
    },
    {
        "tags":
        [
            "opaque"
        ],
        "title": "Orange",
        "style": "esriSFSSolid",
        "color":
        [
            156,
            155,
            151,
            150
        ],
        "name": "Orange 6",
        "type": "esriSFS",
        "outline":
        {
            "style": "esriSLSSolid",
            "color":
            [
                0,
                0,
                0,
                0
            ],
            "width": 1.5,
            "type": "esriSLS"
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This displays the polygons side-by-side with the line icons. But those polygons are not drawable as I need to connect them to the 'fill section' functions within jimu.js/dijit/SymbolChooser.js. And this I cannot seem to get working.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 14:59:05 GMT</pubDate>
    <dc:creator>DavidPaulus</dc:creator>
    <dc:date>2022-12-09T14:59:05Z</dc:date>
    <item>
      <title>Draw Widget: Skip loading DrawBox and instead show Polyline and Polygon icons directly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-skip-loading-drawbox-and-instead-show/m-p/1238214#M22683</link>
      <description>&lt;P&gt;When the user clicks to open the Draw Widget, it loads the DrawBox from which the type of drawing can be selected, e.g., Polyline, Polygon and others. I want to only include Polyline and Polygon drawings and can do that in the Draw Widget Widget.html via:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;lt;div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='types:["polyline", "polygon"],showClear:false' style="margin-top:5px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But what I actually want is to skip the selection of Polyline and Polygon altogether and show all available Polyline and Polygon icons directly when opening the Draw Widget, i.e., user clicking it.&lt;/P&gt;&lt;P&gt;So far unable to fully understand the call structure in DrawBox and SymbolChoolser, where I believe the changes need to be made?&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-skip-loading-drawbox-and-instead-show/m-p/1238214#M22683</guid>
      <dc:creator>DavidPaulus</dc:creator>
      <dc:date>2022-12-06T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Widget: Skip loading DrawBox and instead show Polyline and Polygon icons directly</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-skip-loading-drawbox-and-instead-show/m-p/1239651#M22695</link>
      <description>&lt;P&gt;A first step could be to only enable Polylines to be selectable in the Draw Widget Widget.html.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='types:["polyline"],showClear:false' style="margin-top:5px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then add Polygon symbols to jimu.js/dijit/SymbolsInfo/line.json.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;[
    {
        "tags":
        [
            "solid"
        ],
        "title": "Test1 thin",
        "style": "esriSLSSolid", 
        "color":
        [
            48,
            133,
            3,
            255
        ],
        "width": 1,
        "name": "Test1",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "solid"
        ],
        "title": "Test2 Thin",
        "style": "esriSLSSolid",
        "color":
        [
            244,
            0,
            0,
            255
        ],
        "width": 1,
        "name": "Test2",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "solid"
        ],
        "title": "Other Thin",
        "style": "esriSLSSolid",
        "color":
        [
            104,
            107,
            106,
            255
        ],
        "width": 1,
        "name": "Other",
        "type": "esriSLS"
    },
    {
        "tags":
        [
            "opaque",
            "blue"
        ],
        "title": "Aqua",
        "style": "esriSFSSolid",
        "color":
        [
            203,
            207,
            8,
            150
        ],
        "name": "Aqua 6",
        "type": "esriSFS",
        "outline":
        {
            "style": "esriSLSSolid",
            "color":
            [
                0,
                0,
                0,
                0
            ],
            "width": 1.5,
            "type": "esriSLS"
        }
    },
    {
        "tags":
        [
            "opaque"
        ],
        "title": "Orange",
        "style": "esriSFSSolid",
        "color":
        [
            156,
            155,
            151,
            150
        ],
        "name": "Orange 6",
        "type": "esriSFS",
        "outline":
        {
            "style": "esriSLSSolid",
            "color":
            [
                0,
                0,
                0,
                0
            ],
            "width": 1.5,
            "type": "esriSLS"
        }
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This displays the polygons side-by-side with the line icons. But those polygons are not drawable as I need to connect them to the 'fill section' functions within jimu.js/dijit/SymbolChooser.js. And this I cannot seem to get working.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-skip-loading-drawbox-and-instead-show/m-p/1239651#M22695</guid>
      <dc:creator>DavidPaulus</dc:creator>
      <dc:date>2022-12-09T14:59:05Z</dc:date>
    </item>
  </channel>
</rss>

