identify widget problem

664
8
10-22-2010 09:55 AM
GaryBushek
New Contributor III
I recently incorporated the identify widget into my 2.1 viewer app. This question may be best directed towards Robert S. but if anyone else has hit this and had luck resolving it please let me know.
   When I open the widget and activate the identify tool, I click on the map and the results are shown and the tool is now inactive. I can repeat this by clicking on the point button to activate the tool but if I dont click on the map and close the widget, the next time I open the widget and activate the tool, it stays as a persistent tool meaning I no longer have to activate it. I click the map, get results, click the map again and get more results and so on. kind of weird behavior and I would be fine with it either way but I need it to be consistent. Any ideas?
Tags (2)
0 Kudos
8 Replies
RobertScheitlin__GISP
MVP Emeritus
Gary,

   There is an option in the identify widgets xml file call keepidentifyactive do you have this set to true?
0 Kudos
GaryBushek
New Contributor III
this option is not available in the version I have  (2.1.1 - Sept 23, 2010)
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gary,

   You need to get the latest version. As I get bug reports and enhancement requests I release new versions.
0 Kudos
GaryBushek
New Contributor III
ok, will do.  Thanks Robert

Just an FYI,  the app that you link to for the identify widget has the same exact behavior im describing above. Not sure if this has the newest version of the widget applied.

thanks
0 Kudos
GaryBushek
New Contributor III
Robert,
    looks like the new version is working better. Much thanks to making this widget available.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   A new version of the identify widget is now available.

* 2.2.3 - Identify by point/line/extent/polygon are all now supported
- Info window will appear at the center of identified geometry now if returngeometryforzoom is set to true in xml file.
if returngeometryforzoom is true, when you mouse over a record the geometry for that particular record is drawn using the symbology defined in the xml
- The symbology used by the draw tools is now user defined in the xml
- Fixed an issues with link icon if prefix or suffix is supplied and a empty field.
0 Kudos
AndrewHargreaves
Occasional Contributor II
Robert,
I'm having trouble configuring the Identify tool. It appears on the viewer, and allows me to select features form my operational layer, shows me the 'loading...' spinning icon, but i get nothing back....
Here's what's in my main config file:

<widget label="Identify" left="330" top="80" preload="open"
                icon="assets/images/i_info.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/>


and here's what's in my IdentifyWidget.xml file:

<?xml version="1.0" ?>
<!--
 ////////////////////////////////////////////////////////////////////////////////
 //
    // Version 2.3.1 - May. 3, 2011
    //
    ///////////////////////////////////////////////////////////////////////////////
-->
<configuration>
 <betareturngeometryfix>false</betareturngeometryfix>
 <identifylayeroption>all</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>false</returngeometryforzoom>
 <labels>
  <zoom2message>Click to Zoom to Meter</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="true">
  <layer>
   <name>Meters</name>
   <fields>LocID, Meter_No</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_info.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
Andrew,

   Did you add it to your Flex Viewers modules list?
0 Kudos