<?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: Labels not appearing on Web Map in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1668480#M11794</link>
    <description>&lt;P&gt;You can try adding the showLabels property at the layer level instead of the drawinInfo.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;map_widget.content.add(sdf, options={'opacity':0.75, 'showLabels' : True},popup_info=popup_info, drawing_info=labelClass)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Nov 2025 16:01:30 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-11-25T16:01:30Z</dc:date>
    <item>
      <title>Labels not appearing on Web Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1662717#M11766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to create a quick Webmap to preview some points from a database via pandas. The points display correctly, and they render correctly (diamond marker) but for the life of me I can't work out how to display labels on each of the points. Example code below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#### Only for testing
from arcgis.gis import GIS
import pandas as pd
area = 'ARG'
data = {'name': ['Hole 1', 'Hole 2'],
        'x': [-66.3211, -66.3186],
        'y': [-24.3959, -24.3948]}
df = pd.DataFrame(data)
#### Only for testing

popup_info = {
    "title": "{name}", "description" : "{name}"
}

labelClass = {
  "showLabels": True,
  "renderer": {
    "type": "simple",
    "symbol": {
      "type": "esriSMS",
      "style": "esriSMSDiamond",
      "color": [
        255,
        0,
        0,
        200
      ],
      "size": 8,
      "angle": 0,
      "xoffset": 0,
      "yoffset": 0,
      "outline": {
        "color": [
          0,
          0,
          0,
          255
        ],
        "width": 1
      }
    }
  },
  "labelingInfo": [
    {
      "labelExpression": "", 
        "labelExpressionInfo": {
          "expression": "$feature[\"name\"]",
          "value": "{name}"
        },
      "symbol": {
        "type": "esriTS",
        "color": [
          78,
          78,
          78,
          255
        ],
        "backgroundColor": [
          0,
          0,
          0,
          0
        ],
        "borderLineSize": 2,
        "borderLineColor": [
          255,
          0,
          255,
          255
        ],
        "haloSize": 2,
        "haloColor": [
          0,
          255,
          0,
          255
        ],
        "verticalAlignment": "bottom",
        "horizontalAlignment": "left",
        "rightToLeft": False,
        "angle": 0,
        "xoffset": 0,
        "yoffset": 0,
        "kerning": True,
        "font": {
          "family": "Arial",
          "size": 12,
          "style": "normal",
          "weight": "bold",
          "decoration": "none"
        }
      }
    }
  ]
}
gis = GIS("home") 

sdf = pd.DataFrame.spatial.from_xy(df, x_column='x', y_column='y')

map_widget = gis.map(area)
map_widget.content.add(sdf, options={'opacity':0.75},popup_info=popup_info, drawing_info=labelClass)
display(map_widget)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 02 Nov 2025 16:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1662717#M11766</guid>
      <dc:creator>DaleHarris3</dc:creator>
      <dc:date>2025-11-02T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not appearing on Web Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1668480#M11794</link>
      <description>&lt;P&gt;You can try adding the showLabels property at the layer level instead of the drawinInfo.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;map_widget.content.add(sdf, options={'opacity':0.75, 'showLabels' : True},popup_info=popup_info, drawing_info=labelClass)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 16:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1668480#M11794</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-11-25T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Labels not appearing on Web Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1683656#M11850</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Came across this post and I'm wondering if you ever found a solution. I seem to having the same problem.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/labels-not-appearing-on-web-map/m-p/1683656#M11850</guid>
      <dc:creator>JohnButcher</dc:creator>
      <dc:date>2026-02-11T14:06:34Z</dc:date>
    </item>
  </channel>
</rss>

