Select to view content in your preferred language

Tooltip / Maptip Help

1134
9
01-20-2011 10:19 AM
ChrisO_Leary
Emerging Contributor
Hi again,

I have a viewer application with my base and operational layers defined in my config.xml file. I would like to be able to have certain items on my map to display tooltips when the mouse hovers over them.

I have seen a number of examples with the layers defined in the .mxml file and calling a graphicAdd() handler to insert tooltips/maptips, but how would I do this with my layers defined in the config.xml?

My users do not want to click on the objects to get the tooltip.

I did not realize this would be an issue, my users (and I) assumed then when a maptip is defined in my map service, it would display.

What should I be looking at?
Tags (2)
0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Chris,

   Are you looking for a tooltip based on one field of the feature layer? I have a widget for this that works for one field.
0 Kudos
__3
by
Emerging Contributor
Chris,

   Are you looking for a tooltip based on one field of the feature layer? I have a widget for this that works for one field.


Robert,The widget that you built for controling the layers for the tooltips looks like what I have been looking for. Would you mind sharing your code with me? My e-mail is yueyou216@163.com. Thanks!
0 Kudos
ChrisO_Leary
Emerging Contributor
Chris,

   Are you looking for a tooltip based on one field of the feature layer? I have a widget for this that works for one field.


It might be a start, there are multiple fields I need to display, but maybe if I could see how you did it, I could expand on it?

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   I don't email stuff to people. I develop widgets and publish them to the code gallery for everyone to use and benefit from. I was just wondering what additional functionality people were looking for, is it just one field or concatenating multiple fields from a specified layer, etc. I will look at doing the multiple fields before I publish this widget.
0 Kudos
ChrisO_Leary
Emerging Contributor
Guys,

   I don't email stuff to people. I develop widgets and publish them to the code gallery for everyone to use and benefit from. I was just wondering what additional functionality people were looking for, is it just one field or concatenating multiple fields from a specified layer, etc. I will look at doing the multiple fields before I publish this widget.


Ok, got ya... I wasn't sure what you were offering.  I would be doing something along the lines of a tooltip with multiple lines to display different attribute data.
0 Kudos
ChrisO_Leary
Emerging Contributor
Robert, do you have a link to the widget? I can't seem to find it in the gallery.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Chris,

  I have not published it yet. I just created it last night.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
ChrisO_Leary
Emerging Contributor
All,

   Here is the link:

http://www.arcgis.com/home/item.html?id=ce63f1bdd5e64068b9a4fadd2028e379


Thanks, I'll check it out.
0 Kudos