ArcGIS API & tooltip dialogs

3425
3
07-11-2011 02:37 AM
MichaelO_Donnell2
New Contributor
Hi

What is the best way to change the layout and style of the tooltips that appear when adding points to the map?  To change the message, I can use the  following:
esri.bundle.toolbars.draw.complete = "abc"


Regards

Michael.
3 Replies
derekswingley1
Frequent Contributor
You're talking about the tooltip that follows the mouse cursor when a tool from a drawing toolbar is active? If you want to change the appearance of those tooltips, you can do with with css and the .map .tooltip class. Here's the default css:

.map .tooltip {
    background-color: white;
    border: 1px solid #7EABCD;
    border-radius: 4px 4px 4px 4px;
    font-size: 9pt;
    padding: 5px;
    width: 100px;
    z-index: 9999;
}


You might need to specify !important to override certain styles...
MichaelO_Donnell2
New Contributor
Cool, that worked perfectly.  I had to include the !important for the background colour and the width properties. 

Cheers

Michael.
0 Kudos
RobertKirkwood
Occasional Contributor III
Is there anyway to do this for the Home, Zoom in, Zoom Out, and Locate buttons?
0 Kudos