[OpenLayers-Users] tooltips for Controls?

Gregor Mosheh gregor at hostgis.com
Mon Jan 21 16:33:53 EST 2008


This one sounded easer than it turned out to be. :)

HTML elements can have a title attribute, and most browsers will show 
that text when the mouse hovers over the element.

How may I apply this to OL Controls? I tried a few of the more obvious 
approaches, such as adding "this.div.title = 'Pan the map'" in 
initialize() but to no avail.

Is this non-trivial to do? Is a 'title' param something that would be 
useful to add to Control itself for making a general solution to this?

-- 
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA



More information about the Users mailing list