<?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 How to Turn On Labels and Enable Offline for a Web Map? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1632591#M11498</link>
    <description>&lt;P&gt;With the new Python API update I'm having trouble seeing how to turn on labels for a layer. I'm not seeing a parameter in layer properties. How can I turn these on?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, the recent update requires you to manually turn on Offline Enabled for a map. Is there a parameter for this?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jul 2025 19:46:31 GMT</pubDate>
    <dc:creator>SH_DH</dc:creator>
    <dc:date>2025-07-11T19:46:31Z</dc:date>
    <item>
      <title>How to Turn On Labels and Enable Offline for a Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1632591#M11498</link>
      <description>&lt;P&gt;With the new Python API update I'm having trouble seeing how to turn on labels for a layer. I'm not seeing a parameter in layer properties. How can I turn these on?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, the recent update requires you to manually turn on Offline Enabled for a map. Is there a parameter for this?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 19:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1632591#M11498</guid>
      <dc:creator>SH_DH</dc:creator>
      <dc:date>2025-07-11T19:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Turn On Labels and Enable Offline for a Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1632778#M11500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/647438"&gt;@SH_DH&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To turn on/off labels you can use the following...&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.map import Map

## Access AGOL
agol = GIS("home")

## get the WebMap as an Item Object
wm_item = agol.content.get("WM_ITEM_ID")

## create the Map object from the Item Object
webmap = Map(wm_item)

## the dictionary for the options parameter in update_layer()
options_dict = {
    "showLabels" : True # or False
}

## Map object &amp;gt; MapContent &amp;gt; update_layer()
webmap.content.update_layer(
    index = 0, # index of the layer in the WebMap
    options = options_dict
)

## commit the change
webmap.update()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This assumes that you have label classes already set in the WebMap that will be used once the labels are turned on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 09:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1632778#M11500</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-07-14T09:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Turn On Labels and Enable Offline for a Web Map?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1654209#M11688</link>
      <description>&lt;P&gt;Thanks Glen, I just finally returned to updating my code and your snippet worked.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 15:23:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-turn-on-labels-and-enable-offline-for-a-web/m-p/1654209#M11688</guid>
      <dc:creator>SH_DH</dc:creator>
      <dc:date>2025-09-30T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

