Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Andreas Hocevar
On Mon, Jul 11, 2011 at 10:46 AM, Viola Anne wrote: > Hello, > I am using google layers as the base layer. When i use the restrictedExtent: > new OpenLayers(bounds); property,  the pan tool pans only laterally and does > not pan vertically. Any advice would be highly appreciated. Also note that i

Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Andreas Hocevar
Sounds like you specified your restrictedExtent in the wrong SRS. With a google base layer, you need to specify it in Spherical Mercator (i.e. meters) and not geographic coordinates. Note that horizontal panning will always work when wrapDateLine is true, because this disables horizontal restricted

Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Viola Anne
Yes, I have zoomed in to different extents but it still doesn't work. On Mon, Jul 11, 2011 at 12:31 PM, Andreas Hocevar wrote: > Have you tried to zoom in before panning vertically? If you're at the > bounds of the restricted extent, it is expected behavior that you > cannot pan beyond it. > > An

Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Viola Anne
Hi Christopher, Yes I did. But it works well when I comment out the restrictedExtent, but commenting it out is not an option as I need to limit the extent. On Mon, Jul 11, 2011 at 3:19 PM, wrote: > > On Jul 11, 2011, at 4:46 AM, ext Viola Anne wrote: > > > Hello, > > I am using google layers as

Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread christopher.schmidt
On Jul 11, 2011, at 4:46 AM, ext Viola Anne wrote: > Hello, > I am using google layers as the base layer. When i use the restrictedExtent: > new OpenLayers(bounds); property, the pan tool pans only laterally and does > not pan vertically. Any advice would be highly appreciated. Did you transf

Re: [OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Andreas Hocevar
Have you tried to zoom in before panning vertically? If you're at the bounds of the restricted extent, it is expected behavior that you cannot pan beyond it. Andreas. On Mon, Jul 11, 2011 at 10:46 AM, Viola Anne wrote: > Hello, > I am using google layers as the base layer. When i use the restric

[OpenLayers-Users] Pan tool does NOT pan vertically

2011-07-11 Thread Viola Anne
Hello, I am using google layers as the base layer. When i use the restrictedExtent: new OpenLayers(bounds); property, the pan tool pans only laterally and does not pan vertically. Any advice would be highly appreciated. -- Kind Regards, Viola ___ Users