Thanks Martin. This will really help me.

 

However, I find the id’s 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:[EMAIL PROTECTED] 
Sent: Friday, November 14, 2008 1:01 AM
To: Bijoy
Cc: [email protected]
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 <[EMAIL PROTECTED]>


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
[email protected]
http://openlayers.org/mailman/listinfo/users

 

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to