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

Christopher Schmidt crschmidt at metacarta.com
Fri Nov 9 18:56:56 EST 2007


On Fri, Nov 09, 2007 at 11:51:30PM +0100, Jachym Cepicky wrote:
> 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].

I agree this is a bug. My first reaction is "I would like tests for
this."

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list