<?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: Line rendering in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1423750#M12685</link>
    <description>&lt;P&gt;&amp;nbsp;I don't think there is currently any way to avoid the dark shaded area caused by overlapping in Native SDK.&lt;/P&gt;&lt;P&gt;I was comparing Native SDK behavior with ArcGIS Pro and noticed that in ArcGIS Pro single feature does not cast shadow but multiple features will result in overlap shadows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_0-1715276045423.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103624iF76DACDAE1F799C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_0-1715276045423.png" alt="PreetiMaske_0-1715276045423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image above is from ArcGIS Pro that shows that if it is one geometry , it displays without overlaps at connecting vertices but if there are different geometries , it would cause the darker shade at overlaps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it is not same in Native SDKs. I will look further and see if something can be done in Native SDKs to achieve the same behavior. I will also log an issue internally for us to look into this further. If I find any workarounds I will let you know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 17:59:16 GMT</pubDate>
    <dc:creator>PreetiMaske</dc:creator>
    <dc:date>2024-05-09T17:59:16Z</dc:date>
    <item>
      <title>Line rendering</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1421914#M12682</link>
      <description>&lt;P&gt;Hi everyone, I'm trying to create somthing line an airway route and I'm using lines to do it, I'm using a wide line with opacity and the thin line in the middle, dashed. As you can see in the picture when the line is overlapping to create a turn the fill is overlapping and create a different opacity/color&lt;/P&gt;&lt;P&gt;I would be happy to get an advise how to overcome it and the fill will be solid with out the overlapping color&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-05-09 152803.png" style="width: 572px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103579i27145F6E5111564F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-05-09 152803.png" alt="Screenshot 2024-05-09 152803.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 12:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1421914#M12682</guid>
      <dc:creator>PiniSolomon2</dc:creator>
      <dc:date>2024-05-09T12:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Line rendering</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1423750#M12685</link>
      <description>&lt;P&gt;&amp;nbsp;I don't think there is currently any way to avoid the dark shaded area caused by overlapping in Native SDK.&lt;/P&gt;&lt;P&gt;I was comparing Native SDK behavior with ArcGIS Pro and noticed that in ArcGIS Pro single feature does not cast shadow but multiple features will result in overlap shadows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_0-1715276045423.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103624iF76DACDAE1F799C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_0-1715276045423.png" alt="PreetiMaske_0-1715276045423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image above is from ArcGIS Pro that shows that if it is one geometry , it displays without overlaps at connecting vertices but if there are different geometries , it would cause the darker shade at overlaps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it is not same in Native SDKs. I will look further and see if something can be done in Native SDKs to achieve the same behavior. I will also log an issue internally for us to look into this further. If I find any workarounds I will let you know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 17:59:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1423750#M12685</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-05-09T17:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Line rendering</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1434195#M12695</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1217"&gt;@PreetiMaske&lt;/a&gt;&amp;nbsp;, thank you for the response, It would be great if you guys could look into it.&lt;/P&gt;&lt;P&gt;Do you have any suggestion for another way to achieve what I want, maybe not using a wide line, maybe I could use something else?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 20:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1434195#M12695</guid>
      <dc:creator>pinisolomon1</dc:creator>
      <dc:date>2024-05-10T20:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Line rendering</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1434623#M12696</link>
      <description>&lt;P&gt;I should have asked earlier how are you creating the symbols for the graphics. I believe you are using multilayer symbol. If not, then I recommend using Multilayer symbol for the graphic using the example provided below.&lt;/P&gt;&lt;P&gt;If you are already using Multilayer symbol then choosing the right color for the bottommost stroke symbol layer and not having to apply any additional transparency should work for your use case. If you need additional transparency you can set it GraphicOverlay.&lt;/P&gt;&lt;P&gt;overlay.Opacity = 0.8;&lt;/P&gt;&lt;P&gt;Below are two images I captured with code snippet below. First one is GraphicsOverlay with 0.8 opacity and second one is without opacity.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_1-1715376804179.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103822iC94E32A85A39959D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_1-1715376804179.png" alt="PreetiMaske_1-1715376804179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PreetiMaske_3-1715376914467.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103825i27F4B82E0E16B279/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PreetiMaske_3-1715376914467.png" alt="PreetiMaske_3-1715376914467.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var overlay = new GraphicsOverlay();

polylineBuilder = new PolylineBuilder(SpatialReferences.Wgs84);
polylineBuilder.AddPoint(new MapPoint(-30, 20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(30, 20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(-30, -20, SpatialReferences.Wgs84));
polylineBuilder.AddPoint(new MapPoint(30, -20, SpatialReferences.Wgs84));

var tranpstrokeLayer = new SolidStrokeSymbolLayer(20, Color.Gray);                        
tranpstrokeLayer.CapStyle = StrokeSymbolLayerCapStyle.Round;
strokeLayer = new SolidStrokeSymbolLayer(3, Color.White);
strokeLayer.CapStyle = StrokeSymbolLayerCapStyle.Round;
dashEffect = new DashGeometricEffect();
dashEffect.DashTemplate.Add(7);
dashEffect.DashTemplate.Add(9);
dashEffect.DashTemplate.Add(0.5);
dashEffect.DashTemplate.Add(9);
strokeLayer.GeometricEffects.Add(dashEffect);

lineSymbol = new MultilayerPolylineSymbol(new List&amp;lt;SymbolLayer&amp;gt; { tranpstrokeLayer,strokeLayer });
var dashDotGraphic = new Graphic(polylineBuilder.ToGeometry(), lineSymbol);
            
overlay.Graphics.Add(dashDotGraphic);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Few resources:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Symbology/RenderMultilayerSymbols" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-maps-sdk-dotnet-samples/tree/main/src/WPF/WPF.Viewer/Samples/Symbology/RenderMultilayerSymbols&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.MultilayerSymbol.html" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/api-reference/api/net/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Symbology.MultilayerSymbol.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/styles-and-data-visualization/symbols-renderers-and-styles/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/net/styles-and-data-visualization/symbols-renderers-and-styles/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 21:40:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/line-rendering/m-p/1434623#M12696</guid>
      <dc:creator>PreetiMaske</dc:creator>
      <dc:date>2024-05-10T21:40:24Z</dc:date>
    </item>
  </channel>
</rss>

