[OpenLayers-Users] Pan tool does NOT pan vertically

Andreas Hocevar ahocevar at opengeo.org
Mon Jul 11 08:41:03 EDT 2011


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 <violaanne at gmail.com> 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 <ahocevar at opengeo.org>
> 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 <violaanne at gmail.com> 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
>> > Users at lists.osgeo.org
>> > 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.


More information about the Users mailing list