<?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: Label Priority (JSON) not working in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019989#M9701</link>
    <description>&lt;P&gt;Hi PeterDimitrov1,&lt;/P&gt;&lt;P&gt;2D.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 12:09:08 GMT</pubDate>
    <dc:creator>GonzaloMuöoz</dc:creator>
    <dc:date>2021-01-26T12:09:08Z</dc:date>
    <item>
      <title>Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1018278#M9681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the Label's Priority of the JSON in order to priorise between differente GraphicsOverlay but it's not working. Is it a known bug? I'm using it this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StringBuilder labelBuilder = new StringBuilder();&lt;BR /&gt;labelBuilder.AppendLine("{");&lt;BR /&gt;// Define a labeling expression that will show the Name attribute value&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverrun\": true ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfLabel\": \"allow\" ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfFeatureBoundary\": \"allow\" ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfFeatureInterior\": \"allow\" ,");&lt;BR /&gt;labelBuilder.AppendLine("\"priority\": 25 ,");&lt;BR /&gt;labelBuilder.AppendLine("\"labelExpressionInfo\": {");&lt;BR /&gt;labelBuilder.AppendLine("\"expression\": \"return $feature.Name;\"},");&lt;BR /&gt;// Align label horizontally&lt;BR /&gt;labelBuilder.AppendLine("\"labelPlacement\": \"esriServerPointLabelPlacementCenterRight\",");&lt;BR /&gt;labelBuilder.AppendLine("\"multiPart\": \"labelLargest\",");&lt;BR /&gt;// Set the style for the text symbol&lt;BR /&gt;labelBuilder.AppendLine("\"symbol\": {");&lt;BR /&gt;labelBuilder.AppendLine("\"color\": [255,255,255,255],");&lt;BR /&gt;labelBuilder.AppendLine("\"haloColor\": [51,51,51,255],");&lt;BR /&gt;labelBuilder.AppendLine("\"haloSize\": 1.5,");&lt;BR /&gt;labelBuilder.AppendLine("\"font\": {\"size\": 10, \"weight\": \"bold\"},");&lt;BR /&gt;labelBuilder.AppendLine("\"type\": \"esriTS\"}");&lt;BR /&gt;labelBuilder.AppendLine("}");&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 12:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1018278#M9681</guid>
      <dc:creator>GonzaloMuöoz</dc:creator>
      <dc:date>2021-01-20T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1018751#M9685</link>
      <description>&lt;P&gt;What are the label expressions you use on each graphics overlay? How are you assigning them to the overlays?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 17:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1018751#M9685</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-01-21T17:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019054#M9687</link>
      <description>&lt;P&gt;HI Morten,&lt;/P&gt;&lt;P&gt;for low priority graphicsoverlay I use the one on my initial comment. For high priority graphicsoverlay I use the following:&lt;/P&gt;&lt;P&gt;labelBuilder.AppendLine("{");&lt;BR /&gt;// Define a labeling expression that will show the Name attribute value&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverrun\": true ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfLabel\": \"allow\" ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfFeatureBoundary\": \"allow\" ,");&lt;BR /&gt;labelBuilder.AppendLine("\"allowOverlapOfFeatureInterior\": \"allow\" ,");&lt;BR /&gt;&lt;STRONG&gt;labelBuilder.AppendLine("\"priority\": 0,");&lt;/STRONG&gt;&lt;BR /&gt;labelBuilder.AppendLine("\"labelExpressionInfo\": {");&lt;BR /&gt;labelBuilder.AppendLine("\"expression\": \"return $feature.Name;\"},");&lt;BR /&gt;// Align label horizontally&lt;BR /&gt;labelBuilder.AppendLine("\"labelPlacement\": \"esriServerPointLabelPlacementCenterRight\",");&lt;BR /&gt;labelBuilder.AppendLine("\"multiPart\": \"labelLargest\",");&lt;BR /&gt;labelBuilder.AppendLine("\"offsetDistance\": \"-10\",");&lt;BR /&gt;// Set the style for the text symbol&lt;BR /&gt;labelBuilder.AppendLine("\"symbol\": {");&lt;BR /&gt;labelBuilder.AppendLine("\"color\": [255,255,255,255],");&lt;BR /&gt;labelBuilder.AppendLine("\"haloColor\": [51,51,51,255],");&lt;BR /&gt;labelBuilder.AppendLine("\"haloSize\": 1.5,");&lt;BR /&gt;labelBuilder.AppendLine("\"font\": {\"size\": 10, \"weight\": \"bold\"},");&lt;BR /&gt;labelBuilder.AppendLine("\"type\": \"esriTS\"}");&lt;/P&gt;&lt;P&gt;labelBuilder.AppendLine("}");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I add them to each graphics overlay depending on the priority by adding them to the LabelDefinitions object of them:&lt;/P&gt;&lt;P&gt;LabelDefinitions.Add(LabelDefinition.FromJson(JsonCode));&lt;/P&gt;&lt;P&gt;Being JsonCode a string with the definition of the label (the one attached up)&lt;/P&gt;&lt;P&gt;Thanks,REgards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 10:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019054#M9687</guid>
      <dc:creator>GonzaloMuöoz</dc:creator>
      <dc:date>2021-01-22T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019988#M9700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;GonzaloMuöoz,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you confirm if you are seeing this in 2D or 3D?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 12:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019988#M9700</guid>
      <dc:creator>PeterDimitrov1</dc:creator>
      <dc:date>2021-01-26T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019989#M9701</link>
      <description>&lt;P&gt;Hi PeterDimitrov1,&lt;/P&gt;&lt;P&gt;2D.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 12:09:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1019989#M9701</guid>
      <dc:creator>GonzaloMuöoz</dc:creator>
      <dc:date>2021-01-26T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1020526#M9705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I noticed that in both of your label definitions you set the property "allow label overlap" to allow.&amp;nbsp;&lt;BR /&gt;This will allow labels to overlap and will fully disregard any label deconfliction, producing the results you see / priority being ignored.&lt;/P&gt;&lt;P&gt;If you set&amp;nbsp;"allow overlap of label" to "exclude", this will prevent labels from overlapping and you will see correct behaviour.&lt;/P&gt;&lt;P&gt;Following from the above information ,it is also worth to note that the default deconfliction strategy applied to labels is static, unless specified otherwise.&lt;/P&gt;&lt;P&gt;In the case where overlap of labels is not allowed, static deconfliction would mean that the lower priority label will not be drawn / removed in order to prioritize anything with higher priority. You can also try dynamic deconfliction, and simply put, labels will try to "move out of the way".&lt;/P&gt;&lt;P&gt;Static deconfliction, no overlap:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="static, no overlap.png" style="width: 192px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4668i1D1D0141B543AAC6/image-dimensions/192x123?v=v2" width="192" height="123" role="button" title="static, no overlap.png" alt="static, no overlap.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Dynamic deconfliction, no overlap:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dynamic no overlap.PNG" style="width: 235px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4667i28A6312AFC744773/image-dimensions/235x134?v=v2" width="235" height="134" role="button" title="dynamic no overlap.PNG" alt="dynamic no overlap.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Useful info on deconfliction and other JSON properties here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/wpf/guide/json-label-class-properties.htm" target="_blank"&gt;https://developers.arcgis.com/net/wpf/guide/json-label-class-properties.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1020526#M9705</guid>
      <dc:creator>PeterDimitrov1</dc:creator>
      <dc:date>2021-01-27T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1020938#M9711</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our client wants exactly that, show all the labels even if they overlap but give them priority of visibility based on the graphicsoverlay it belongs. I suppose that this is not possible right now, will this functionality be available in the future?&lt;/P&gt;&lt;P&gt;Regards.Gonzalo&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 11:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1020938#M9711</guid>
      <dc:creator>GonzaloMuöoz</dc:creator>
      <dc:date>2021-01-28T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1021000#M9712</link>
      <description>&lt;P&gt;Hi Gonzalo,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is not something that we support at the moment. I have raised your idea with my team as a potential enhancement to our product for future releases, however your&amp;nbsp;&lt;SPAN&gt;case&amp;nbsp;will&amp;nbsp;be&amp;nbsp;made&amp;nbsp;stronger&amp;nbsp;if&amp;nbsp;it&amp;nbsp;also&amp;nbsp;went&amp;nbsp;through&amp;nbsp;the&amp;nbsp;official&amp;nbsp;channels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;We have a f&lt;SPAN&gt;orum&amp;nbsp;ideas&amp;nbsp;panel&amp;nbsp;&lt;/SPAN&gt;, which you can find here -&amp;nbsp;&lt;A href="https://community.esri.com/t5/custom/page/page-id/arcgis-ideas#custom-tiled-node-navigation" target="_blank"&gt;https://community.esri.com/t5/custom/page/page-id/arcgis-ideas#custom-tiled-node-navigation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Peter Dimitrov&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1021000#M9712</guid>
      <dc:creator>PeterDimitrov1</dc:creator>
      <dc:date>2021-01-28T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Label Priority (JSON) not working</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1100580#M10456</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your feedback on this issue. Support for&amp;nbsp;showing all labels regardless of overlap, and accounting for label class priority in the 2D map view was added in version 100.12.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 22:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/label-priority-json-not-working/m-p/1100580#M10456</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-09-21T22:06:21Z</dc:date>
    </item>
  </channel>
</rss>

