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: [EMAIL PROTECTED]
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
signature.asc
Description: Toto je digitálně podepsaná část zprávy
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
