<?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: Color polyline segments in different colors in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/color-polyline-segments-in-different-colors/m-p/1210902#M11317</link>
    <description>&lt;P&gt;This is an interesting question, but I think the basic answer is "no". The lowest level at which symbols are applied is for a geoelement (feature or graphic, ie), so it sounds like your approach of showing a larger geometry using geoelements for each segment is the best workaround. If you only want to display feature segments individually but not store them that way, you might consider a "hybrid" approach where you store only the larger feature in your dataset, but use a graphics overlay to display the segments with unique symbols. Especially if you only need to display segments for certain workflows. Perhaps allow the user to select a polyline that they want to see the segments for (?).&lt;/P&gt;&lt;P&gt;Performance might be a concern if you start handling lots of segments (thousands). The guide doc topic here has some tips for improving performance when working with a graphics-intensive app:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/programming-patterns/performance-considerations/#graphics" target="_blank"&gt;https://developers.arcgis.com/net/programming-patterns/performance-considerations/#graphics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One tip is to use a renderer for a graphics overlay rather than symbols for each graphic. To implement that, you might do something like generate a random number for each graphic (perhaps between 1-10, eg) and apply a renderer to the overlay that shows a unique color for each possible value (1-10, or whatever range you use).&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 18:13:59 GMT</pubDate>
    <dc:creator>ThadTilton</dc:creator>
    <dc:date>2022-09-08T18:13:59Z</dc:date>
    <item>
      <title>Color polyline segments in different colors</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/color-polyline-segments-in-different-colors/m-p/1207110#M11301</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I'm creating polylines on my layer via the sketch editor &lt;STRONG&gt;or&lt;/STRONG&gt; via&amp;nbsp;PolylineBuilder&amp;nbsp; class&lt;BR /&gt;each line contains many points (and of course a line between them).&lt;BR /&gt;&lt;BR /&gt;My question is, if i can color each segment, i.e, each line between 2 points in different color?&lt;BR /&gt;&lt;BR /&gt;my current workaround is to create, instead of 1 "big" polyline, X "small" polyline, as much as my "big" polyline line amount, and color each small polyline in different color.&lt;BR /&gt;&lt;BR /&gt;My main issues its very instance of the system &lt;STRONG&gt;performance&lt;/STRONG&gt; vise, because i don't only have 1 "big" but a lot of them&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 08:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/color-polyline-segments-in-different-colors/m-p/1207110#M11301</guid>
      <dc:creator>ofirrosner</dc:creator>
      <dc:date>2022-08-29T08:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Color polyline segments in different colors</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/color-polyline-segments-in-different-colors/m-p/1210902#M11317</link>
      <description>&lt;P&gt;This is an interesting question, but I think the basic answer is "no". The lowest level at which symbols are applied is for a geoelement (feature or graphic, ie), so it sounds like your approach of showing a larger geometry using geoelements for each segment is the best workaround. If you only want to display feature segments individually but not store them that way, you might consider a "hybrid" approach where you store only the larger feature in your dataset, but use a graphics overlay to display the segments with unique symbols. Especially if you only need to display segments for certain workflows. Perhaps allow the user to select a polyline that they want to see the segments for (?).&lt;/P&gt;&lt;P&gt;Performance might be a concern if you start handling lots of segments (thousands). The guide doc topic here has some tips for improving performance when working with a graphics-intensive app:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/programming-patterns/performance-considerations/#graphics" target="_blank"&gt;https://developers.arcgis.com/net/programming-patterns/performance-considerations/#graphics&lt;/A&gt;&lt;/P&gt;&lt;P&gt;One tip is to use a renderer for a graphics overlay rather than symbols for each graphic. To implement that, you might do something like generate a random number for each graphic (perhaps between 1-10, eg) and apply a renderer to the overlay that shows a unique color for each possible value (1-10, or whatever range you use).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 18:13:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/color-polyline-segments-in-different-colors/m-p/1210902#M11317</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2022-09-08T18:13:59Z</dc:date>
    </item>
  </channel>
</rss>

