[OpenLayers-Users] PanZoomBar

Jachym Cepicky jachym.cepicky at gmail.com
Tue Nov 6 08:09:54 EST 2007


Hi,

this worked for me: Fix draw() method in
lib/OpenLayers/Control/PanZoomBar.js like

-       var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y);
+       var centered = new OpenLayers.Pixel(px.x+sz.w, px.y);

and

+        this._addButton("zoomworld", "zoom-world-mini.png",px.add(sz.w,
0), sz);
-        this._addButton("panright", "east-mini.png", px.add(sz.w, 0),
sz);
+        this._addButton("panright", "east-mini.png", px.add(sz.w+sz.w,
0), sz);


result cab bee seen e.g. at
http://www.bnhelp.cz/mapserv/pokusy/openlayers/posazavi-jtsk/

j


Prasad Choudhary píše v Po 05. 11. 2007 v 03:10 -0800:
> hello All,
> 
> 
> I would like to add an image(button) at center of panzoomar just to reset
> map which is there is google any idea how to do that one?
> 
> and please tell me default is panzoom is there and when we add PanZoomBar
> then it goes off how???
> 
> 
> 
> 
> Thanks
> Prasad
-- 
Jachym Cepicky
e-mail: jachym.cepicky at gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071106/dd4a03c3/attachment.bin


More information about the Users mailing list