<?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 LegendInfo should have Name when created from SubtypeSublayers in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-should-have-name-when-created-from/m-p/1287346#M11826</link>
    <description>&lt;P&gt;We are wanting to change some offline WebMaps to use&amp;nbsp;SubtypeFeatureLayer.&amp;nbsp; A main driver behind this is that it allows us to edit domains in AGOL.&amp;nbsp; It also is a better general fit with the Utility Network configuration.&lt;/P&gt;&lt;P&gt;A big issue making this much more complex is that when you retrieve the LegendInfo objects from SubtypeSublayer these do not have a Name associated to them.&amp;nbsp; There is no way to identify what a LegendInfo is.&amp;nbsp; This seems to me to be a bit of a bug, as there is no way to identify what a LegendInfo is unless you somehow know what&amp;nbsp;SubtypeSublayer it was created from.&amp;nbsp; But it makes it impossible to use the code which already assumed the LegendInfo would have an associated Name (matching the Subtype).&lt;/P&gt;&lt;P&gt;Making this issue even more difficult is that LegendInfo is a sealed class.&amp;nbsp; So it is not even possible to make a subclass and assign a Name that way.&lt;/P&gt;&lt;P&gt;This has made, what seemed to me should be a trivial operation into a really complex refactoring because there is no way to pass along the IReadOnly&amp;lt;LegendInfo&amp;gt; collection as the previous code did.&lt;/P&gt;&lt;P&gt;This is using Runtime 100.15&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 17:14:51 GMT</pubDate>
    <dc:creator>JoeHershman</dc:creator>
    <dc:date>2023-05-09T17:14:51Z</dc:date>
    <item>
      <title>LegendInfo should have Name when created from SubtypeSublayers</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-should-have-name-when-created-from/m-p/1287346#M11826</link>
      <description>&lt;P&gt;We are wanting to change some offline WebMaps to use&amp;nbsp;SubtypeFeatureLayer.&amp;nbsp; A main driver behind this is that it allows us to edit domains in AGOL.&amp;nbsp; It also is a better general fit with the Utility Network configuration.&lt;/P&gt;&lt;P&gt;A big issue making this much more complex is that when you retrieve the LegendInfo objects from SubtypeSublayer these do not have a Name associated to them.&amp;nbsp; There is no way to identify what a LegendInfo is.&amp;nbsp; This seems to me to be a bit of a bug, as there is no way to identify what a LegendInfo is unless you somehow know what&amp;nbsp;SubtypeSublayer it was created from.&amp;nbsp; But it makes it impossible to use the code which already assumed the LegendInfo would have an associated Name (matching the Subtype).&lt;/P&gt;&lt;P&gt;Making this issue even more difficult is that LegendInfo is a sealed class.&amp;nbsp; So it is not even possible to make a subclass and assign a Name that way.&lt;/P&gt;&lt;P&gt;This has made, what seemed to me should be a trivial operation into a really complex refactoring because there is no way to pass along the IReadOnly&amp;lt;LegendInfo&amp;gt; collection as the previous code did.&lt;/P&gt;&lt;P&gt;This is using Runtime 100.15&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 17:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/legendinfo-should-have-name-when-created-from/m-p/1287346#M11826</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-05-09T17:14:51Z</dc:date>
    </item>
  </channel>
</rss>

