<?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 Labels not showing on polygon in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1129639#M10709</link>
    <description>&lt;P&gt;(UWP, 100.12 &amp;amp; 100.13)&lt;/P&gt;&lt;P&gt;Some polygons don't display the label that is specified on the overlay.&lt;/P&gt;&lt;P&gt;I have extracted some code to a demo project that shows the problem. I have added three polygons to an overlay and added a symbol renderer and a label definition. The large polygon doesn't show the label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moer_0-1640872260233.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30518iBB97F0B704FFBE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moer_0-1640872260233.png" alt="Moer_0-1640872260233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code extract (see full demo in attached zip):&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            testLayer = new GraphicsOverlay
            {
                Id = "TEST_LAYER",
                RenderingMode = GraphicsRenderingMode.Static,
                LabelsEnabled = true,
            };

            //Symbol renderer
            testLayer.Renderer = new SimpleRenderer(new SimpleLineSymbol
            {
                Color = Color.Yellow,
                Style = SimpleLineSymbolStyle.Solid,
                Width = 2
            });

            //Label def
            var label = new LabelDefinition(new SimpleLabelExpression($"\"Test\""), new TextSymbol
            {
                BackgroundColor = Color.Aqua,
                Color = Color.Black,
                Size = 14
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 13:57:59 GMT</pubDate>
    <dc:creator>Moer</dc:creator>
    <dc:date>2021-12-30T13:57:59Z</dc:date>
    <item>
      <title>Labels not showing on polygon</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1129639#M10709</link>
      <description>&lt;P&gt;(UWP, 100.12 &amp;amp; 100.13)&lt;/P&gt;&lt;P&gt;Some polygons don't display the label that is specified on the overlay.&lt;/P&gt;&lt;P&gt;I have extracted some code to a demo project that shows the problem. I have added three polygons to an overlay and added a symbol renderer and a label definition. The large polygon doesn't show the label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moer_0-1640872260233.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30518iBB97F0B704FFBE20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moer_0-1640872260233.png" alt="Moer_0-1640872260233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code extract (see full demo in attached zip):&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;            testLayer = new GraphicsOverlay
            {
                Id = "TEST_LAYER",
                RenderingMode = GraphicsRenderingMode.Static,
                LabelsEnabled = true,
            };

            //Symbol renderer
            testLayer.Renderer = new SimpleRenderer(new SimpleLineSymbol
            {
                Color = Color.Yellow,
                Style = SimpleLineSymbolStyle.Solid,
                Width = 2
            });

            //Label def
            var label = new LabelDefinition(new SimpleLabelExpression($"\"Test\""), new TextSymbol
            {
                BackgroundColor = Color.Aqua,
                Color = Color.Black,
                Size = 14
            });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 13:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1129639#M10709</guid>
      <dc:creator>Moer</dc:creator>
      <dc:date>2021-12-30T13:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing on polygon</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1130015#M10711</link>
      <description>&lt;P&gt;Have you checked that your geometries are OK? An invalid geometry will display on the map but won't show a label. If this is what's wrong, running the RepairGeometries tool should solve it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/check-geometry.htm" target="_blank" rel="noopener"&gt;https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/check-geometry.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/repair-geometry.htm" target="_blank" rel="noopener"&gt;https://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/repair-geometry.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 08:40:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1130015#M10711</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-01-03T08:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing on polygon</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1130504#M10715</link>
      <description>&lt;P&gt;Calling "poly = GeometryEngine.Simplify(poly);" on your polygon before adding it to the GraphicsOverlay should resolve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        private void addPolygon(string polygonJson)
        {
            var poly = Geometry.FromJson(polygonJson);

            poly = GeometryEngine.Simplify(poly);
            var graphic = new Graphic
            {
                Geometry = GeometryEngine.Project((Polygon)poly, new SpatialReference(3006))
            };
            testLayer.Graphics.Add(graphic);
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TonyWakim_0-1641323944524.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30743i2C03111BC541C12B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TonyWakim_0-1641323944524.png" alt="TonyWakim_0-1641323944524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 19:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1130504#M10715</guid>
      <dc:creator>TonyWakim</dc:creator>
      <dc:date>2022-01-04T19:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not showing on polygon</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1542939#M13039</link>
      <description>&lt;P&gt;I know its an old question, but WHY does it work?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 06:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/labels-not-showing-on-polygon/m-p/1542939#M13039</guid>
      <dc:creator>ofirrosner</dc:creator>
      <dc:date>2024-09-26T06:36:52Z</dc:date>
    </item>
  </channel>
</rss>

