Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

61365
266
09-23-2010 11:34 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have been waiting for the Final release of the FlexViewer 2.1 before I started to push out some widgets I have been working on.

Here is my Identify Widget for Flex Viewer 2.1. I have tested to ensure proper functioning with FlexViewer 2.1 and am now releasing it to you since the API Team did not get one into the FlexViewer.

Here is the link:

http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89

More FlexViewer 2.1 widgets to come stay tuned...
Tags (2)
0 Kudos
266 Replies
RobertScheitlin__GISP
MVP Emeritus
Erwan,

   are the map services that you are using that are having the duplicated results public services that I can use in my testing?
0 Kudos
ErwanCaradec
Emerging Contributor
No sorry Robert,
my ArcGIS server (still in 9.3.1) is on a private network wich not having any internet connection 😕

This modification works for me, i'm testing if the visible layer to identify not having subLayers :
(Replace line 293 with this code) :
// 17/11/2010 #1 erwan.caradec
// remove duplicate results for group of layers       
//line 293       identifyParams.layerIds = dynamicLayer.visibleLayers.source;
       identifyParams.layerIds = new Array();
       for (var j:Number = 0; j < dynamicLayer.visibleLayers.source.length; j++)
       {
        if (!dynamicLayer.layerInfos[dynamicLayer.visibleLayers.source].subLayerIds)
        {
         identifyParams.layerIds.push(dynamicLayer.visibleLayers.source);
        }
       }
// end of modification


regards,
Erwan
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   Ok lets try this again then.. Send me your config.xml and your IdentifyWidget.xml.

I have on my sample site for the identify widget a layer of type feature that is working just fine...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   Ok I found my error and have it fixed in Version 2.1.7

Also you need to use this config.xml. There was an error in yours.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Erwan,

   Thanks for the code assist. I have included your updates in the 2.1.7 version.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Erwan,

   Do you still have your LinkedIn account?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   Just for testing try removing all of the basemap layers you have specified and clear your browsers cache and then try measuring. The one thing I saw was that your aerials map service is using a WKT for the spatial reference and not a WKID like the rest of your map services.
0 Kudos
ErwanCaradec
Emerging Contributor
Robert,
i've just create one here

Erwan
0 Kudos
JimWelsh
Deactivated User
Jim,

   The first thing I would do is either rename your layer or try another layer for this testing the "Aggravated Assault / Battery" forward slash is likely going to cause an issue in the code.


Robert,

Thanks again for your help.  I removed the slash from the layer in my code and in ArcMap (before republishing).  It still does not work.  I can't seem to get any layer other than /0 to work with identify, even though they are from the same service.
0 Kudos
JimWelsh
Deactivated User
Robert,
Since my last post I discovered you posted 2.1.7.  The new version solved my problem and all layers work.  Thank you for all of the time you spend in developing widgets and providing support for everyone on the forum.
0 Kudos