<?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: SymbolDisplay not working correctly  for more complex symbols in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1501926#M12861</link>
    <description>&lt;P&gt;I will try to reproduce this and let you know what I find. Is it possible to share symbol's json as in stylx file?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 16:59:04 GMT</pubDate>
    <dc:creator>PreetiMaske</dc:creator>
    <dc:date>2024-07-05T16:59:04Z</dc:date>
    <item>
      <title>SymbolDisplay not working correctly  for more complex symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1499669#M12846</link>
      <description>&lt;P&gt;When im using SimpleLineSymbol, SimpleFillSymbol,SimpleMarkerSymbol (or even when i create multilayer symbol from any combination of SoidStrokeLayer,SolidFillLayer) , SymbolDisplay&amp;nbsp; works just fine&lt;BR /&gt;But when im adding VectorMarkerSymbolLayer (Or reading from stylx file) ,SymbolDisplay&amp;nbsp; shows only the head(and sometimes not correctly) and does not show the polyline at all&lt;BR /&gt;&lt;BR /&gt;For example(as cropped from the stylx symbol)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var layer1 = new SolidStrokeSymbolLayer(2.6, Color.Red)
{
    CapStyle = StrokeSymbolCapStyle.Butt,
    LineStyle3D = StrokeSymbolLayerLineStyle3D.Strip,
};

var layer2 = new VectorMarkerSymbolLayer(new List&amp;lt;VectorMarkerSymbolElement&amp;gt;()
{
    new VectorMarkerSymbolElement
        (
             new Polygon(new List&amp;lt;MapPoint&amp;gt;()
             {
                  new MapPoint(116.09, 0.29),
                  new MapPoint(-116.7, -137.69),
                  new MapPoint(-116.7, 137.699),
                  new MapPoint(116.09, 0.29),
             }, SpatialReferences.Wgs84),
         new MultilayerPolygonSymbol(new List&amp;lt;SymbolLayer&amp;gt;()
         {
              new SolidFillSymbolLayer(Color.Red),
              new SolidStrokeSymbolLayer()
              {
                  Color = Color.Red,
                  CapStyle = StrokeSymbolCapStyle.Round,
                  LineStyle3D = StrokeSymbolLayerLineStyle3D.Strip,
                  Width = 1 
              }
             })    
         ),
      })
      {
          Anchor = new SymbolAnchor(0.129,0, SymbolAnchorPlacementMode.Relative),
          Heading = 0,
          OffestX = 0,
          OffsetY = 0,
          Size = 33.3,         
      }​​&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;What im expecting =&amp;gt; a line and head at in end(well &lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/quot-along-line-quot-marker-placement-for/m-p/1195797" target="_self"&gt;because i dont have "Along the line publicly"&lt;/A&gt; available its a just the head repeating itself)&lt;BR /&gt;What im getting = &amp;gt; some junkey triangle (from the .stylex file is just the head w/o the line)&lt;BR /&gt;&lt;BR /&gt;P.S1&amp;nbsp;&lt;BR /&gt;Tested both at 100.5.4 and 200.4 with the same result&lt;BR /&gt;&lt;BR /&gt;P.S2&amp;nbsp;&lt;BR /&gt;I tried to do the following, which yields the same result(and &lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/blob/ae34e71ba4bf81ff6c57d178c26cf53dd89bf8a9/src/Toolkit/Toolkit.UI.Controls/SymbolDisplay/SymbolDisplay.Windows.cs" target="_self"&gt;it seems that's what SymbolDisplay is doing in it's core&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;P.S3&lt;BR /&gt;here is the symbol im expecting to be show (as create at the .stylex file)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ofirrosner_0-1719818027870.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108431iB161F6E7A2DA0EE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ofirrosner_0-1719818027870.png" alt="ofirrosner_0-1719818027870.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Symbol = item.GetSymbolAsync(); //item the .stylx item from after reading the file to SymbolStylee
var swatch = await Symbol.CreateSwatchAsync()
SymbolImage = await swatch.ToImageSourceAsync() as BitmapSource; // SymbolImage  is a BitmapSource&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 07:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1499669#M12846</guid>
      <dc:creator>ofirrosner</dc:creator>
      <dc:date>2024-07-01T07:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolDisplay not working correctly  for more complex symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1501926#M12861</link>
      <description>&lt;P&gt;I will try to reproduce this and let you know what I find. Is it possible to share symbol's json as in stylx file?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 16:59:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1501926#M12861</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-07-05T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: SymbolDisplay not working correctly  for more complex symbols</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1502177#M12863</link>
      <description>&lt;P&gt;Sadly i cannot share the stylx nor the json, but it very simple and easy to create (with ArcGis) symbol as you can see in the attached image&lt;BR /&gt;Also you have the symbol(well almost) coded&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 05:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/symboldisplay-not-working-correctly-for-more/m-p/1502177#M12863</guid>
      <dc:creator>ofirrosner</dc:creator>
      <dc:date>2024-07-07T05:28:28Z</dc:date>
    </item>
  </channel>
</rss>

