Solved! Go to Solution.
<layers onlythese="false" />But even that is ill advised and considered lazy configuration.
<layers onlythese="false"> <layer> <name>3/27/13 - reduced vegetation supression - AA11</name> <id>2</id> <url>https://www.sciencebase.gov/arcgis/rest/services/usminmap/Landsat7_West/MapServer</url> <fields> <field name="Red" alias="Red"/> <field name="Green" alias="Green"/> <field name="Blue" alias="Blue"/> <field name="Contrast" alias="Contrast"/> <field name="Materialid" alias="Material Id"/> <field name="Count" alias="Count"/> <field name="Opacity" alias="Opacity"/> <field name="Pixel Value" alias="Pixel Value"/> <field name="OID" alias="Object Id"/> </fields> <links/> <zoomscale>2000</zoomscale> <forcescale>true</forcescale> </layer> </layers>
I added the layer configuration you suggested to my xml, but still the layer names will not display, so that does not appear to be a resolution to my issue*.I tested this using your mapservice and version 3.6.2 of my Identify Widget and it worked perfectly.
My web app contains about 60+ such rasters, so I sincerely hope that I don't have to manually enter all that information into the xml for each of them.for the widget to be configured properly you will have to list each layer (assuming you want the rasters layer names) On a side note of this do your end users really need to see the Red, Green, Blue, OID and other fields of your raster layers?.. If not then you eliminate these fields by doing the configuration of that layer manually as I have suggested.
On a private Flex app on my test server, the Identify widget version is listed as 3.5.1 when I use the ALT method, even though version 3.6.2 is installedAssuming that you are still talking about using App Builder. I would suggest that you use the manage custom widgets in app builder and remove all your custom widgets and re-add the 3.6 versions (because the ALT key method of determining versions of my widgets you are using is the most accurate tell of the real version your app is using).
Here is a shot of ArcMap 10.2 into which I loaded the Landsat7_West map service from the 10.2 Server. The ArcMap Identify tool results do show the layer name as expected:
http://cmerwebmap.cr.usgs.gov/images/untitled.jpg
<layer> <name>3/27/13 - reduced vegetation supression - AA11</name> <id>2</id> <url>https://www.sciencebase.gov/arcgis/rest/services/usminmap/Landsat7_West/MapServer</url> <fields> <field name="Red" alias="Red"/> <field name="Green" alias="Green"/> <field name="Blue" alias="Blue"/> <field name="Contrast" alias="Contrast"/> <field name="Materialid" alias="Material Id"/> <field name="Count" alias="Count"/> <field name="Opacity" alias="Opacity"/> <field name="Pixel Value" alias="Pixel Value"/> <field name="OID" alias="Object Id"/> </fields> <links/> <zoomscale>2000</zoomscale> <forcescale>true</forcescale> </layer>