Select to view content in your preferred language

Highlighting in Flex Viewer 2.0

1934
4
08-30-2010 04:58 AM
Alexandervan_der_Schans
Emerging Contributor
Hi all,

I've been looking at this sample for highlighting features:

http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/02/19/Sychronizing-map-and-datagrid-intera...


and am trying to figure out how to make this work for the Flex Viewer 2.0? Can anybody tell me how to add a highlighting effect to all my features on mouseOver?

thanks!
Alex
Tags (2)
0 Kudos
4 Replies
Alexandervan_der_Schans
Emerging Contributor
Also, I forgot to mention that it is going to be used together with the InfoPopupWidget.
The user hovers over either a line, point or polygon, and the feature highlights to indicate that it is clickable.

Can anybody help me out with how to add this functionality?

Thanks alot!
0 Kudos
Alexandervan_der_Schans
Emerging Contributor
I've been trying to get this to work for quite some time now but can't seem to find the way to do it.

I've edited my MapManager.mxml with the sample, but now I'm getting the following error when I mouse over any feature layer:

TypeError: Error #1034: Type Coercion failed: cannot convert com.esri.ags.layers::FeatureLayer@d521ae1 to com.esri.ags.Graphic.
            at com.esri.viewer.managers::MapManager/onMouseOver()




If anybody can please help me out on this one I would really appreciate it... I've included my MapManager if anyone would like to check it.

thanks,
Alex
0 Kudos
DidumAbraham
Deactivated User
Alex,

Try sending a compressed (zipped) file instead of .rar file extension...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

   Your issue is that you are trying to add the mouse over listener to featurelayer and not the individual graphic.

Here is a commented/corrected version.

Make sure you use the Flex Viewer forum in the future.

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos