[OpenLayers-Dev] possible bug: zoomWorld icon PanZoom Control zooms to maxExtent

Jachym Cepicky jachym.cepicky at gmail.com
Fri Nov 9 17:51:30 EST 2007


Hi,
there will be possibly more meanings to this topic: ZoomWorld icon in
PanZoom Control zooms always to this.map.maxExtent.

All other panning buttons are respecting this.map.restrictedExtent (if
set).

IMHO, zoomWorld icon should zoom to this.map.restrictedExtent as well.
If this is not set, than it should zoom to maxExtent.

What do you think about this?

I prepared ticket for it [1] as well as small (6 lines) patch [2].

Looking forward to your comments

Cheers

Jachym

[1] http://trac.openlayers.org/ticket/1134 
[2]
http://trac.openlayers.org/attachment/ticket/1134/PanZoom.js.diff#preview
-- 
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-dev/attachments/20071109/ea4dfeb4/attachment.bin


More information about the Dev mailing list