<?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 What does 'mode' mean in WebMap layer properties? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-mode-mean-in-webmap-layer-properties/m-p/1185537#M7510</link>
    <description>&lt;P&gt;I am accessing an Operational Layer in a WebMap and updating some properties. There is a 'mode' property that is set to 1. What does mode mean? and what values will it accept? and what does each value correspond to?&lt;/P&gt;&lt;P&gt;The layer is not hosted in AGOL, it is added to AGOL from a federated Portal Service.&lt;/P&gt;&lt;P&gt;Heres how I am accessing the Operational Layer properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

agol = GIS("home")

wm_item = agol.content.get("***wm_id***")

wm = WebMap(wm_item)

lyr = wm.get_layer(title="Lyr_Name")

print(lyr)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a snippet of the properties returned that contains mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "id": "id",
  "layerType": "ArcGISFeatureLayer",
  "url": "url/of/feature/layer",
  "visibility": true,
  "opacity": 1,
  "mode": 1,
  "title": "Lyr_Name",
  "itemId": "***item_id",
  "layerDefinition": {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 14:49:47 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2022-06-23T14:49:47Z</dc:date>
    <item>
      <title>What does 'mode' mean in WebMap layer properties?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-mode-mean-in-webmap-layer-properties/m-p/1185537#M7510</link>
      <description>&lt;P&gt;I am accessing an Operational Layer in a WebMap and updating some properties. There is a 'mode' property that is set to 1. What does mode mean? and what values will it accept? and what does each value correspond to?&lt;/P&gt;&lt;P&gt;The layer is not hosted in AGOL, it is added to AGOL from a federated Portal Service.&lt;/P&gt;&lt;P&gt;Heres how I am accessing the Operational Layer properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.mapping import WebMap

agol = GIS("home")

wm_item = agol.content.get("***wm_id***")

wm = WebMap(wm_item)

lyr = wm.get_layer(title="Lyr_Name")

print(lyr)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a snippet of the properties returned that contains mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "id": "id",
  "layerType": "ArcGISFeatureLayer",
  "url": "url/of/feature/layer",
  "visibility": true,
  "opacity": 1,
  "mode": 1,
  "title": "Lyr_Name",
  "itemId": "***item_id",
  "layerDefinition": {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-mode-mean-in-webmap-layer-properties/m-p/1185537#M7510</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-06-23T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: What does 'mode' mean in WebMap layer properties?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-mode-mean-in-webmap-layer-properties/m-p/1188577#M7535</link>
      <description>&lt;P&gt;This was answered here&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/434717/what-does-mode-mean-in-and-agol-webmap-operational-layer-properties/434940#434940" target="_blank"&gt;https://gis.stackexchange.com/questions/434717/what-does-mode-mean-in-and-agol-webmap-operational-layer-properties/434940#434940&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The "mode" property is specific to feature layers, relates to how features are retrieved from the server in some web clients, and is documented at:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/web-map-specification/objects/featureLayer/" rel="nofollow noreferrer" target="_blank"&gt;https://developers.arcgis.com/web-map-specification/objects/featureLayer/&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For example, it&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html" rel="nofollow noreferrer" target="_blank"&gt;was&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a property used in the 3x version of the ArcGIS API for JavaScript, but is handled automatically in version 4.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 08:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/what-does-mode-mean-in-webmap-layer-properties/m-p/1188577#M7535</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2022-07-01T08:11:12Z</dc:date>
    </item>
  </channel>
</rss>

