<?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: Drawing labels on top of GeometryEditor graphics in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1700614#M13922</link>
    <description>&lt;P&gt;Hi Felicity,&lt;/P&gt;&lt;P&gt;you are on the right lines with your workaround.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Use a Graphic for the polygon geometry and a Graphic for each of the vertices and mid-vertices, all Graphics should be in the same GraphicsOverlay. The Graphics can have a symbology as with the VertexTool they are always hidden by the GeometryEditor's graphics and default Style (&amp;nbsp;GeometryEditorStyle.midVertexSymbol&amp;nbsp;etc). In-fact, to get label deconfliction working as we want it seems the Graphics must have symbols. Ideally, the symbols would be a similar size to the MidVertexSymbol, VertexSymbol and FillSymbol.&lt;/DIV&gt;&lt;DIV&gt;Then you can set:&lt;PRE&gt;label_definition = LabelDefinition(label_expression, symbol); &lt;BR /&gt;label_definition.setDeconflictionStrategy(LabelDeconflictionStrategy.dynamic); &lt;BR /&gt;label_definition.setLabelOverlapStrategy(LabelOverlapStrategy.allow); // TODO decide and test your preference here&lt;BR /&gt;label_definition.setFeatureBoundaryOverlapStrategy(LabelOverlapStrategy.exclude); &lt;BR /&gt;label_definition.setFeatureInteriorOverlapStrategy(LabelOverlapStrategy.exclude); &lt;BR /&gt;graphicsOverlay.setLabelDefinitions({label_definition});&lt;/PRE&gt;&lt;DIV&gt;&lt;BR /&gt;Note: LabelDeconflictionStrategy.dynamic is used since dynamicNeverRemove seems to mean that the boundary and interior instructions could be ignored.&lt;/DIV&gt;&lt;DIV&gt;LabelDeconflictionStrategy.dynamic means there is a chance some labels could be removed in order to avoid the polygon interior/boundary, in practice I've not seen them being removed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note also: this suggestion means there is still a chance the label could be a little obscured by the GeometryEditorStyle.selected* symbols. This could be alleviated by some transparency in GeoView.selectionProperties.&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note also: this suggestion is only suitable for the VertexTool and not Reticle tools as your symbology would not be hidden by GeometryEditor's graphics during vertex and geometry moves.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 07 May 2026 14:15:08 GMT</pubDate>
    <dc:creator>gyoung</dc:creator>
    <dc:date>2026-05-07T14:15:08Z</dc:date>
    <item>
      <title>Drawing labels on top of GeometryEditor graphics</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1699972#M13915</link>
      <description>&lt;P&gt;I'm using a GeometryEditor, and would like to add labels to the geometry which the user is creating, showing the lengths of the segments as they're working.&lt;BR /&gt;&lt;BR /&gt;I'm doing this by looping over the segments of the&amp;nbsp;GeometryEditor.Geometry and adding new Graphics (invisible except for the label) with a LabelDefinition to my own GraphicsOverlay on the map. The problem is, my labels are drawing underneath the geometry instead of on top.&lt;/P&gt;&lt;P&gt;I've set my Graphic.ZIndex to int.MaxValue hoping that would be high enough to cover the GeometryEngine graphics, but it didn't work. I can of course edit the geometry engine symbols to make the fill translucent, so then at least the labels are legible; but I would still rather have them on top.&lt;/P&gt;&lt;P&gt;Any suggestions on how I can get the labels on top?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FelicityRhone_0-1777932224636.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/151954i11A05D7395BD2FF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FelicityRhone_0-1777932224636.png" alt="FelicityRhone_0-1777932224636.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FelicityRhone_0-1777932224636.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 22:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1699972#M13915</guid>
      <dc:creator>FelicityRhone</dc:creator>
      <dc:date>2026-05-04T22:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing labels on top of GeometryEditor graphics</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1700614#M13922</link>
      <description>&lt;P&gt;Hi Felicity,&lt;/P&gt;&lt;P&gt;you are on the right lines with your workaround.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Use a Graphic for the polygon geometry and a Graphic for each of the vertices and mid-vertices, all Graphics should be in the same GraphicsOverlay. The Graphics can have a symbology as with the VertexTool they are always hidden by the GeometryEditor's graphics and default Style (&amp;nbsp;GeometryEditorStyle.midVertexSymbol&amp;nbsp;etc). In-fact, to get label deconfliction working as we want it seems the Graphics must have symbols. Ideally, the symbols would be a similar size to the MidVertexSymbol, VertexSymbol and FillSymbol.&lt;/DIV&gt;&lt;DIV&gt;Then you can set:&lt;PRE&gt;label_definition = LabelDefinition(label_expression, symbol); &lt;BR /&gt;label_definition.setDeconflictionStrategy(LabelDeconflictionStrategy.dynamic); &lt;BR /&gt;label_definition.setLabelOverlapStrategy(LabelOverlapStrategy.allow); // TODO decide and test your preference here&lt;BR /&gt;label_definition.setFeatureBoundaryOverlapStrategy(LabelOverlapStrategy.exclude); &lt;BR /&gt;label_definition.setFeatureInteriorOverlapStrategy(LabelOverlapStrategy.exclude); &lt;BR /&gt;graphicsOverlay.setLabelDefinitions({label_definition});&lt;/PRE&gt;&lt;DIV&gt;&lt;BR /&gt;Note: LabelDeconflictionStrategy.dynamic is used since dynamicNeverRemove seems to mean that the boundary and interior instructions could be ignored.&lt;/DIV&gt;&lt;DIV&gt;LabelDeconflictionStrategy.dynamic means there is a chance some labels could be removed in order to avoid the polygon interior/boundary, in practice I've not seen them being removed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note also: this suggestion means there is still a chance the label could be a little obscured by the GeometryEditorStyle.selected* symbols. This could be alleviated by some transparency in GeoView.selectionProperties.&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Note also: this suggestion is only suitable for the VertexTool and not Reticle tools as your symbology would not be hidden by GeometryEditor's graphics during vertex and geometry moves.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 May 2026 14:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1700614#M13922</guid>
      <dc:creator>gyoung</dc:creator>
      <dc:date>2026-05-07T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing labels on top of GeometryEditor graphics</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1702866#M13936</link>
      <description>&lt;P&gt;Hm, I see your strategy. The downside to this is that if we simply avoid overlapping the interior of the polygon, that filled-in area becomes wasted space while the labels are more crowded around the outside. Ideally I would actually be able to draw on top to make the best use of the space.&lt;BR /&gt;Another option would be to just make the whole GeometryEditor fill and outline transparent, and draw over it with my own graphics, in the same overlay as the labels... but I wonder if that's overkill, and the different selection graphics and feedback lines would make it more complicated than it's worth for a relatively small UI improvement.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 17:32:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/drawing-labels-on-top-of-geometryeditor-graphics/m-p/1702866#M13936</guid>
      <dc:creator>FelicityRhone</dc:creator>
      <dc:date>2026-05-19T17:32:16Z</dc:date>
    </item>
  </channel>
</rss>

