<?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 HydrographicS52DisplayProperties being reset in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/hydrographics52displayproperties-being-reset/m-p/708130#M8915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to programmatically set the HydrographicS52DisplayProperties to custom values and let the user change those values through a dialog. The problem that I am running into is that loading the first S-57 layer overwrites my changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like a bug to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var HydroS52DisplayProperties = HydrographicS52DisplayProperties.Default;
HydroS52DisplayProperties.TextGroupProperties.BerthNumber = false;
HydroS52DisplayProperties.TextGroupProperties.GeographicNames = false;

// load a hydro layer into the map
var layer = new HydrographicS57Layer();
layer.DisplayName = "Sacrificial Layer";
EsriMap.Layers.Add(layer);

// after the layer is loaded the &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;HydrographicS52DisplayProperties&lt;/SPAN&gt;
// will be reset to the defaults. BerthNumber and GeographicNames 
// from above will be true
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Runtime .NET SDK version 10.2.4.748&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:44:48 GMT</pubDate>
    <dc:creator>ChrisSmith10</dc:creator>
    <dc:date>2021-12-12T05:44:48Z</dc:date>
    <item>
      <title>HydrographicS52DisplayProperties being reset</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hydrographics52displayproperties-being-reset/m-p/708130#M8915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to programmatically set the HydrographicS52DisplayProperties to custom values and let the user change those values through a dialog. The problem that I am running into is that loading the first S-57 layer overwrites my changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like a bug to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var HydroS52DisplayProperties = HydrographicS52DisplayProperties.Default;
HydroS52DisplayProperties.TextGroupProperties.BerthNumber = false;
HydroS52DisplayProperties.TextGroupProperties.GeographicNames = false;

// load a hydro layer into the map
var layer = new HydrographicS57Layer();
layer.DisplayName = "Sacrificial Layer";
EsriMap.Layers.Add(layer);

// after the layer is loaded the &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;HydrographicS52DisplayProperties&lt;/SPAN&gt;
// will be reset to the defaults. BerthNumber and GeographicNames 
// from above will be true
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Runtime .NET SDK version 10.2.4.748&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hydrographics52displayproperties-being-reset/m-p/708130#M8915</guid>
      <dc:creator>ChrisSmith10</dc:creator>
      <dc:date>2021-12-12T05:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: HydrographicS52DisplayProperties being reset</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hydrographics52displayproperties-being-reset/m-p/708131#M8916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment settings get reset but you can change values after you wait layers loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9.5px; font-family: Consolas;"&gt;&lt;SPAN style="color: #008f00; font-size: 9.5px; line-height: 1.5;"&gt;// wait until all layers are loaded&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9.5px; font-family: Consolas;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0433ff;"&gt;await&lt;/SPAN&gt; MyMapView.LayersLoadedAsync();&lt;/P&gt;&lt;P style="font-size: 9.5px; font-family: Consolas;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #33a2bd;"&gt;HydrographicS52DisplayProperties&lt;/SPAN&gt;.Default.ViewGroupProperties.Soundings = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0433ff;"&gt;false&lt;/SPAN&gt;; // changes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hydrographics52displayproperties-being-reset/m-p/708131#M8916</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2014-12-17T10:12:28Z</dc:date>
    </item>
  </channel>
</rss>

