[OpenLayers-Users] REPEAT QUESTION - How do I prevent my map from zooming out too far?

Andreas Hocevar ahocevar at opengeo.org
Mon Jul 20 15:22:29 EDT 2009


Hi,

there are many ways to do that, combine one or more of the options
below to achieve the result you need:

 * set a maxExtent for your base layer
 * set a maxResolution for the base layer,
 * configure a resolutions or scales array for your base layer

Regards,
Andreas.

On Mon, Jul 20, 2009 at 9:05 PM, <jim.meyer at concept-solutions.com> wrote:
> Hi everyone,
>
>
>
>    I had asked this question originally on June 29, 2009 and didn’t receive
> a response…
>
>
>
>    Currently when I zoom out to the fullest extent available on the
> panzoombar my map shows four copies of the earth.  Is there an easy way to
> prevent this from happening?
>
>
>
>    It seems that using a ‘singleTile’ value set to true will do it.  But,
> I’d prefer to continue to rely upon tiled images.  Are there any other ideas
> out there?
>
>
>
> Thanks,
> Jim
>
>
>
> James B. Meyer
>
> Java Programmer
>
> Concept Solutions, Inc.
>
> (703) 472-7838
>
> jim.meyer at concept-solutions.com
>
> 11600 Sunrise Valley Drive
>
> Suite 300
>
> Reston, VA 20191
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list