Select to view content in your preferred language

mouse over

819
2
12-08-2010 07:30 AM
MayJeff
Deactivated User
I try to add onMouseOver function to highlight graphic and datagrid.  But can't figure out how come not able to highlight the datagrid item when mouse over the graphic.

Besides that I would like to add addtional function that can click the item in datagrid then zoom close to it.

Please help.

Thank you.
Tags (2)
0 Kudos
2 Replies
Drew
by
Frequent Contributor
Looking at your code I can see that "myGraphic" has no attributes assigned to it, so when you compare onMouseOver its finding null for the attributes property.
Add the following code where you build myGraphic

myGraphic.attributes = addressCandidate;


As for zooming from the datagrid I would search "Zoom to Point" in the forum and I am sure you will find some existing samples out there.

Drew
0 Kudos
MayJeff
Deactivated User
It works! Thank you 🙂
0 Kudos