Feature Layer Hover AND mouse click

717
1
10-13-2011 06:41 AM
SusanMcclendon
New Contributor III
We are looking for strategies or examples of using a feature layer (client side) to implement both a hover and a mouse click.

1.  User hovers over a feature and gets minimal info.
2.  User clicks on feature to get more detailed info.

A feature layer does not have a "click" event, but inherits from the graphics layer that does have both the onmouseover and click events.  The Washoe County app in the code gallery (http://wcgisweb.washoecounty.us/Vote/) successfully implements this with a dynamic layer, but we prefer the performance of using a client side graphic layer.  Has anyone had any success doing this with a feature layer. 

Thanks,

Susan
0 Kudos
1 Reply
derekswingley1
Frequent Contributor
This is definitely possible and straightforward to do. Have you tried to implement it yet?

As you noted, the feature layer has both onClick and onMouseOver events via the graphicsLayer. I would encourage you to try it and post back here if you run into any specific issues.
0 Kudos