<?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: Set the default line color on a sketch in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1254238#M80145</link>
    <description>&lt;P&gt;That's it - thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 08:20:28 GMT</pubDate>
    <dc:creator>nevvo</dc:creator>
    <dc:date>2023-02-02T08:20:28Z</dc:date>
    <item>
      <title>Set the default line color on a sketch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1253890#M80136</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am wanting to set the default line colour for the sketch widget in a similar fashion to this:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-default-color-of-the-draw-widget/td-p/17169" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-change-the-default-color-of-the-draw-widget/td-p/17169&lt;/A&gt;&amp;nbsp; but in the 4.X javascript world.&lt;/P&gt;&lt;P&gt;I am able to assign a color to a graphic by setting the symbol on the graphic that I can then add to a view by using:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const graphic = new Graphic({
geometry: geometry,
symbol: {
type: this.options.line.type,
color: this.options.line.color,
width: this.options.line.width
}
});&lt;/LI-CODE&gt;&lt;P&gt;But I am not sure what I would need to default and on what object so that when I draw lines the custom color is used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1253890#M80136</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-02-01T16:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set the default line color on a sketch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1253978#M80139</link>
      <description>&lt;P&gt;This might do what you're looking for:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sketch.viewModel.polylineSymbol =  {
	type: "simple-line", //autocasts as new SimpleLineSymbol()
	color: "red",
	width: "4px",
	style: "solid"
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1253978#M80139</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-02-01T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set the default line color on a sketch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1254238#M80145</link>
      <description>&lt;P&gt;That's it - thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-the-default-line-color-on-a-sketch/m-p/1254238#M80145</guid>
      <dc:creator>nevvo</dc:creator>
      <dc:date>2023-02-02T08:20:28Z</dc:date>
    </item>
  </channel>
</rss>

