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 extents.
Andreas. On Mon, Jul 11, 2011 at 2:35 PM, Viola Anne <[email protected]> wrote: > 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 <[email protected]> > 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. >> >> Andreas. >> >> On Mon, Jul 11, 2011 at 10:46 AM, Viola Anne <[email protected]> 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. >> > -- >> > Kind Regards, >> > Viola >> > >> > _______________________________________________ >> > Users mailing list >> > [email protected] >> > http://lists.osgeo.org/mailman/listinfo/openlayers-users >> > >> > >> >> >> >> -- >> Andreas Hocevar >> OpenGeo - http://opengeo.org/ >> Expert service straight from the developers. > > > > -- > Kind Regards, > Viola > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
