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
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
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
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
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
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
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