Select to view content in your preferred language

Adding picture to Info Symbol

683
3
05-28-2010 05:41 AM
Alexandervan_der_Schans
Emerging Contributor
Hi everybody,
I'm building a custom flex application and am using the Info Symbol to display identify results in a datagrid.
But now I'm wondering if it's possible to display a picture in the Info Symbol? I know it's possible using the Info Window, but how would I go about adding it to the Info Symbol?

Also I would like to know if it's possible to:

1) Return the identify results in a fixed order: either alphabetical or just manually
2) Set the InfoSymbol label to use an attribute name from the database like:

<mx:VBox label="{data.CELL_NAME}">

This approach is working for the Info Window but the Info Symbol only shows the label background without any text for me...
 
Thanks Alot!
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
Alexandervan_der_Schans
Emerging Contributor
Thanks Dasa!

But how can you let the picture be loaded from an attribute in the database? In the sample you manually have to link to the picture location, but I would like to have the picture be automatically added from the database. I have over 1000 point features which all have the photo attribute so otherwise it's going to take a looong time!

thanks!
0 Kudos
DasaPaddock
Esri Regular Contributor
Is the attribute in the database in the form of a URL? If yes, then you can use a QueryTask to get the features with the attribute and the only change to the infoRenderer would be to update the code to use your attribute name.
0 Kudos