<layers onlythese="false"> </layers>
<layers onlythese="true"> <layer> <name>All_96_imagery</name> <fields all="false"> <field name="Pixel Value" alias="Pixel Value from field" numberformat="2|,|." /> <field name="Pixel value" alias="Pixel value from field" numberformat="2|,|." /> <field name="Stretched value" alias="Stretched value from field" numberformat="2|,|." /> <field name="Stretched Value" alias="Stretched Value from field" numberformat="2|,|." /> </fields> <links> <link includeinresults="true" field="" alias="" tooltip=""> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer>
Nadeem, Glad you found a workaround. How are you handling the fact that many Map Services will have the same LayerID?
Nadeem, OK I was able to reproduce what you are seeing using my ArcGIS Server 10.1 SP1. Is this the version of ArcGIS Server that you are using? I will need to put in a possible bug report to the Server team as I saw like you did that the LayerName comes back as an empty string.
How are you loading the layer with kerneldenisty in the main config.xml? What type="", visible="", do you have any displaylevels="" or visiblayers="", definitionexpression, or anything like that set for this layer (do you see the raster layer on the map when you click on it, and wkid of map same as this layer(29900))?Also, have you tried making a new ArcMap document with just the kernel density layer and publish as a new service. Then load that service into the map and try to identify against it? Might give you an idea if it is an issue with that particular service rather than a config issue.Any chance that you've upgraded from a previous version of the Identify widget without doing a clean on the project or removing/re-adding the (updated) IdendifyWidget.mxml in the modules list?R_
thnaks for your help. but it did not work as well. I am pasting the config may be i have done some thing wrong please have a look.<configuration> <betareturngeometryfix>false</betareturngeometryfix> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <returngeometryforzoom>true</returngeometryforzoom> <enablelineselect>true</enablelineselect> <enableextentselect>true</enableextentselect> <enablepolyselect>true</enablepolyselect> <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo> <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo> <usemaptime>false</usemaptime> <infoautoclosemilliseconds>2000</infoautoclosemilliseconds> <autoactivatedtool>mappoint</autoactivatedtool> <excludebasemaps>false</excludebasemaps> <disablepopuplinks>true</disablepopuplinks> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify by Point</pointlabel> <linelabel>Identify by Polyline</linelabel> <rectlabel>Identify by Rectangle</rectlabel> <polylabel>Identify by Polygon</polylabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loadingfam...</loadinglabel> <removeresultmessage>Remove Result</removeresultmessage> <idfrom>Identify From</idfrom> <noresultsfoundlabel>No Results Foundhc</noresultsfoundlabel> <resultsfoundlabel>Results Found</resultsfoundlabel> </labels> <layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="Stretched value" numberformat="2|,|." /> </fields> </layer> </layers> <symbols> <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid"> <outline color="0x448ccb" alpha="0.8" width="2"/> </simplefillsymbol> <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0xffffff" alpha="0.8" width="1"/> </simplemarkersymbol> <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0"/> <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/> </symbols></configuration>
Nadeem, Mave you tried to use "stretched value" as the field name then? <layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="stretched value" numberformat="2|,|." /> </fields> <links> <link includeinresults="false" field="" alias="" tooltip=""> <linkprefix /> <linksuffix /> <iconfield /> <iconprefix /> <iconsuffix /> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> </layers>
<layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="stretched value" numberformat="2|,|." /> </fields> <links> <link includeinresults="false" field="" alias="" tooltip=""> <linkprefix /> <linksuffix /> <iconfield /> <iconprefix /> <iconsuffix /> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> </layers>
Nadeem, Hmm... Well if your raster layers name in your Rest Service directory is kerneldensity then there is no reason that EXACTLY what I posted should not work then. Maybe you could copy all the text from your REST Service Directory page for the raster layer so that I can take a look. Am I correct in assuming that this service is not publicly accessible?
Nadeem, In your other post two other members tried thier hardest to exmplain what you needed to do for this.The only thing that they did not do was write the configuration file for you so I guess that is what I will have to do.<?xml version="1.0" ?> <configuration> <betareturngeometryfix>false</betareturngeometryfix> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <returngeometryforzoom>true</returngeometryforzoom> <enablelineselect>true</enablelineselect> <enableextentselect>true</enableextentselect> <enablepolyselect>true</enablepolyselect> <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo> <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo> <usemaptime>false</usemaptime> <infoautoclosemilliseconds>2000</infoautoclosemilliseconds> <autoactivatedtool>mappoint</autoactivatedtool> <excludebasemaps>false</excludebasemaps> <disablepopuplinks>true</disablepopuplinks> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify by Point</pointlabel> <linelabel>Identify by Polyline</linelabel> <rectlabel>Identify by Rectangle</rectlabel> <polylabel>Identify by Polygon</polylabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loading...</loadinglabel> <removeresultmessage>Remove Result</removeresultmessage> <idfrom>Identify From</idfrom> <noresultsfoundlabel>No Results Found</noresultsfoundlabel> <resultsfoundlabel>Results Found</resultsfoundlabel> </labels> <useproxy /> <layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="Pixel Value" numberformat="2|,|." /> </fields> <links> <link includeinresults="false" field="" alias="" tooltip=""> <linkprefix /> <linksuffix /> <iconfield /> <iconprefix /> <iconsuffix /> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> </layers> <symbols> <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid"> <outline color="0x448ccb" alpha="0.8" width="2" /> </simplefillsymbol> <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0xffffff" alpha="0.8" width="1" /> </simplemarkersymbol> <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" /> <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" /> </symbols> </configuration>Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).Follow these steps as shown in the below graphic:
<?xml version="1.0" ?> <configuration> <betareturngeometryfix>false</betareturngeometryfix> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <returngeometryforzoom>true</returngeometryforzoom> <enablelineselect>true</enablelineselect> <enableextentselect>true</enableextentselect> <enablepolyselect>true</enablepolyselect> <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo> <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo> <usemaptime>false</usemaptime> <infoautoclosemilliseconds>2000</infoautoclosemilliseconds> <autoactivatedtool>mappoint</autoactivatedtool> <excludebasemaps>false</excludebasemaps> <disablepopuplinks>true</disablepopuplinks> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify by Point</pointlabel> <linelabel>Identify by Polyline</linelabel> <rectlabel>Identify by Rectangle</rectlabel> <polylabel>Identify by Polygon</polylabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loading...</loadinglabel> <removeresultmessage>Remove Result</removeresultmessage> <idfrom>Identify From</idfrom> <noresultsfoundlabel>No Results Found</noresultsfoundlabel> <resultsfoundlabel>Results Found</resultsfoundlabel> </labels> <useproxy /> <layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="Pixel Value" numberformat="2|,|." /> </fields> <links> <link includeinresults="false" field="" alias="" tooltip=""> <linkprefix /> <linksuffix /> <iconfield /> <iconprefix /> <iconsuffix /> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> </layers> <symbols> <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid"> <outline color="0x448ccb" alpha="0.8" width="2" /> </simplefillsymbol> <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0xffffff" alpha="0.8" width="1" /> </simplemarkersymbol> <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" /> <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" /> </symbols> </configuration>
<?xml version="1.0" ?> <configuration> <betareturngeometryfix>false</betareturngeometryfix> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <returngeometryforzoom>true</returngeometryforzoom> <enablelineselect>true</enablelineselect> <enableextentselect>true</enableextentselect> <enablepolyselect>true</enablepolyselect> <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo> <enablemouseoverrecordinfo>false</enablemouseoverrecordinfo> <usemaptime>false</usemaptime> <infoautoclosemilliseconds>2000</infoautoclosemilliseconds> <autoactivatedtool>mappoint</autoactivatedtool> <excludebasemaps>false</excludebasemaps> <disablepopuplinks>true</disablepopuplinks> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify by Point</pointlabel> <linelabel>Identify by Polyline</linelabel> <rectlabel>Identify by Rectangle</rectlabel> <polylabel>Identify by Polygon</polylabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loading...</loadinglabel> <removeresultmessage>Remove Result</removeresultmessage> <idfrom>Identify From</idfrom> <noresultsfoundlabel>No Results Found</noresultsfoundlabel> <resultsfoundlabel>Results Found</resultsfoundlabel> </labels> <useproxy /> <layers onlythese="true"> <layer> <name>kerneldensity</name> <fields> <field alias="Height" name="pixel value" numberformat="2|,|." /> </fields> <links> <link includeinresults="false" field="" alias="" tooltip=""> <linkprefix /> <linksuffix /> <iconfield /> <iconprefix /> <iconsuffix /> </link> </links> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> </layers> <symbols> <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid"> <outline color="0x448ccb" alpha="0.8" width="2" /> </simplefillsymbol> <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0"> <outline style="solid" color="0xffffff" alpha="0.8" width="1" /> </simplemarkersymbol> <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" /> <simplelinesymbol color="0x448ccb" alpha="0.8" width="2" /> </symbols> </configuration>
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.