Identify Widget question

441
8
09-01-2011 05:38 AM
BarryHill1
New Contributor
When using the IdentifyWidget the result is capturing the raster image (Streetmap, Aerial, Topo). Looking at the IdentityWidget config file I see the "Identifylayeroption" is set to 'visible'. I just want to identify the layers that are coming from my Server map service. I tried setting the parameter to 'top' and 'all' but get the same result. This is my first Flexview project so please excuse my ignorance. Thanks.
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Barry,

  You would need to use the:

<layers onlythese="true">
and then specify all the layers that you want results for.
0 Kudos
DavidCaussin
New Contributor III
hi Robert,

Just a question over this identify widget.
Is it possible to implement a "gridresult" as in the esearch widget?

Is it a lot of work for you?

Thanks.

David
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   I have no plans to do that.
0 Kudos
KarenRobine
Occasional Contributor II
Funny you just asked that.

David: Will you be adding that?  It gets a little more complicated since we will be dealing with multiple layers and it looks like the Grid for the Enhanced Search only handles one layer.
0 Kudos
OranousDanandeh
New Contributor
Hi all,
I was wondering if anyone can help me with the identify Widget. I just downloaded the compiled version of flexviewer 2.4 and downloaded the identify widget as well. I am getting error #2036.
I have not seen any examples on how config.xml is configured.  is there a place to specify the url for the map service that I am missing.  Thanks in advance for your help
Oranous

I have added the following to config.xml

<widgetcontainer layout="float">
<widget label="Identify features" left="410" top="280"
                icon="assets/images/i_about.png"
                config="widgets/IdentifyWidget.xml"
                url="widgets/IdentifyWidget.swf"/>
</widgetcontainer>


and identifyWidget.xml is as follows:

<?xml version="1.0" ?>
<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>true</keepidentifyactive>
         <!-- possible values are extent or polygon or mappoint or polyline or nothing -->
<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>
</labels>
<useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
</useproxy>
<layers onlythese="false">
  <layer>
   <name>Water Mains</name>
   <fields>MATERIAL,DIAMETER</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <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_about.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Oranous,

   So did you copy the IdentifyWidget.swf and .xml to your widgets folder in your compiled Flex Viewer location? Error 2036 means it can not find the file.
0 Kudos
OranousDanandeh
New Contributor
yes is did.  I created a folder called Identify under Widgets folder and copied the the two files you specified.
0 Kudos
OranousDanandeh
New Contributor
I left out the directory Identify in the path for the config and url files.
Thank you.  It is working now.
Oranous
0 Kudos