Select to view content in your preferred language

InfoWindow on MouseOver sample won't work with esri:PictureMarkerSymbol

2248
2
09-30-2011 07:26 AM
CarmenDurham
Frequent Contributor
Hello,

Using non-SFV code.

Using the above sample with a point feature layer of fire truck locations with a simplemarkersymbol will work fine.  The problem is that when I switch the symbol to a PictureMarkerSymbol of a fire truck - the infowindow will not appear.

It stops at the line "gr:Graphic - event.target as Graphic;"

Upon investigation, when using the picture marker symbol, the event.target returned upon mouseover is not a graphic but a "object:Custom Sprite".  What do I do to make this work with a picturemarkersymbol?

I am using one of the firetruck icons from ESRI - firetruck-32x32.png - attached.

FYI - The "featureLayer tooltip" sample works fine with the picturemarker symbol and would use it except I wanted the "callout window" look -- a pointer from the tooltip to the feature.

Thanks - I hope this is easy!

Carmen
Tags (2)
0 Kudos
2 Replies
MehulChoksey
Esri Contributor
try event.currentTarget instead of event.target.
0 Kudos
CarmenDurham
Frequent Contributor
Mehul,

Well, I didn't expect it would be THAT easy, but it was!

Thank you for your help - I only wish I had asked yesterday and saved some time.

Carmen
0 Kudos