[OpenLayers-Users] ToolTip text for each PanZoomBar button
Bijoy K. Anupam
bijoya at rediff.co.in
Fri Nov 14 00:56:36 EST 2008
Thanks Martin. This will really help me.
However, I find the ids of each PanZoomBar element different from what you
have used. For ex., the ZoomIn id is
OpenLayers.Control.PanZoomBar_175_zoomin. Just wanted to confirm, will
this id be same in all browser or it might change, as I am little worried
about the number 175 which seems dynamic.
Thanks once again for the reply :-)
- B
_____
From: Martin Ouellet [mailto:geomartino at gmail.com]
Sent: Friday, November 14, 2008 1:01 AM
To: Bijoy
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] ToolTip text for each PanZoomBar button
I had the same problem and my work around was to set the title for each
piece of the panzoombar with their ID:
document.getElementById("OpenLayers_Control_PanZoom_zoomin").title =
"Diminuer l'échelle";
document.getElementById("OpenLayers_Control_PanZoom_zoomout").title =
"Augmenter l'échelle";
Regards
MartinO
2008/11/12 Bijoy <bijoya at rediff.co.in>
Hi All,
Can we show ToolTip text for each PanZoomBar button?
Right now, I am able to show tool tip for each control using the title tag
as shown below:-
var zoombar = new OpenLayers.Control.PanZoomBar({title:
"Navigation",
zoomWorldIcon:true});
map.addControl(zoombar);
Hope someone has done this before?
- B
--
View this message in context:
http://www.nabble.com/ToolTip-text-for-each-PanZoomBar-button-tp20462679p204
62679.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081114/7dbd6965/attachment.html
More information about the Users
mailing list