<?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: GraphicsOverlay - Label priority problems in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40148#M439</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 add the repro code?&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>Fri, 21 Sep 2018 20:29:09 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2018-09-21T20:29:09Z</dc:date>
    <item>
      <title>GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40147#M438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Currently I am having some issues with labeling of Graphics in version 100.3.0. It appears that the priority is not respected based on the LabelDefinitions i have defined. I have used the classes provided by&amp;nbsp;&lt;A href="https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net/blog/2018/03/29/label-features-the-easy-way"&gt;https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net/blog/2018/03/29/label-features-the-easy-way&lt;/A&gt;&amp;nbsp;(in case&amp;nbsp;someone else have missed this blog post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following json definition (boiled down to the essentials for an easier read):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;"priority":0,where":"[Priority] = 'Alarm'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;"priority":1,where":"[Priority] = 'Pri1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;"priority":2,where":"[Priority] = 'Pri2'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;"priority":3,where":"[Priority] = 'Pri3'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;"priority":4,where":"[Priority] = 'None'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this definition I expected labels for Alarm&amp;nbsp;to have priority&amp;nbsp;over the rest. From&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/uwp/guide/add-labels.htm" title="https://developers.arcgis.com/net/latest/uwp/guide/add-labels.htm"&gt;Label map features—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;STRONG&gt;Priority&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; padding: 0px 0.15rem;"&gt;priority&lt;/SPAN&gt;)—A label definition can be given a priority relative to other definitions in the layer. If labels from different definitions conflict in their placement, the label from the highest-priority definition will be displayed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From&amp;nbsp;&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/"&gt;labelingInfo | ArcGIS for Developers&lt;/A&gt;,&amp;nbsp;priority is&amp;nbsp;documented as&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The priority of the label class relative to other label classes. Numbers are positive with 0 being the most important and higher numbers being less important.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At&amp;nbsp;both of the locations indicated by the symbols in the image below, there are&amp;nbsp;5 graphics with the same position. I have been able to fix the drawing order of the symbols within a layer with ZIndex (ref &lt;A href="https://community.esri.com/thread/188197"&gt;How to define the drawing order of unique value symbols?&lt;/A&gt;),&amp;nbsp;however I have yet to master labeling the symbol with the highest priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/422532_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The labeling still seems rather random in my experience. Is there anyone who can guide me on the path to label Mastery?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next question is; is there a way I can control label priority across layers?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the real application, I have split the objects of different states into separate layers to allow the user to hide graphics that are in a specific state to&amp;nbsp;hide irrelevant graphics for the current work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following layers (top-most layer in list is drawn on top):&lt;/P&gt;&lt;P&gt;- Active&lt;/P&gt;&lt;P&gt;- Planned&lt;/P&gt;&lt;P&gt;- Completed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to control that the labels from&amp;nbsp;Active (priority:0) will&amp;nbsp;have priority&amp;nbsp;ahead of priority:0 from layer Planned or Completed? Or is this the default behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40147#M438</guid>
      <dc:creator>BjørnarSundsbø1</dc:creator>
      <dc:date>2018-09-20T14:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40148#M439</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 add the repro code?&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>Fri, 21 Sep 2018 20:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40148#M439</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-09-21T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40149#M440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have repro code at the moment, but will&amp;nbsp;make one as soon as I can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 20:32:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40149#M440</guid>
      <dc:creator>BjørnarSundsbø1</dc:creator>
      <dc:date>2018-09-21T20:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40150#M441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason I was unable to attach the sample to the thread. I sent you an email, assuming the address I have is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 22:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40150#M441</guid>
      <dc:creator>BjørnarSundsbø1</dc:creator>
      <dc:date>2018-09-21T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40151#M442</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;Email received - thanks for the repro. We'll&amp;nbsp;investigate and&amp;nbsp;update you.&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>Fri, 21 Sep 2018 23:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/40151#M442</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-09-21T23:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay - Label priority problems</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/1016296#M9668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;did you get any solution on this? I'm having the same problem...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Madrid&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 10:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-label-priority-problems/m-p/1016296#M9668</guid>
      <dc:creator>GonzaloMuöoz</dc:creator>
      <dc:date>2021-01-13T10:55:06Z</dc:date>
    </item>
  </channel>
</rss>

