<?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 Layer Types for SubLayers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-types-for-sublayers/m-p/1390410#M83843</link>
    <description>&lt;P&gt;In the Sublayer class docs the type property says that the value is always 'sublayer' but in the Layer class 'sublayer' does not exist in the possible values list. I'm trying to figure out why that is the case or if it is a mistake? I am writing some conditional logic to verify if the layer.type === 'sublayer' but it causes me typescript issues unless I cast the layer to any. I understand that Sublayer is not a Subclass of Layer but I guess my question is why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#type" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#type&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 15:22:06 GMT</pubDate>
    <dc:creator>jjgarrett0</dc:creator>
    <dc:date>2024-03-04T15:22:06Z</dc:date>
    <item>
      <title>Layer Types for SubLayers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-types-for-sublayers/m-p/1390410#M83843</link>
      <description>&lt;P&gt;In the Sublayer class docs the type property says that the value is always 'sublayer' but in the Layer class 'sublayer' does not exist in the possible values list. I'm trying to figure out why that is the case or if it is a mistake? I am writing some conditional logic to verify if the layer.type === 'sublayer' but it causes me typescript issues unless I cast the layer to any. I understand that Sublayer is not a Subclass of Layer but I guess my question is why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#type" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#type&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 15:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-types-for-sublayers/m-p/1390410#M83843</guid>
      <dc:creator>jjgarrett0</dc:creator>
      <dc:date>2024-03-04T15:22:06Z</dc:date>
    </item>
  </channel>
</rss>

