<?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: Creating a line graphic with symbol style &amp;quot;Solid&amp;quot; throws in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329533#M3892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2017 14:09:02 GMT</pubDate>
    <dc:creator>ChadYoder1</dc:creator>
    <dc:date>2017-03-17T14:09:02Z</dc:date>
    <item>
      <title>Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329530#M3889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modified one of the standard WPF samples (RenderSimpleMarkers) to create a line graphic instead of a point graphic e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replaced: &amp;nbsp;&lt;/P&gt;&lt;P&gt;Graphic graphicWithSymbol = new Graphic(centralLocation, simpleSymbol);&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Graphic graphicWithSymbol =&amp;nbsp;CreateSimpleLine(),&amp;nbsp;&lt;/SPAN&gt;where CreateSimpleLine is &amp;nbsp;the following procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public static Graphic CreateSimpleLine()&lt;BR /&gt; {&lt;BR /&gt; MapPoint point1 = new MapPoint(-79.497238, 8.849289, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;var newPoint1 = (MapPoint)GeometryEngine.Project(point1, SpatialReferences.WebMercator);&lt;/P&gt;&lt;P&gt;var cartoLineSym = new SimpleLineSymbol(&lt;STRONG&gt;SimpleLineSymbolStyle.Solid&lt;/STRONG&gt;, Colors.Black, 1);&lt;/P&gt;&lt;P&gt;MapPoint point2 = new MapPoint(-80.035568, 9.432302, SpatialReferences.Wgs84);&lt;BR /&gt; var newPoint2 = (MapPoint)GeometryEngine.Project(point2, SpatialReferences.WebMercator);&lt;BR /&gt; var aBuilder = new PolylineBuilder(new MapPoint[] { newPoint1, newPoint2 });&lt;/P&gt;&lt;P&gt;var aGraphic = new Graphic(aBuilder.ToGeometry(), cartoLineSym);&lt;BR /&gt; return aGraphic;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the&amp;nbsp;SimpleLineSymbolStyle to other than &lt;STRONG&gt;solid&lt;/STRONG&gt; everything works OK but with the solid pattern the program throws!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 10:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329530#M3889</guid>
      <dc:creator>JannisKotsis</dc:creator>
      <dc:date>2017-03-17T10:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329531#M3890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using this to draw a solid line with throwing any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The polyline passed in is created using a List&amp;lt;MapPoint&amp;gt;, such as var polyline = new Polyline(mapPtList);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is an issue with the Geometry created by the polyline builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;/// &amp;lt;summary&amp;gt;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/// Creates the line symbol.&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/// &amp;lt;/summary&amp;gt;&lt;/SPAN&gt;
 &lt;SPAN class="comment token"&gt;/// &amp;lt;param name="polyline"&amp;gt;Polyline.&amp;lt;/param&amp;gt;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; Graphic CreatePolylineSymbol &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Polyline polyline&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="comment token"&gt;//Create the symbol and add the graphic to the map&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lineSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SimpleLineSymbol&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;
&amp;nbsp; Width &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; Style &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SimpleLineSymbolStyle&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Solid
 &lt;SPAN class="token preprocessor"&gt;#if !__IOS__&lt;/SPAN&gt;
 &lt;SPAN class="token preprocessor"&gt;#if WINDOWS_UWP&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;Color &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Colors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Cyan
 &lt;SPAN class="token preprocessor"&gt;#else&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;Color &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Drawing&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Color&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Cyan
 &lt;SPAN class="token preprocessor"&gt;#endif&lt;/SPAN&gt;
 &lt;SPAN class="token preprocessor"&gt;#endif&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 
&amp;nbsp; &lt;SPAN class="comment token"&gt;//Create the graphic and add to the map&lt;/SPAN&gt;
&amp;nbsp; Graphic lineGraphic &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Graphic&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;polyline&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lineSymbol&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; lineGraphic&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #9a9c97; font-size: 12px;"&gt;&lt;SPAN style="color: #f1f1f0;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329531#M3890</guid>
      <dc:creator>ChadYoder1</dc:creator>
      <dc:date>2021-12-11T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329532#M3891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't be an issue with the geometry because&amp;nbsp;it works as expected&amp;nbsp;for other line styles...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329532#M3891</guid>
      <dc:creator>JannisKotsis</dc:creator>
      <dc:date>2017-03-17T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329533#M3892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329533#M3892</guid>
      <dc:creator>ChadYoder1</dc:creator>
      <dc:date>2017-03-17T14:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329534#M3893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried your code as-is for creating geometry and symbol, added this line to see the graphic. SimpleLineSolid.Style worked. Also tried in on Forms.Android.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SetViewpoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Viewpoint&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;aGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Geometry&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Extent&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;Since I couldn't repro, I&amp;nbsp;tried the following to&amp;nbsp;iterate through SimpleLineSymbol styles and use SketchEditor to draw freehand (gesture: touch down, drag and up).&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SimpleLineSymbolStyle lineStyle &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; Enum&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetValues&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;typeof&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SimpleLineSymbolStyle&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="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; symbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SimpleLineSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lineStyle&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Colors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Cyan&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 5d&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; geometry &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; MyMapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SketchEditor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;StartAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SketchCreationMode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FreehandLine&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overlay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Graphics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geometry&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; symbol&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token class-name"&gt;TaskCanceledException&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;catch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token class-name"&gt;Exception&lt;/SPAN&gt; ex&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Diagnostics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Debug&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ex&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Message&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;Every style worked and Null style is the only thing that did not render as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GraphicsRenderingMode.Dynamic(default) or Static did not seem to make a difference in this case. Am I missing something in your repro code?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329534#M3893</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line graphic with symbol style "Solid" throws</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329535#M3894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take the following code and paste it in the RenderSimpleMarkers.xaml.cs, sample provided in from ArcgisRuntime.WPF.Samples. This draws a red line across the Panama Canal, if it's style isn't SOLID of cource!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public partial class RenderSimpleMarkers&lt;BR /&gt; {&lt;BR /&gt; public RenderSimpleMarkers()&lt;BR /&gt; {&lt;BR /&gt; InitializeComponent();&lt;/P&gt;&lt;P&gt;// Create the UI, setup the control references and execute initialization &lt;BR /&gt; Initialize();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;private void Initialize()&lt;BR /&gt; {&lt;BR /&gt; // Create new Map with basemap&lt;BR /&gt; Map myMap = new Map(Basemap.CreateImagery());&lt;/P&gt;&lt;P&gt;// Create initial map location and reuse the location for graphic&lt;BR /&gt; MapPoint point1 = new MapPoint(-79.497238, 8.849289, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;var centralLocation = (MapPoint)GeometryEngine.Project(point1, SpatialReferences.WebMercator);&lt;/P&gt;&lt;P&gt;Viewpoint initialViewpoint = new Viewpoint(centralLocation, 1000000);&lt;/P&gt;&lt;P&gt;// Set initial viewpoint&lt;BR /&gt; myMap.InitialViewpoint = initialViewpoint;&lt;/P&gt;&lt;P&gt;// Provide used Map to the MapView&lt;BR /&gt; MyMapView.Map = myMap;&lt;/P&gt;&lt;P&gt;// Create overlay to where graphics are shown&lt;BR /&gt; GraphicsOverlay overlay = new GraphicsOverlay();&lt;/P&gt;&lt;P&gt;// Add created overlay to the MapView&lt;BR /&gt; MyMapView.GraphicsOverlays.Add(overlay);&lt;/P&gt;&lt;P&gt;// Create a simple marker symbol&lt;BR /&gt; SimpleMarkerSymbol simpleSymbol = new SimpleMarkerSymbol()&lt;BR /&gt; {&lt;BR /&gt; Color = Colors.Red,&lt;BR /&gt; Size = 10,&lt;BR /&gt; Style = SimpleMarkerSymbolStyle.Circle&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Add a new graphic with a central point that was created earlier&lt;BR /&gt; Graphic graphicWithSymbol = CreateSimpleLine(); //new Graphic(centralLocation, simpleSymbol);&lt;BR /&gt; overlay.Graphics.Add(graphicWithSymbol);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; public static Graphic CreateSimpleLine()&lt;BR /&gt; {&lt;BR /&gt; MapPoint point1 = new MapPoint(-79.497238, 8.849289, SpatialReferences.Wgs84);&lt;BR /&gt; var newPoint1 = (MapPoint)GeometryEngine.Project(point1, SpatialReferences.WebMercator);&lt;BR /&gt; var cartoLineSym = new SimpleLineSymbol(SimpleLineSymbolStyle.DashDot, Colors.Red, 5);&lt;BR /&gt; MapPoint point2 = new MapPoint(-80.035568, 9.432302, SpatialReferences.Wgs84);&lt;BR /&gt; var newPoint2 = (MapPoint)GeometryEngine.Project(point2, SpatialReferences.WebMercator);&lt;BR /&gt; var aBuilder = new PolylineBuilder(new MapPoint[] { newPoint1, newPoint2 });&lt;/P&gt;&lt;P&gt;var aGraphic = new Graphic(aBuilder.ToGeometry(), cartoLineSym);&lt;BR /&gt; return aGraphic;&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 14:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/creating-a-line-graphic-with-symbol-style-quot/m-p/329535#M3894</guid>
      <dc:creator>JannisKotsis</dc:creator>
      <dc:date>2017-03-20T14:47:05Z</dc:date>
    </item>
  </channel>
</rss>

