<?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 Image Service Layer in Layer List widget not showing specified ID? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/image-service-layer-in-layer-list-widget-not/m-p/658762#M61471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added an Image Service to the Layer List widget using JS API 3.19, though the id used in the Layer List does not match&amp;nbsp;the "id" property specified in the properties for this layer. &amp;nbsp;The Image service layer clearly has a "name" property it is using to display the name in the layer list, default value is derived from&amp;nbsp;the layer's service URL as "[directory]/[service name]". &amp;nbsp; I can change the name using the dev console after the layer loads but have found no way to assign a different name in the source file so the desired name is used in the layer list. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I've tried&lt;/STRONG&gt; setting a new name/id within the ArcGISImageServiceLayer properties, using ImageLayer.attr(name, value) methods to update the name, and also tried including "map.getLayer("[layerID]").name = [newName]" prior to creating the layer list in my source file, but nothing has worked so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody experienced this same problem and by chance, found a solution? &amp;nbsp;It does not seem that the layer "id" property in the layer list widget is recognized when that layer is from an ArcGIS Server Image Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;Picture summary:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The 'id' specified in the Layers properties in the Layer List widget should display in the layer list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="330901" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/330901_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Instead, I get the image service layer's name property displayed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="330900" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/330900_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 16:54:45 GMT</pubDate>
    <dc:creator>deleted-user-z9OjN-EoUVWn</dc:creator>
    <dc:date>2017-02-27T16:54:45Z</dc:date>
    <item>
      <title>Image Service Layer in Layer List widget not showing specified ID?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/image-service-layer-in-layer-list-widget-not/m-p/658762#M61471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added an Image Service to the Layer List widget using JS API 3.19, though the id used in the Layer List does not match&amp;nbsp;the "id" property specified in the properties for this layer. &amp;nbsp;The Image service layer clearly has a "name" property it is using to display the name in the layer list, default value is derived from&amp;nbsp;the layer's service URL as "[directory]/[service name]". &amp;nbsp; I can change the name using the dev console after the layer loads but have found no way to assign a different name in the source file so the desired name is used in the layer list. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I've tried&lt;/STRONG&gt; setting a new name/id within the ArcGISImageServiceLayer properties, using ImageLayer.attr(name, value) methods to update the name, and also tried including "map.getLayer("[layerID]").name = [newName]" prior to creating the layer list in my source file, but nothing has worked so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody experienced this same problem and by chance, found a solution? &amp;nbsp;It does not seem that the layer "id" property in the layer list widget is recognized when that layer is from an ArcGIS Server Image Service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;Picture summary:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The 'id' specified in the Layers properties in the Layer List widget should display in the layer list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="330901" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/330901_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Instead, I get the image service layer's name property displayed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="330900" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/330900_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 16:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/image-service-layer-in-layer-list-widget-not/m-p/658762#M61471</guid>
      <dc:creator>deleted-user-z9OjN-EoUVWn</dc:creator>
      <dc:date>2017-02-27T16:54:45Z</dc:date>
    </item>
  </channel>
</rss>

