<?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 DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3693#M34</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use an &lt;SPAN style="font-family: 'courier new', courier;"&gt;AttributeLabelClass&lt;/SPAN&gt; in the 10.2.4 .NET SDK on a &lt;SPAN style="font-family: 'courier new', courier;"&gt;GraphicsLayer&lt;/SPAN&gt; that displays the same text on two nearby linear features, one of the labels will disappear if both labels are in the extent even if the &lt;SPAN style="font-family: 'courier new', courier;"&gt;DuplicateLabels&lt;/SPAN&gt; property on the &lt;SPAN style="font-family: 'courier new', courier;"&gt;AttributeLabelClass&lt;/SPAN&gt; is set to &lt;SPAN style="font-family: 'courier new', courier;"&gt;DuplicateLabels.PreserveDuplicates&lt;/SPAN&gt;. I have tried to change the &lt;SPAN style="font-family: 'courier new', courier;"&gt;LabelPriority&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;Highest&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;LabelPlacement&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;FixedPositionWithOverlaps&lt;/SPAN&gt; but these options did not prevent the nearby duplicates from getting removed. Has anyone else seen this issue or have a workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 18:16:46 GMT</pubDate>
    <dc:creator>BenPalmer</dc:creator>
    <dc:date>2014-11-13T18:16:46Z</dc:date>
    <item>
      <title>DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3693#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use an &lt;SPAN style="font-family: 'courier new', courier;"&gt;AttributeLabelClass&lt;/SPAN&gt; in the 10.2.4 .NET SDK on a &lt;SPAN style="font-family: 'courier new', courier;"&gt;GraphicsLayer&lt;/SPAN&gt; that displays the same text on two nearby linear features, one of the labels will disappear if both labels are in the extent even if the &lt;SPAN style="font-family: 'courier new', courier;"&gt;DuplicateLabels&lt;/SPAN&gt; property on the &lt;SPAN style="font-family: 'courier new', courier;"&gt;AttributeLabelClass&lt;/SPAN&gt; is set to &lt;SPAN style="font-family: 'courier new', courier;"&gt;DuplicateLabels.PreserveDuplicates&lt;/SPAN&gt;. I have tried to change the &lt;SPAN style="font-family: 'courier new', courier;"&gt;LabelPriority&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;Highest&lt;/SPAN&gt; and &lt;SPAN style="font-family: 'courier new', courier;"&gt;LabelPlacement&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;FixedPositionWithOverlaps&lt;/SPAN&gt; but these options did not prevent the nearby duplicates from getting removed. Has anyone else seen this issue or have a workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 18:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3693#M34</guid>
      <dc:creator>BenPalmer</dc:creator>
      <dc:date>2014-11-13T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3694#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you post your repro app which demonstrates the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FixedPositionWithOverlaps should force all labels to be placed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 18:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3694#M35</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-11-13T18:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3695#M36</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;Sorry for the slow reply. A bit busy around the holidays. Here is a link to a repository demonstrating the issue. The behavior is only evident when polylines have a coincidental end point with another polyline that has the same label value. Thanks for taking a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IUsername/LabellingIssue"&gt;https://github.com/IUsername/LabellingIssue&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 22:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3695#M36</guid>
      <dc:creator>BenPalmer</dc:creator>
      <dc:date>2014-12-10T22:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3696#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I've reproduced the problem and logged as an issue.&amp;nbsp;&amp;nbsp; It appears to occur when lines share a vertex and have the same label value.&amp;nbsp; Forked repo with some updates to illustrate: &lt;A href="https://github.com/rexhansen/LabellingIssue" title="https://github.com/rexhansen/LabellingIssue"&gt;rexhansen/LabellingIssue · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Rex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3696#M37</guid>
      <dc:creator>RexHansen</dc:creator>
      <dc:date>2015-05-11T07:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3697#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the updated labeling support in ArcGIS Runtime SDK .NET v100.1, we now have a property called lineConnection that takes one of "none", "minimizeLabels", or "unambiguousLabels". For more info see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/add-labels.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/add-labels.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Label map features—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-map-specification/objects/labelingInfo/" title="https://developers.arcgis.com/web-map-specification/objects/labelingInfo/" rel="nofollow noopener noreferrer" target="_blank"&gt;labelingInfo | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some differences between the v10.2.x API and the v100.x API, including the fact that the current 100.1 labeling API is based on definitions from JSON. We are working on a full .NET public API for these definitions in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;TextSymbol textSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;TextSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Color &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Colors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DarkRed&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FontFamily &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Arial"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Size &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;string&lt;/SPAN&gt; json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{\"labelExpressionInfo\":{\"expression\":\"return $feature.LENGTH;\"},\"labelPlacement\":\"esriServerLinePlacementAboveAlong\",\"symbol\":"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; textSymbol&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToJson&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LabelsEnabled &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
LabelDefinition labelDefinition &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; LabelDefinition&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FromJson&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LabelDefinitions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Add&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;labelDefinition&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3697#M38</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-12-10T20:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: DuplicateLabels.PreserveDuplicates Not Respected in GraphicsLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3698#M39</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should be resolved in the recent v100.2 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please download the latest Visual Studio extension from&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/downloads" title="https://developers.arcgis.com/downloads"&gt;ArcGIS for Developers&lt;/A&gt;&amp;nbsp;or update your NuGet packages via the NuGet package manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 21:29:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/duplicatelabels-preserveduplicates-not-respected/m-p/3698#M39</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-02-12T21:29:57Z</dc:date>
    </item>
  </channel>
</rss>

